/* Box written in place of a pasted Google Maps iframe until the visitor asks for the map
   (App_Code\GoogleMapPreviews.cs, Assets\Js\google-map-preview.js). It sits inside the customer
   page's map panel, which already draws the border, the rounded corners and the background
   (customer-page-sections.css); after the press the iframe takes its place with that panel's
   own size rules. Colours follow the portal's map block right above it; the font is the one
   of the text around it. */
#page .yi-gmap {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 14px;
    margin: 0;
    padding: 16px;
    color: #103e60;
    font-family: inherit;
    text-align: left;
}
#page .yi-gmap *, #page .yi-gmap *::before, #page .yi-gmap *::after { box-sizing: border-box; }
#page .yi-gmap .yi-gmap-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #07669f;
    box-shadow: 0 2px 8px rgba(22, 56, 83, .08);
}
#page .yi-gmap .yi-gmap-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* The old theme pads every div of a map panel's row (style.css: ".widget.map .row div"). */
#page .yi-gmap .yi-gmap-text { min-width: 0; margin: 0; padding: 0; }
#page .yi-gmap p.yi-gmap-title {
    margin: 0;
    padding: 0;
    color: #003c70;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    text-align: left;
    text-transform: none;
}
#page .yi-gmap p.yi-gmap-note {
    margin: 2px 0 0;
    padding: 0;
    color: #526a7d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
}
#page .yi-gmap p.yi-gmap-note a {
    color: #004f82;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#page .yi-gmap p.yi-gmap-note a:hover { color: #003c65; }
/* The button, and the link that takes its place without scripts. That link sits in a
   noscript element, which is then the item of the grid: it spans both columns. (No "display"
   here: with scripts on, browsers hide noscript and its content is only text.) */
#page .yi-gmap noscript { grid-column: 1 / -1; min-width: 0; }
#page .yi-gmap button.yi-gmap-show,
#page .yi-gmap a.yi-gmap-open {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #c9dbe8;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: #003c70;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
#page .yi-gmap .yi-gmap-label { display: block; min-width: 0; }
#page .yi-gmap button.yi-gmap-show:hover,
#page .yi-gmap button.yi-gmap-show:active,
#page .yi-gmap a.yi-gmap-open:hover,
#page .yi-gmap a.yi-gmap-open:active {
    border-color: #003c70;
    background: #003c70;
    color: #fff;
    text-decoration: none;
}
#page .yi-gmap button.yi-gmap-show:focus-visible,
#page .yi-gmap a:focus-visible {
    outline: 3px solid #287ab9;
    outline-offset: 2px;
    border-radius: 12px;
}
/* Another Google address pasted in the same field: a plain link (never loaded by itself). */
#page p.yi-gmap-other { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.4; text-align: left; }
#page p.yi-gmap-other a { color: #004f82; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    #page .yi-gmap button.yi-gmap-show, #page .yi-gmap a.yi-gmap-open { transition: none; }
}
@media print {
    #page .yi-gmap button.yi-gmap-show, #page .yi-gmap a.yi-gmap-open { border-color: #666; color: #000; }
}
