/* Nazza Delivery 2.1.0 ----------------------------------------------------
 * Integración visual Nazza + Warehouse.
 * Paleta: azul corporativo, magenta de acción y neutros suaves.
 */
:root {
  --nazza-delivery-blue: #0b2f82;
  --nazza-delivery-blue-dark: #082566;
  --nazza-delivery-magenta: #a60064;
  --nazza-delivery-magenta-dark: #850050;
  --nazza-delivery-text: #18233a;
  --nazza-delivery-muted: #6e7687;
  --nazza-delivery-border: #dfe4ee;
  --nazza-delivery-bg: #f8f9fc;
  --nazza-delivery-special-bg: #fff8fc;
}

#nazza-delivery-v2 {
  width: 100%;
  clear: both;
  margin: 0 0 12px;
}

/* Ficha de producto ----------------------------------------------------- */
.nazza-v2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--nazza-delivery-border);
  border-left: 3px solid var(--nazza-delivery-blue);
  border-radius: 7px;
  background: #fff;
  color: var(--nazza-delivery-text);
  box-sizing: border-box;
  font-size: 12.5px;
  line-height: 1.35;
}

.nazza-v2--special {
  border-left-color: var(--nazza-delivery-magenta);
  background: var(--nazza-delivery-special-bg);
}

.nazza-v2__iconbox {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(11, 47, 130, .08);
  color: var(--nazza-delivery-blue);
}

.nazza-v2--special .nazza-v2__iconbox {
  background: rgba(166, 0, 100, .08);
  color: var(--nazza-delivery-magenta);
}

.nazza-v2__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.nazza-v2__body {
  flex: 1 1 auto;
  min-width: 0;
}

.nazza-v2__eyebrow {
  margin: 0 0 2px;
  color: var(--nazza-delivery-blue);
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.nazza-v2--special .nazza-v2__eyebrow {
  color: var(--nazza-delivery-magenta);
}

.nazza-v2__title {
  margin: 0 0 2px;
  color: var(--nazza-delivery-blue-dark);
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 800;
}

.nazza-v2__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 1px 0 3px;
  color: var(--nazza-delivery-blue-dark);
  font-size: 14px;
}

.nazza-v2__dates strong {
  color: inherit;
  font-weight: 800;
}

.nazza-v2__sub {
  color: #4f5868;
  font-size: 11.5px;
}

.nazza-v2__sub strong {
  color: var(--nazza-delivery-blue-dark);
}

.nazza-v2__dot {
  padding: 0 4px;
  color: #9aa1ae;
}

.nazza-v2__timer {
  white-space: nowrap;
}

.nazza-v2__fee {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #e8eaf0;
  color: var(--nazza-delivery-blue-dark);
}

.nazza-v2__fee span {
  font-size: 11.5px;
  font-weight: 600;
}

.nazza-v2__fee strong {
  color: var(--nazza-delivery-magenta);
  font-size: 13px;
  font-weight: 800;
}

.nazza-v2__fee small {
  color: var(--nazza-delivery-muted);
  font-size: 10.5px;
}

/* Warehouse aplica estilos globales a button; se neutralizan aquí. */
#nazza-delivery-v2 button.nazza-v2__how,
#nazza-delivery-v2 .nazza-v2__how {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nazza-delivery-magenta) !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
  outline: 0 !important;
}

#nazza-delivery-v2 button.nazza-v2__how:hover,
#nazza-delivery-v2 button.nazza-v2__how:focus {
  color: var(--nazza-delivery-magenta-dark) !important;
  text-decoration: underline !important;
  background: transparent !important;
}

.nazza-v2__chevron {
  width: 13px;
  height: 13px;
  transition: transform .15s ease;
}

.nazza-v2__how[aria-expanded="true"] .nazza-v2__chevron {
  transform: rotate(180deg);
}

.nazza-v2__details {
  margin-top: 7px;
  padding: 8px 9px;
  border: 1px solid #eceef3;
  border-radius: 5px;
  background: #fff;
  color: #4f5868;
  font-size: 11px;
}

.nazza-v2__details strong {
  display: block;
  margin-bottom: 3px;
  color: var(--nazza-delivery-blue-dark);
}

.nazza-v2__details p { margin: 0; }

.nazza-v2__footnote {
  padding: 3px 2px 0;
  color: #9298a5;
  font-size: 9px;
  line-height: 1.25;
}

/* Carrito y checkout ---------------------------------------------------- */
.nazza-v2-cart-promise {
  position: relative;
  margin: 0 0 12px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--nazza-delivery-border);
  border-radius: 7px;
  background: #fff;
  color: var(--nazza-delivery-text);
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.35;
}

.nazza-v2-cart-promise::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 3px;
  border-radius: 7px 0 0 7px;
  background: var(--nazza-delivery-blue);
}

.nazza-v2-cart-promise--special {
  background: var(--nazza-delivery-special-bg);
}

.nazza-v2-cart-promise--special::before {
  background: var(--nazza-delivery-magenta);
}

.nazza-v2-cart-promise__eyebrow {
  margin: 0 0 2px;
  color: var(--nazza-delivery-blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nazza-v2-cart-promise--special .nazza-v2-cart-promise__eyebrow {
  color: var(--nazza-delivery-magenta);
}

.nazza-v2-cart-promise__title {
  margin: 0 0 3px;
  color: var(--nazza-delivery-blue-dark);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.nazza-v2-cart-promise__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 3px;
  color: #4f5868;
}

.nazza-v2-cart-promise__dates strong {
  color: var(--nazza-delivery-blue-dark);
  font-size: 12.5px;
  font-weight: 800;
}

.nazza-v2-cart-promise__sub {
  color: #5b6371;
  font-size: 11px;
}

.nazza-v2-cart-promise__fee {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e8eaf0;
  color: var(--nazza-delivery-blue-dark);
  font-size: 11px;
}

.nazza-v2-cart-promise__fee strong {
  color: var(--nazza-delivery-magenta);
  font-size: 12px;
  font-weight: 800;
}

.nazza-v2-cart-promise__footnote {
  margin-top: 4px;
  color: #9298a5;
  font-size: 8.5px;
  line-height: 1.2;
}

/* Desglose del recargo: mismo lenguaje visual que el resumen Warehouse. */
.nazza-v2-fee-summary {
  color: var(--nazza-delivery-text);
}

.nazza-v2-fee-summary .label,
.nazza-v2-fee-summary .cart-summary-line__label {
  color: var(--nazza-delivery-blue-dark);
  font-weight: 600;
}

.nazza-v2-fee-summary .value,
.nazza-v2-fee-summary .cart-summary-line__value {
  color: var(--nazza-delivery-magenta);
  font-weight: 800;
}

.nazza-v2-warning {
  margin-top: 6px;
  padding: 6px 8px;
  border-left: 3px solid var(--nazza-delivery-magenta);
  background: #fff3f8;
  color: #7b174f;
  font-size: 11px;
}

/* Opción DACHSER dentro del checkout: no usar naranja/verde. */
.nazza-v2-dachser-option {
  border-color: rgba(166, 0, 100, .38) !important;
  background: #fff8fc !important;
}

/* Legacy/fallback checkout --------------------------------------------- */
.nazza-v2-checkout-special {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--nazza-delivery-border);
  border-left: 3px solid var(--nazza-delivery-magenta);
  border-radius: 7px;
  background: var(--nazza-delivery-special-bg);
  color: var(--nazza-delivery-text);
  font-size: 12px;
  line-height: 1.35;
}

.nazza-v2-checkout-special > strong {
  display: block;
  margin-bottom: 2px;
  color: var(--nazza-delivery-blue-dark);
}

.nazza-v2-checkout-fee { margin-top: 5px; }

#checkout-delivery-step #nazza-delivery-cart-promise {
  width: 100%;
}

@media (max-width: 767px) {
  .nazza-v2 {
    gap: 8px;
    padding: 10px;
  }

  .nazza-v2__iconbox {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .nazza-v2__dates { font-size: 13px; }

  .nazza-v2-cart-promise {
    padding: 10px 10px 10px 13px;
  }
}

/* Nazza Delivery 2.1 · destino, envío gratuito y total desde carrito ------ */
.nazza-v21-destination,
.nazza-v21-destination-current,
.nazza-v21-free,
.nazza-v21-pricing {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e8eaf0;
}

.nazza-v21-destination__title {
  margin-bottom: 6px;
  color: var(--nazza-delivery-blue-dark);
  font-weight: 700;
  font-size: 11.5px;
}

.nazza-v21-destination__form {
  display: grid;
  grid-template-columns: minmax(105px, .85fr) minmax(105px, .9fr) auto;
  gap: 6px;
  align-items: end;
}

.nazza-v21-destination__form label {
  display: block;
  margin: 0;
  color: var(--nazza-delivery-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.nazza-v21-destination__form label span {
  display: block;
  margin-bottom: 3px;
}

.nazza-v21-destination__form select,
.nazza-v21-destination__form input {
  width: 100%;
  height: 33px;
  padding: 5px 8px;
  border: 1px solid var(--nazza-delivery-border);
  border-radius: 5px;
  background: #fff;
  color: var(--nazza-delivery-text);
  font-size: 11px;
  box-shadow: none;
}

.nazza-v21-destination__form select:focus,
.nazza-v21-destination__form input:focus {
  border-color: var(--nazza-delivery-blue);
  outline: 0;
}

.nazza-v21-destination__form button {
  height: 33px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: var(--nazza-delivery-magenta);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.nazza-v21-destination__form button:hover,
.nazza-v21-destination__form button:focus {
  background: var(--nazza-delivery-magenta-dark);
  color: #fff;
}

.nazza-v21-destination__hint,
.nazza-v21-pricing__note {
  margin-top: 4px;
  color: #8a91a0;
  font-size: 9px;
  line-height: 1.25;
}

.nazza-v21-destination-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #5b6371;
  font-size: 10.5px;
}

.nazza-v21-destination-current strong {
  color: var(--nazza-delivery-blue-dark);
}

.nazza-v21-change-destination {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nazza-delivery-magenta);
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
}

.nazza-v21-free__label {
  margin-bottom: 5px;
  color: var(--nazza-delivery-blue-dark);
  font-size: 10.5px;
  font-weight: 700;
}

.nazza-v21-free.is-reached .nazza-v21-free__label {
  color: var(--nazza-delivery-magenta);
}

.nazza-v21-free__track {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: #e9edf5;
}

.nazza-v21-free__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--nazza-delivery-blue);
  transition: width .18s ease;
}

.nazza-v21-free.is-reached .nazza-v21-free__track span {
  background: var(--nazza-delivery-magenta);
}

.nazza-v21-pricing__row,
.nazza-v21-pricing__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
  color: #5b6371;
  font-size: 10.5px;
}

.nazza-v21-pricing__row strong {
  color: var(--nazza-delivery-blue-dark);
  font-weight: 700;
  text-align: right;
}

.nazza-v21-pricing__row--fee strong {
  color: var(--nazza-delivery-magenta);
}

.nazza-v21-pricing__detail {
  margin: 3px 0 1px;
  color: #8a91a0;
  font-size: 9px;
  text-align: right;
}

.nazza-v21-pricing__total {
  margin-top: 5px;
  padding-top: 6px;
  border-top: 1px solid #e8eaf0;
  color: var(--nazza-delivery-blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.nazza-v21-pricing__total strong {
  color: var(--nazza-delivery-blue-dark);
  font-size: 14px;
  font-weight: 800;
}

.nazza-v2-cart-promise--special .nazza-v21-pricing__total strong {
  color: var(--nazza-delivery-magenta);
}

@media (max-width: 767px) {
  .nazza-v21-destination__form {
    grid-template-columns: 1fr 1fr;
  }

  .nazza-v21-destination__form button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.nazza-v21-destination__error{margin-top:7px;font-size:12px;color:#b4235a;font-weight:600}

/* Nazza Delivery 2.1.2 --------------------------------------------------
 * Carrito/checkout: más aire, menos duplicación y estimaciones integradas
 * en el resumen nativo de Warehouse.
 */
.nazza-v2-cart-promise {
  margin-bottom: 16px;
  padding: 14px 16px 12px 18px;
  border-radius: 8px;
  background: #fff;
  line-height: 1.45;
}

.nazza-v2-cart-promise--special {
  background: #fff;
}

.nazza-v212-main {
  padding-bottom: 2px;
}

.nazza-v2-cart-promise__eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

.nazza-v2-cart-promise__title {
  margin-bottom: 5px;
  font-size: 14px;
}

.nazza-v2-cart-promise__dates {
  margin-bottom: 5px;
  gap: 4px;
}

.nazza-v2-cart-promise__sub {
  max-width: 34em;
  font-size: 11px;
  line-height: 1.45;
}

.nazza-v21-destination,
.nazza-v21-destination-current,
.nazza-v21-free,
.nazza-v21-pricing,
.nazza-v21-pending,
.nazza-v21-estimate-note {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #edf0f5;
}

.nazza-v21-destination__title {
  margin-bottom: 8px;
  font-size: 11.5px;
}

/* El resumen lateral es estrecho: 2 columnas y CTA en una fila propia. */
.nazza-v21-destination__form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.nazza-v21-destination__form select,
.nazza-v21-destination__form input {
  height: 36px;
  padding: 6px 9px;
  font-size: 11px;
}

.nazza-v21-destination__form button {
  grid-column: 1 / -1;
  width: 100%;
  height: 36px;
  margin-top: 1px;
  font-size: 11px;
}

.nazza-v21-destination__hint,
.nazza-v21-pricing__note,
.nazza-v21-estimate-note {
  margin-top: 6px;
  color: #858d9d;
  font-size: 9px;
  line-height: 1.35;
}

.nazza-v21-estimate-note {
  padding-top: 8px;
}

.nazza-v21-destination-current {
  padding-bottom: 1px;
  font-size: 10.5px;
}

.nazza-v21-change-destination {
  flex: 0 0 auto;
  padding: 2px 0;
}

.nazza-v21-pending {
  color: #667085;
  font-size: 10.5px;
  line-height: 1.4;
}

.nazza-v21-free {
  padding-top: 9px;
}

.nazza-v21-free.is-reached {
  border-top: 0;
  padding-top: 2px;
}

.nazza-v21-free__badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(166, 0, 100, .07);
  color: var(--nazza-delivery-magenta);
  font-size: 10px;
  font-weight: 700;
}

.nazza-v21-free__label {
  margin-bottom: 6px;
  font-size: 10px;
}

.nazza-v21-free__track {
  height: 3px;
}

.nazza-v2-cart-promise__footnote {
  margin-top: 9px;
  padding-top: 0;
  color: #9aa1ad;
  font-size: 8.5px;
}

/* Estimación por CP: los precios se muestran en el desglose que el cliente
 * ya reconoce como resumen, en vez de duplicarlos dentro de la tarjeta. */
.cart-summary-line[data-nazza-v212-estimate="1"] .label,
.cart-summary-line[data-nazza-v212-estimate="1"] .cart-summary-line__label {
  color: #667085;
}

.nazza-v2-fee-summary--estimate .label,
.nazza-v2-fee-summary--estimate .cart-summary-line__label {
  color: #667085;
}

.nazza-v2-fee-summary--estimate .value,
.nazza-v2-fee-summary--estimate .cart-summary-line__value {
  color: var(--nazza-delivery-magenta);
}

/* Ya no se usa el bloque de pricing duplicado de 2.1.0/2.1.1. */
.nazza-v21-pricing {
  display: none !important;
}

@media (max-width: 767px) {
  .nazza-v2-cart-promise {
    padding: 13px 13px 11px 16px;
    margin-bottom: 14px;
  }

  .nazza-v21-destination__form {
    grid-template-columns: 1fr;
  }

  .nazza-v21-destination__form button {
    grid-column: 1;
  }
}

/* Nazza Delivery 2.2.1 --------------------------------------------------
 * Integración nativa tipo marketplace: la logística deja de ser una tarjeta
 * independiente y pasa a formar parte del bloque de compra/resumen.
 */

/* Ficha ---------------------------------------------------------------- */
#nazza-delivery-v2 {
  margin: 4px 0 16px;
  padding: 0;
}

.nazza-native-product {
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid #e4e7ed;
  border-bottom: 1px solid #e4e7ed;
  background: transparent;
  color: #25324a;
  box-sizing: border-box;
}

.nazza-native-product__main {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.nazza-native-product__icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: var(--nazza-delivery-blue);
}

.nazza-native-product__icon .nazza-v2__icon {
  width: 20px;
  height: 20px;
}

.nazza-native-product.is-special .nazza-native-product__icon {
  color: var(--nazza-delivery-magenta);
}

.nazza-native-product__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.nazza-native-product__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  color: var(--nazza-delivery-blue-dark);
  font-size: 12px;
  line-height: 1.35;
}

.nazza-native-product__headline strong {
  font-weight: 800;
}

.nazza-native-product__headline span {
  font-weight: 700;
}

.nazza-native-product.is-special .nazza-native-product__headline strong {
  color: var(--nazza-delivery-magenta);
}

.nazza-native-product__meta {
  margin-top: 3px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.4;
}

.nazza-native-product__meta > strong {
  color: var(--nazza-delivery-magenta);
  font-weight: 800;
}

.nazza-native-product #nazza-delivery-v2 button.nazza-v2__how,
.nazza-native-product button.nazza-v2__how,
.nazza-native-product .nazza-v2__how {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10.5px !important;
  vertical-align: baseline;
}

.nazza-native-product .nazza-v2__details {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.45;
}

/* Carrito / checkout --------------------------------------------------- */
.nazza-v2-cart-promise,
#checkout-delivery-step #nazza-delivery-cart-promise {
  position: static;
  width: auto;
  margin: 7px 0;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #e4e7ed;
  border-bottom: 1px solid #e4e7ed;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #25324a;
  line-height: 1.4;
}

.nazza-v2-cart-promise::before {
  display: none !important;
}

.nazza-native-delivery__main {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.nazza-native-delivery__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nazza-delivery-blue);
}

.nazza-native-delivery__icon svg {
  display: block;
  width: 19px;
  height: 19px;
}

.nazza-v2-cart-promise--special .nazza-native-delivery__icon {
  color: var(--nazza-delivery-magenta);
}

.nazza-native-delivery__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.nazza-native-delivery__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  color: var(--nazza-delivery-blue-dark);
  font-size: 11px;
  line-height: 1.35;
}

.nazza-native-delivery__headline strong {
  font-size: 11.5px;
  font-weight: 800;
}

.nazza-native-delivery__headline span {
  font-weight: 700;
}

.nazza-v2-cart-promise--special .nazza-native-delivery__headline strong {
  color: var(--nazza-delivery-magenta);
}

.nazza-native-delivery__meta,
.nazza-native-delivery__pending,
.nazza-native-delivery__details,
.nazza-native-estimate-note {
  margin-top: 3px;
  color: #697386;
  font-size: 9.5px;
  line-height: 1.4;
}

.nazza-native-delivery__details {
  padding: 5px 0 1px;
}

.nazza-native-link {
  -webkit-appearance: none;
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nazza-delivery-magenta);
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  cursor: pointer;
  text-decoration: none;
}

.nazza-native-link:hover,
.nazza-native-link:focus {
  color: var(--nazza-delivery-magenta-dark);
  text-decoration: underline;
  outline: none;
}

.nazza-native-destination-current {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: #566176;
  font-size: 9.5px;
  line-height: 1.35;
}

.nazza-native-destination-current strong {
  color: var(--nazza-delivery-blue-dark);
  font-weight: 700;
}

.nazza-native-destination-form {
  margin-top: 7px;
}

.nazza-native-destination-form__label {
  display: block;
  margin-bottom: 4px;
  color: #566176;
  font-size: 9px;
  font-weight: 700;
}

.nazza-native-destination-form form {
  display: grid;
  grid-template-columns: minmax(72px, .9fr) minmax(82px, 1fr) auto;
  gap: 5px;
  align-items: center;
}

.nazza-native-destination-form select,
.nazza-native-destination-form input,
.nazza-native-destination-form button {
  height: 31px;
  min-width: 0;
  margin: 0;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 9.5px;
}

.nazza-native-destination-form select,
.nazza-native-destination-form input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #d6dbe5;
  background: #fff;
  color: #25324a;
}

.nazza-native-destination-form select:focus,
.nazza-native-destination-form input:focus {
  border-color: var(--nazza-delivery-blue);
  outline: none;
}

.nazza-native-destination-form button {
  padding: 4px 8px;
  border: 1px solid var(--nazza-delivery-magenta);
  background: var(--nazza-delivery-magenta);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.nazza-native-free {
  margin-top: 6px;
  color: var(--nazza-delivery-blue-dark);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.35;
}

.nazza-native-free.is-reached {
  color: var(--nazza-delivery-magenta);
}

.nazza-native-estimate-note {
  color: #9299a7;
  font-size: 8.5px;
}

/* El recargo sigue siendo una línea económica nativa, no parte de la promesa. */
.nazza-v2-fee-summary .label,
.nazza-v2-fee-summary .cart-summary-line__label {
  color: var(--nazza-delivery-blue-dark);
  font-weight: 600;
}

.nazza-v2-fee-summary .value,
.nazza-v2-fee-summary .cart-summary-line__value {
  color: var(--nazza-delivery-magenta);
  font-weight: 800;
}

/* Componentes antiguos que 2.2.x ya no renderiza. */
.nazza-v212-main,
.nazza-v21-free__track,
.nazza-v21-destination__hint,
.nazza-v2-cart-promise__footnote {
  display: none !important;
}

@media (max-width: 767px) {
  .nazza-native-product__headline,
  .nazza-native-delivery__headline {
    display: block;
  }

  .nazza-native-product__headline span,
  .nazza-native-delivery__headline span {
    display: block;
    margin-top: 1px;
  }

  .nazza-native-destination-form form {
    grid-template-columns: 1fr 1fr;
  }

  .nazza-native-destination-form button {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* 2.2.3 · mini carrito Warehouse: una línea nativa por concepto ----------- */
#_desktop_cart .nazza-mini-controlled-line,
#_mobile_cart .nazza-mini-controlled-line,
.iqitshoppingcart .nazza-mini-controlled-line,
.ps-shoppingcart .nazza-mini-controlled-line,
.blockcart .nazza-mini-controlled-line {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#_desktop_cart .nazza-mini-controlled-line > :first-child,
#_mobile_cart .nazza-mini-controlled-line > :first-child,
.iqitshoppingcart .nazza-mini-controlled-line > :first-child,
.ps-shoppingcart .nazza-mini-controlled-line > :first-child,
.blockcart .nazza-mini-controlled-line > :first-child,
.nazza-mini-line-label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: 400 !important;
  text-align: left !important;
  white-space: normal !important;
}

#_desktop_cart .nazza-mini-controlled-line > :last-child,
#_mobile_cart .nazza-mini-controlled-line > :last-child,
.iqitshoppingcart .nazza-mini-controlled-line > :last-child,
.ps-shoppingcart .nazza-mini-controlled-line > :last-child,
.blockcart .nazza-mini-controlled-line > :last-child,
.nazza-mini-line-value {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: 400 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* Gestión / Paletización se comporta exactamente como otro subtotal. */
#_desktop_cart [data-nazza-mini-fee="1"],
#_mobile_cart [data-nazza-mini-fee="1"],
.iqitshoppingcart [data-nazza-mini-fee="1"],
.ps-shoppingcart [data-nazza-mini-fee="1"],
.blockcart [data-nazza-mini-fee="1"] {
  color: inherit !important;
  background: transparent !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

/* Evita restos visuales de versiones anteriores cuando CCC conserva CSS. */
[data-nazza-mini-fee="1"] .nazza-v2-fee-summary,
[data-nazza-mini-fee="1"] .nazza-v2-warning {
  display: none !important;
}

/* 2.2.4 · integración nativa real en el resumen de Warehouse -------------- */
/* La promesa de entrega deja de tener identidad visual propia: se comporta
   como cualquier otro bloque de líneas del resumen. */
.nazza-v2-cart-promise,
.nazza-v2-cart-promise--special,
.nazza-v2-cart-promise--standard,
#checkout-delivery-step #nazza-delivery-cart-promise {
  margin: 0 !important;
  padding: 7px 0 !important;
  border: 0 !important;
  border-top: 1px solid #dedede !important;
  border-bottom: 1px solid #dedede !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

.nazza-v2-cart-promise::before,
.nazza-v2-cart-promise--special::before,
.nazza-v2-cart-promise--standard::before {
  display: none !important;
}

.nazza-v2-cart-promise .nazza-native-summary-row {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  box-sizing: border-box !important;
}

.nazza-v2-cart-promise .nazza-native-summary-row > .label,
.nazza-v2-cart-promise .nazza-native-summary-row > .value {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  text-transform: none !important;
}

.nazza-v2-cart-promise .nazza-native-summary-row > .label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: left !important;
}

.nazza-v2-cart-promise .nazza-native-summary-row > .value {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin-left: auto !important;
  text-align: right !important;
}

/* El destino es información secundaria, como los metadatos nativos del tema. */
.nazza-v2-cart-promise .nazza-native-summary-row--destination {
  color: #6c757d !important;
  font-size: .86em !important;
}

.nazza-v2-cart-promise .nazza-native-summary-row--destination .value {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
}

.nazza-v2-cart-promise .nazza-native-summary-change,
.nazza-v2-cart-promise .nazza-native-link {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #a90067 !important;
  font: inherit !important;
  font-weight: 600 !important;
  line-height: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.nazza-v2-cart-promise .nazza-native-summary-change:hover,
.nazza-v2-cart-promise .nazza-native-summary-change:focus,
.nazza-v2-cart-promise .nazza-native-link:hover,
.nazza-v2-cart-promise .nazza-native-link:focus {
  text-decoration: underline !important;
  outline: 0 !important;
}

/* El formulario de destino también queda plano, sin caja propia. */
.nazza-v2-cart-promise .nazza-native-summary-form,
.nazza-v2-cart-promise .nazza-native-destination-form {
  margin: 0 !important;
  padding: 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Gestión / Paletización es económicamente otra línea de transporte. */
.nazza-v2-fee-summary,
.nazza-v2-fee-summary--estimate,
.cart-summary-line.nazza-v2-fee-summary {
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
}

.nazza-v2-fee-summary .label,
.nazza-v2-fee-summary .value,
.nazza-v2-fee-summary .cart-summary-line__label,
.nazza-v2-fee-summary .cart-summary-line__value,
.nazza-v2-fee-summary .cart-summary-line-label,
.nazza-v2-fee-summary .cart-summary-line-value {
  color: inherit !important;
  font: inherit !important;
  font-weight: 400 !important;
  text-transform: none !important;
}

/* No coloreamos una entrega especial: para el cliente es una modalidad de
   entrega, no una marca o transportista. */
.nazza-v2-cart-promise--special,
.nazza-v2-cart-promise--special .label,
.nazza-v2-cart-promise--special .value,
.nazza-v2-cart-promise--special .nazza-native-summary-row {
  color: inherit !important;
}

@media (max-width: 767px) {
  .nazza-v2-cart-promise .nazza-native-summary-row {
    gap: 8px !important;
  }

  .nazza-v2-cart-promise .nazza-native-summary-row > .value {
    max-width: 58% !important;
  }
}
