/* Voucher controls share the storefront's warm, quiet checkout surfaces. */
[hidden] { display: none !important; }

.checkout-promo {
  min-width: 0;
  margin: 23px 0;
  padding: 17px;
  border: 1px solid #e1e6d9;
  border-radius: 14px;
  background: linear-gradient(115deg, #f5f8ef, #fffaf2);
}
.promo-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}
.promo-heading > .icon { width: 17px; height: 17px; color: #617d60; }
.promo-heading label { font-size: 13px; font-weight: 650; line-height: 1.5; }
.promo-heading > span { margin-left: auto; font-size: 10px; color: var(--muted); }
.promo-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.promo-entry input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d6dfd0;
  border-radius: 10px;
  background: #fffefa;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .3px;
  transition: border-color .18s, box-shadow .18s;
}
.promo-entry input::placeholder { color: #7a8377; font-size: 13px; letter-spacing: 0; }
.promo-entry input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px #f36b3b20; }
.promo-entry input[aria-invalid="true"] { border-color: #b84833; }
.promo-entry input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #b848331c; }
.promo-entry .button {
  min-width: 84px;
  min-height: 46px;
  padding: 10px 13px;
  border-color: #e7c5b2;
  border-radius: 10px;
  background: #fff6ed;
  color: #b6421c;
  font-size: 12px;
}
.promo-entry .button:hover { background: #ffede0; transform: none; }
.promo-entry .button:disabled { opacity: .55; cursor: not-allowed; }
.promo-hint { margin-top: 9px; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.promo-hint strong { color: var(--ink-soft); font-weight: 700; letter-spacing: .3px; }
.promo-feedback { margin-top: 9px; font-size: 12px; line-height: 1.6; color: #386d48; overflow-wrap: anywhere; }
.promo-feedback.is-error { color: #a53525; }
.promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-top: 11px;
  padding: 8px 8px 8px 12px;
  border: 1px solid #cbdcc2;
  border-radius: 10px;
  background: #eef5e8;
  color: #355f3f;
}
.promo-applied > span { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; align-items: center; min-width: 0; }
.promo-applied .icon { width: 18px; height: 18px; grid-row: 1 / 3; }
.promo-applied strong { font-size: 13px; letter-spacing: .4px; overflow-wrap: anywhere; }
.promo-applied small { grid-column: 2; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.promo-applied button { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 8px; border-radius: 7px; color: #416047; font-size: 11px; font-weight: 650; }
.promo-applied button:hover { background: #dfead8; }

.checkout-breakdown { display: grid; gap: 10px; margin: 23px 0 0; font-size: 12px; }
.checkout-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-width: 0; }
.checkout-breakdown dt { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.checkout-breakdown dd { flex-shrink: 0; margin: 0; text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout-breakdown .discount-line dt, .checkout-breakdown .discount-line dd { color: #3f734a; }
.checkout-breakdown .discount-line dt span { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 700; letter-spacing: .3px; }
.checkout-breakdown + .checkout-total { margin-top: 15px; padding-top: 16px; }
.success-content > .success-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #d9e5d1;
  border-radius: 10px;
  background: #f0f6eb;
  color: #3f734a;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.success-promo .icon { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .checkout-promo { padding: 14px; margin: 21px 0; }
  .promo-heading { gap: 6px; }
  .promo-heading label { font-size: 12px; }
  .promo-heading > span { font-size: 10px; }
  .promo-entry { gap: 7px; }
  .promo-entry input { padding-left: 10px; padding-right: 10px; }
  .promo-entry input::placeholder { font-size: 12px; }
  .promo-entry .button { min-width: 78px; padding-left: 10px; padding-right: 10px; }
  .checkout-breakdown { gap: 9px; font-size: 12px; }
}
@media (max-width: 374px) {
  .checkout-promo { padding: 12px; }
  .promo-heading { column-gap: 5px; }
  .promo-heading label { font-size: 11px; }
  .promo-heading > .icon { width: 15px; height: 15px; }
  .promo-heading > span { font-size: 9px; }
  .promo-entry .button { min-width: 72px; font-size: 11px; }
  .promo-entry input::placeholder { font-size: 11px; }
  .promo-applied { gap: 5px; padding-left: 9px; }
  .promo-applied > span { column-gap: 6px; }
  .checkout-breakdown > div { gap: 10px; }
}
