/* =========================================================
   ADADP 11.135.0 - Dirección final + Otras indicaciones
   Escritorio/tablet:
     [ Código postal ] [ Teléfono .................. ]
              [ Población (ancha) ]
              [ Provincia (ancha) ]
   Móvil: CP > Teléfono > Población > Provincia
   ========================================================= */

/* Evita la segunda estrella generada por el layout histórico del DNI. */
#checkout-addresses-step .adadp-spain-required > label::after {
  content: none !important;
  display: none !important;
}

/* Todas las estrellas añadidas por ADADP usan exactamente el mismo tono. */
#checkout-addresses-step .adadp-required-star-v11133,
#checkout-addresses-step .adadp-required-star-v11135,
#checkout-addresses-step [class*="adadp-required-star"] {
  color: #cf0000 !important;
  font-weight: 800 !important;
  margin-left: 3px !important;
  line-height: 1 !important;
}

@media (min-width: 680px) {
  html body#checkout .adadp-postcode-place-wrap,
  html body .adadp-postcode-place-wrap {
    display: grid !important;
    grid-template-columns: 260px minmax(300px, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 28px !important;
    row-gap: 18px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  html body#checkout .adadp-postcode-place-wrap > .adadp-v11135-phone,
  html body .adadp-postcode-place-wrap > .adadp-v11135-phone {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: start !important;
  }

  html body#checkout .adadp-postcode-place-wrap > .adadp-v11135-place-box,
  html body .adadp-postcode-place-wrap > .adadp-v11135-place-box {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: min(520px, 100%) !important;
    max-width: 520px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body#checkout .adadp-postcode-place-wrap .adadp-v11135-field-row,
  html body .adadp-postcode-place-wrap .adadp-v11135-field-row {
    display: block !important;
  }

  html body#checkout .adadp-postcode-place-wrap .adadp-v11135-col,
  html body .adadp-postcode-place-wrap .adadp-v11135-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body#checkout .adadp-postcode-place-wrap .adadp-v11135-postcode input,
  html body#checkout .adadp-postcode-place-wrap .adadp-v11135-postcode .form-control,
  html body .adadp-postcode-place-wrap .adadp-v11135-postcode input,
  html body .adadp-postcode-place-wrap .adadp-v11135-postcode .form-control {
    width: 260px !important;
    max-width: 260px !important;
    box-sizing: border-box !important;
  }

  html body#checkout .adadp-postcode-place-wrap .adadp-v11135-phone .adadp-phone-input-wrap,
  html body .adadp-postcode-place-wrap .adadp-v11135-phone .adadp-phone-input-wrap {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body#checkout .adadp-postcode-place-wrap .adadp-v11135-phone .adadp-phone-input-wrap input,
  html body .adadp-postcode-place-wrap .adadp-v11135-phone .adadp-phone-input-wrap input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body#checkout .adadp-v11135-place-box .adadp-place-field,
  html body#checkout .adadp-v11135-place-box .adadp-province-field,
  html body#checkout .adadp-v11135-place-box .adadp-place-status,
  html body .adadp-v11135-place-box .adadp-place-field,
  html body .adadp-v11135-place-box .adadp-province-field,
  html body .adadp-v11135-place-box .adadp-place-status {
    width: 100% !important;
    max-width: 520px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body#checkout .adadp-v11135-place-box .adadp-place-field label,
  html body#checkout .adadp-v11135-place-box .adadp-province-field label,
  html body .adadp-v11135-place-box .adadp-place-field label,
  html body .adadp-v11135-place-box .adadp-province-field label {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 0 7px !important;
  }

  html body#checkout .adadp-v11135-place-box .adadp-place-field select,
  html body#checkout .adadp-v11135-place-box .adadp-place-field .form-control,
  html body#checkout .adadp-v11135-place-box .adadp-province-value,
  html body .adadp-v11135-place-box .adadp-place-field select,
  html body .adadp-v11135-place-box .adadp-place-field .form-control,
  html body .adadp-v11135-place-box .adadp-province-value {
    display: block !important;
    width: 100% !important;
    max-width: 520px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

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

  html body#checkout .adadp-postcode-place-wrap > .adadp-v11135-postcode,
  html body#checkout .adadp-postcode-place-wrap > .adadp-v11135-phone,
  html body#checkout .adadp-postcode-place-wrap > .adadp-v11135-place-box,
  html body .adadp-postcode-place-wrap > .adadp-v11135-postcode,
  html body .adadp-postcode-place-wrap > .adadp-v11135-phone,
  html body .adadp-postcode-place-wrap > .adadp-v11135-place-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body#checkout .adadp-v11135-place-box,
  html body .adadp-v11135-place-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body#checkout .adadp-postcode-place-wrap input,
  html body#checkout .adadp-postcode-place-wrap select,
  html body#checkout .adadp-postcode-place-wrap .form-control,
  html body#checkout .adadp-postcode-place-wrap .adadp-province-value,
  html body .adadp-postcode-place-wrap input,
  html body .adadp-postcode-place-wrap select,
  html body .adadp-postcode-place-wrap .form-control,
  html body .adadp-postcode-place-wrap .adadp-province-value {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* =========================================================
   ADADP 11.135 - Campo opcional de dirección
   - "Dirección Complementaria" -> "Otras indicaciones"
   - sin placeholder "Piso, puerta, escalera..."
   - etiqueta arriba y campo a ancho completo
   ========================================================= */
#checkout-addresses-step .adadp-v11135-address2-row,
body#checkout .adadp-v11135-address2-row,
body .adadp-v11135-address2-row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#checkout-addresses-step .adadp-v11135-address2-row > [class*="col-"],
#checkout-addresses-step .adadp-v11135-address2-col,
body#checkout .adadp-v11135-address2-row > [class*="col-"],
body#checkout .adadp-v11135-address2-col,
body .adadp-v11135-address2-row > [class*="col-"],
body .adadp-v11135-address2-col {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#checkout-addresses-step .adadp-v11135-address2-row label,
body#checkout .adadp-v11135-address2-row label,
body .adadp-v11135-address2-row label {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
  margin: 0 0 7px !important;
}

#checkout-addresses-step .adadp-v11135-address2-row input[name="address2"],
#checkout-addresses-step .adadp-v11135-address2-row textarea[name="address2"],
#checkout-addresses-step .adadp-v11135-address2-row .form-control,
body#checkout .adadp-v11135-address2-row input[name="address2"],
body#checkout .adadp-v11135-address2-row textarea[name="address2"],
body#checkout .adadp-v11135-address2-row .form-control,
body .adadp-v11135-address2-row input[name="address2"],
body .adadp-v11135-address2-row textarea[name="address2"],
body .adadp-v11135-address2-row .form-control {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
