.whp-wcama-picker-map{width:100%;min-height:260px;border-radius:18px;overflow:hidden;background:#f3f4f6}
.pac-container{z-index:1000005!important;border-radius:0 0 14px 14px!important;box-shadow:0 12px 28px rgba(0,0,0,.16)!important;border:1px solid #e6e6e6!important;border-top:0!important;font-family:inherit!important}
.pac-container.whp-pac-dismissed{display:none!important}
.pac-item{min-height:44px!important;line-height:1.25!important;padding:9px 12px!important;display:flex!important;align-items:center!important;cursor:pointer!important}
.pac-item:hover{background:#f7f7f7!important}
.pac-icon{flex:0 0 auto!important}
.pac-item-query{font-size:14px!important;color:#1f1f1f!important}
@media(max-width:640px){.pac-container{max-width:calc(100vw - 28px)!important}.pac-item{min-height:48px!important;padding:10px 12px!important}.pac-item-query{font-size:15px!important}}

/* Sólo las listas personalizadas; el autocompletado convencional conserva su aspecto. */
.whp-wcama-radio-list[hidden]{display:none!important}
.whp-wcama-radio-list{max-height:215px;overflow-y:auto;border:1px solid #e4e4e4;border-radius:12px;background:#fff;text-align:left;margin-top:5px}
.whp-wcama-radio-option{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;border-bottom:1px solid #f0f0f0;color:#222;font-size:13px;line-height:1.35}
.whp-wcama-radio-option:last-child{border-bottom:0}
.whp-wcama-radio-option input{flex:0 0 auto;accent-color:var(--whp-mode-primary,#111);width:17px;height:17px}
.whp-wcama-radio-option span{flex:1;min-width:0}
.whp-wcama-radio-option:has(input:checked){background:#f7f7f7}

.whp-wcama-powered-by-google{display:flex;align-items:center;justify-content:flex-end;padding:4px 9px 6px;background:#fff}
.whp-wcama-powered-by-google img{display:block;width:120px;height:auto;max-height:20px;object-fit:contain}

/* 4.0.20-beta.2: rediseño acotado al paso móvil "¿Dónde lo enviamos?".
   No afecta el checkout legado ni otros consumidores del picker. */
@media (max-width: 640px) {
  .whp-wcama-address-modal-compact .whp-wcama-address-compact-title {
    font-size: 20px !important;
    line-height: 1.15 !important;
    letter-spacing: -.35px;
    margin-top: 2px !important;
    margin-bottom: 3px !important;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-compact-step {
    font-size: 10px !important;
    line-height: 1.15 !important;
    margin: 1px 0 3px !important;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-compact-help {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-compact-field {
    margin-top: 0 !important;
    margin-bottom: 7px !important;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-compact-input {
    min-height: 40px !important;
    max-height: 46px;
    font-size: 13px !important;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-map-shell {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 13px;
    background: #f3f4f6;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-map-shell:has(> .whp-wcama-address-compact-map[hidden]) {
    display: none !important;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-compact-map:not([hidden]) {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: clamp(290px, calc(100dvh - 225px), 650px) !important;
    min-height: 290px !important;
    border-radius: 13px !important;
  }
  .whp-wcama-address-modal-compact.whp-wcama-address-map-open .whp-wcama-address-original-actions-row {
    display: none !important;
  }
  .whp-wcama-address-modal-compact.whp-wcama-address-map-open .whp-wcama-address-original-map-action {
    display: none !important;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-map-actions {
    position: absolute;
    bottom: 34px; /* No tapa los créditos obligatorios de Google Maps. */
    left: 9px;
    right: 9px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    pointer-events: none;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-map-actions[hidden] { display: none !important; }
  .whp-wcama-address-modal-compact .whp-wcama-address-map-chip {
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    color: #34404b !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    padding: 9px 10px !important;
    min-height: 34px;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.16);
    background: #fff !important;
    cursor: pointer;
  }
  .whp-wcama-address-modal-compact .whp-wcama-address-map-chip:last-child { color: #176e5b !important; }
  .whp-wcama-address-modal-compact .whp-wcama-address-map-chip:disabled { opacity: .55; cursor: not-allowed; }
}
@media (max-width: 640px) and (max-height: 600px) {
  .whp-wcama-address-modal-compact .whp-wcama-address-compact-map:not([hidden]) {
    height: max(240px, calc(100dvh - 205px)) !important;
    min-height: 240px !important;
  }
}
