/* =========================================================
   ADADP 11.125.0 - Dirección: CP a la izquierda, Población a la derecha
   SOLO VISUAL. Provincia permanece debajo de Población.
   ========================================================= */

@media (min-width: 640px) {
  html body .adadp-postcode-place-wrap,
  html body#checkout .adadp-postcode-place-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body .adadp-postcode-place-wrap > .adadp-postcode-row,
  html body#checkout .adadp-postcode-place-wrap > .adadp-postcode-row {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Anula anchos/bootstrap heredados que hacían desbordar el CP. */
  html body .adadp-postcode-row > [class*="col-"],
  html body#checkout .adadp-postcode-row > [class*="col-"],
  html body .adadp-postcode-row .col-md-6,
  html body .adadp-postcode-row .col-md-3,
  html body#checkout .adadp-postcode-row .col-md-6,
  html body#checkout .adadp-postcode-row .col-md-3 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body .adadp-postcode-row input,
  html body .adadp-postcode-row .form-control,
  html body#checkout .adadp-postcode-row input,
  html body#checkout .adadp-postcode-row .form-control {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  html body .adadp-postcode-place-wrap > .adadp-spain-place-box,
  html body#checkout .adadp-postcode-place-wrap > .adadp-spain-place-box {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body .adadp-spain-place-box .adadp-place-field,
  html body .adadp-spain-place-box .adadp-province-field,
  html body#checkout .adadp-spain-place-box .adadp-place-field,
  html body#checkout .adadp-spain-place-box .adadp-province-field,
  html body .adadp-spain-place-box #adadp-city-select,
  html body .adadp-spain-place-box .adadp-province-value,
  html body#checkout .adadp-spain-place-box #adadp-city-select,
  html body#checkout .adadp-spain-place-box .adadp-province-value {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 639px) {
  html body .adadp-postcode-place-wrap,
  html body#checkout .adadp-postcode-place-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}
