/**
 * Deko — promo under TOTAL (CON IVA)
 * Misma fila: input ancho a la izquierda + Agregar centrado bajo el monto
 */
body#checkout #js-checkout-summary .block-promo .promo-code,
.cart-grid-right .block-promo .promo-code {
  padding: 0.65rem 1.25rem 0.25rem !important; /* = .card-block horizontal padding */
  box-sizing: border-box;
}

body#checkout #js-checkout-summary .block-promo .dkh-promo-form,
.cart-grid-right .block-promo .dkh-promo-form {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  box-sizing: border-box;
}

/* Input más grande, a la izquierda */
body#checkout #js-checkout-summary .block-promo .promo-input,
body#checkout #js-checkout-summary .block-promo .dkh-promo-input,
.cart-grid-right .block-promo .promo-input,
.cart-grid-right .block-promo .dkh-promo-input {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 2.7rem !important;
  margin: 0 !important;
  padding: 0 0.9rem !important;
  box-sizing: border-box !important;
  color: #232323 !important;
  text-align: center !important;
  text-indent: 0 !important;
  font-size: 0.9375rem !important;
  line-height: 2.7rem !important;
  border: 1px solid #7a7a7a !important;
  border-radius: 2px !important;
  background: #fff !important;
}

body#checkout #js-checkout-summary .block-promo .dkh-promo-input::placeholder,
.cart-grid-right .block-promo .dkh-promo-input::placeholder {
  color: #8a8a8a !important;
  opacity: 1 !important;
  text-align: center !important;
}

/* Columna del botón = zona del monto TOTAL (derecha) */
body#checkout #js-checkout-summary .block-promo .dkh-promo-submit-wrap,
.cart-grid-right .block-promo .dkh-promo-submit-wrap {
  flex: 0 0 7.9rem !important;
  width: 7.9rem !important;
  min-width: 7.9rem !important;
  max-width: 7.9rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 0 0 auto !important; /* empuja a la derecha */
  padding: 0 !important;
}

body#checkout #js-checkout-summary .block-promo .dkh-promo-submit,
.cart-grid-right .block-promo .dkh-promo-submit {
  margin: 0 !important;
  width: auto !important;
  min-width: 5.85rem !important;
  height: 2.5rem !important;
  padding: 0 1.15rem !important;
  text-transform: capitalize !important;
  white-space: nowrap !important;
}

body#checkout #js-checkout-summary .block-promo .promo-code .alert-danger.js-error,
.cart-grid-right .block-promo .promo-code .alert-danger.js-error {
  margin-left: 0;
  margin-right: 0;
}
