/* IXXO Cart 8 storefront: the Map section (map block spec), shared by every theme.
   Template: content/templates/storefront/sections/map/section.php; the frame is swapped in by storefront-sections.js.
   Tokens only, so every theme and colour scheme recolours it; inside a Columns column it takes the column's width. */

.sf-map{ display: grid; gap: 12px; }
/* The map box at the chosen height; phones get a shorter one, so the page still scrolls past it. */
.sf-map-frame{ position: relative; inline-size: 100%; block-size: var(--sf-map-h, 360px); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--tile); }
.sf-map-small{ --sf-map-h: 240px; }
.sf-map-medium{ --sf-map-h: 360px; }
.sf-map-large{ --sf-map-h: 480px; }
@media (max-width: 720px)
{
	.sf-map-small{ --sf-map-h: 200px; }
	.sf-map-medium{ --sf-map-h: 280px; }
	.sf-map-large{ --sf-map-h: 360px; }
}
.sf-map-frame iframe{ display: block; inline-size: 100%; block-size: 100%; border: 0; }

/* The quiet panel in place of the map until the visitor's cookie choice (or Show map) allows Google. */
.sf-map-wait{ display: grid; place-content: center; justify-items: center; gap: 12px; block-size: 100%; padding: 24px; text-align: center; }
.sf-map-wait .sf-ico{ inline-size: 28px; block-size: 28px; color: var(--muted); }
.sf-map-wait p{ margin: 0; max-inline-size: 34ch; color: var(--muted); font-size: 14px; }

/* The address and the Get directions button under the map. */
.sf-map-foot{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sf-map-address{ margin: 0; color: var(--muted); font-size: 14px; }
.sf-map-go{ display: inline-flex; align-items: center; gap: 8px; }

/* Staff only, in the theme editor's preview: what to fix before the map can show. */
.sf-map-note{ margin: 0; padding: 16px; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--muted); }
