/* Hasnuri Wellness — checkout vouchers
   Scope: .wb-checkout .wc-vouchers (order summary)
   Mobile-first, no animation. Display rules are guarded with
   :not([hidden]) so the [hidden] attribute always wins. */

.wb-checkout .wc-vouchers {
  --wcv-wine: #652232;
  --wcv-wine-dark: #4a1824;
  --wcv-wine-tint: #f6eeee;
  --wcv-paper: #fbf8f4;
  --wcv-line: #e6dcd6;
  --wcv-ink: #2b1d20;
  --wcv-muted: #6b5a5e;

  margin: 1rem 0;
  padding: 0.875rem;
  background: var(--wcv-paper);
  border: 1px solid var(--wcv-line);
  border-radius: 10px;
  color: var(--wcv-ink);
}

.wb-checkout .wc-vouchers h3 {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--wcv-wine);
}

/* Row */
.wb-checkout .wc-vouchers .wc-voucher:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.wb-checkout .wc-vouchers .wc-voucher {
  padding: 0.75rem 0;
  border-top: 1px dashed var(--wcv-line);
}

.wb-checkout .wc-vouchers .wc-voucher:first-of-type {
  border-top: 0;
  padding-top: 0.25rem;
}

/* Text block */
.wb-checkout .wc-vouchers .wc-voucher > div {
  flex: 1 1 12rem;
  min-width: 0;
}

.wb-checkout .wc-vouchers .wc-voucher strong:not([hidden]) {
  display: block;
}

.wb-checkout .wc-vouchers .wc-voucher strong {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wcv-ink);
  overflow-wrap: anywhere;
}

.wb-checkout .wc-vouchers .wc-voucher small:not([hidden]) {
  display: block;
}

.wb-checkout .wc-vouchers .wc-voucher small {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--wcv-muted);
  overflow-wrap: anywhere;
}

/* Button — 44px tap target */
.wb-checkout .wc-vouchers .wc-voucher button[type="button"] {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem 1.125rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: normal;
  color: var(--wcv-wine);
  background: #fff;
  border: 1.5px solid var(--wcv-wine);
  border-radius: 999px;
  cursor: pointer;
}

.wb-checkout .wc-vouchers .wc-voucher button[type="button"]:hover:not(:disabled) {
  color: #fff;
  background: var(--wcv-wine);
}

.wb-checkout .wc-vouchers .wc-voucher button[type="button"]:active:not(:disabled) {
  background: var(--wcv-wine-dark);
  border-color: var(--wcv-wine-dark);
  color: #fff;
}

.wb-checkout .wc-vouchers .wc-voucher button[type="button"][aria-pressed="true"] {
  color: #fff;
  background: var(--wcv-wine);
}

/* Focus */
.wb-checkout .wc-vouchers .wc-voucher button[type="button"]:focus-visible {
  outline: 3px solid var(--wcv-wine);
  outline-offset: 3px;
}

/* Disabled — clearly visible, not just faded */
.wb-checkout .wc-vouchers .wc-voucher button[type="button"]:disabled,
.wb-checkout .wc-vouchers .wc-voucher button[type="button"][aria-disabled="true"] {
  color: #8a7c7f;
  background: #efe9e6;
  border: 1.5px dashed #b9aaa6;
  cursor: not-allowed;
}

/* Wider screens: keep button aligned right, slightly roomier */
@media (min-width: 40em) {
  .wb-checkout .wc-vouchers {
    padding: 1rem 1.125rem;
  }

  .wb-checkout .wc-vouchers .wc-voucher > div {
    flex-basis: 16rem;
  }
}

@media (forced-colors: active) {
  .wb-checkout .wc-vouchers .wc-voucher button[type="button"]:focus-visible {
    outline-color: Highlight;
  }

  .wb-checkout .wc-vouchers .wc-voucher button[type="button"]:disabled {
    color: GrayText;
    border-color: GrayText;
  }
}

.wb-checkout #wc-claim-status:empty { display:none; }
.wb-checkout #wc-claim-status { margin:.5rem 0 0; font-size:.85rem; line-height:1.45; color:#51443e; }
