/* Isolated fix for the production manager PWA's Google Maps order window. */
@media (max-width: 600px) {
  .google-map .gm-style-iw-c:has(.map-order-popup-card, .map-order-group-popup) {
    box-sizing: border-box;
    max-width: calc(100vw - 24px) !important;
    max-height: min(72dvh, 560px) !important;
    padding: 12px !important;
  }
  .google-map .gm-style-iw-d:has(.map-order-popup-card, .map-order-group-popup) {
    max-height: calc(min(72dvh, 560px) - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .google-map .map-order-popup-card,
  .google-map .map-order-group-popup {
    box-sizing: border-box;
    width: min(340px, calc(100vw - 76px));
    min-width: 0;
    max-width: 100%;
  }
  .google-map .map-order-popup-field > small { overflow-wrap: anywhere; }
  .map-order-mobile-close {
    position: fixed;
    z-index: 20000;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    min-width: 78px;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
    font: 800 13px Inter, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
  }
  .map-order-mobile-close:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
}
