/* Payment codes: the coupon field and the gift voucher field, each behind its own link, on the cart drawer, the cart page
   and the checkout (SHOP-RULES 9.3, 10.4). The links are details summaries without JavaScript and buttons with it.
   Hand-written, native nesting only. Links are 44px targets; all text >= 14px. */

@layer components {
  .payment-codes {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-block: var(--space-4);
    border-block: 1px solid var(--noria-ink);
  }

  .payment-codes__block {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .payment-codes__field[open] {
    padding-block-end: var(--space-1);
  }

  .payment-codes__link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: 0;
    cursor: pointer;
    list-style: none;

    &::-webkit-details-marker {
      display: none;
    }

    &:hover {
      color: var(--noria-gold-text);
    }
  }
}
