/* Functional geometry only: typography, colors, padding and height come from block supports. */
:where(.rx-location-map) { position: relative; min-height: clamp(26rem, 41.26vw, 44.5625rem); isolation: isolate; }
:where(.rx-map-location) { position: relative; min-height: inherit; }
.rx-location-map [hidden] { display: none !important; }
.rx-location-map .rx-map-location__preview { position: absolute; inset: 0; margin: 0; z-index: 0; width: 100%; max-width: none; }
.rx-map-location__preview img { width: 100%; height: 100%; object-fit: cover; }
:where(.rx-location-map__tabs) { position: absolute; z-index: 4; inset: 2rem auto auto var(--rx-figma-gutter, 4.34vw); display: flex; flex-wrap: wrap; gap: .75rem; max-width: calc(100% - 2.5rem); }
.rx-location-map__tab { min-height: 2.75rem; padding: .65rem 1.25rem; border: 1px solid currentColor; border-radius: 2px; color: inherit; background: var(--wp--preset--color--paper, #fff); font: inherit; cursor: pointer; }
.rx-location-map__tab[aria-selected=true], .rx-location-map__tab[aria-pressed=true] { color: var(--wp--preset--color--paper, #fff); background: var(--wp--preset--color--ink, #000); }
:where(.rx-map-location__card) { position: absolute; z-index: 3; right: var(--rx-figma-gutter, 4.34vw); bottom: 0; width: 19.1875rem; max-width: calc(100% - 2.5rem); border-radius: 6px 6px 0 0; }
/* Leave Google's attribution unobscured once the live map is displayed. */
.is-map-active > .rx-map-location__card { bottom: 2.5rem; }
.rx-location-map:has(.is-map-active:not([hidden])) .rx-location-map__tabs { left: 50%; transform: translateX(-50%); }
:where(.rx-map-location__canvas) { position: absolute; inset: 0; z-index: 0; }
.rx-map-location:not(.is-map-active) > .rx-map-location__canvas { pointer-events: none; }
.rx-map-location iframe { width: 100%; height: 100%; border: 0; background: #fff; }
:where(.rx-map-location__consent) { position: absolute; z-index: 2; top: 45%; left: var(--rx-figma-gutter, 4.34vw); width: min(25rem, 45%); padding: 1.25rem; color: #000; background: #fff; border-radius: 4px; box-shadow: 0 2px 16px #0002; }
:where(.rx-map-location__consent p) { margin: 0 0 1rem; font-family: var(--wp--preset--font-family--sans); font-size: 1rem; line-height: 1.5; }
.rx-map-location__activate { padding: .65rem 1rem; min-height: 2.75rem; border: 1px solid; color: #fff; background: var(--wp--preset--color--blue); cursor: pointer; }
.rx-location-map :is(button, a, iframe):focus-visible { outline: 3px solid var(--wp--preset--color--blue); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.rx-location-map--editor > .rx-location-map__locations { min-height: inherit; }
.rx-location-map--editor .rx-map-location > .rx-map-location__card { position: absolute; margin-block: 0; }
@media (max-width: 48rem) {
  :where(.rx-map-location) { padding-top: 26rem; }
  .rx-map-location__preview, .rx-map-location__canvas { height: 26rem; bottom: auto; }
  :where(.rx-map-location__card) { position: relative; right: auto; width: 100%; max-width: none; border-radius: 0; }
  .is-map-active > .rx-map-location__card { bottom: auto; }
  :where(.rx-map-location__consent) { top: 8rem; left: 1.25rem; width: calc(100% - 2.5rem); }
  .rx-location-map--editor .rx-map-location > .rx-map-location__card { position: relative; right: auto; }
}
