@layer blocks {
    .voucher-status {
        max-width: 40rem;
    }

    .voucher-status-facts {
        display: grid;
        gap: var(--t-space-2);
        margin: 0 0 var(--t-space-6);
    }

    .voucher-status-facts dt {
        color: var(--tone-muted);
        font-family: var(--font-ui);
        font-size: var(--t-font-size-small);
    }

    .voucher-status-facts dd {
        margin: 0;
        overflow-wrap: anywhere;
    }

    .voucher-status-state {
        font-weight: var(--t-font-weight-semibold);
    }

    .voucher-status-value,
    .voucher-status-balance {
        font-variant-numeric: tabular-nums;
    }

    .voucher-status-balance {
        font-weight: var(--t-font-weight-semibold);
    }

    .voucher-status-sign-in {
        margin: 0 0 var(--t-space-6);
        font-family: var(--font-ui);
    }

    .voucher-staff {
        display: grid;
        gap: var(--t-space-3);
        min-width: 0;
        margin: 0 0 var(--t-space-6);
    }

    .voucher-redeem-form {
        display: grid;
        gap: var(--t-space-4);
        min-width: 0;
    }

    .voucher-status-message {
        margin: 0 0 var(--t-space-6);
        font-weight: var(--t-font-weight-semibold);
    }

    .voucher-offer {
        display: grid;
        align-content: start;
        gap: var(--t-space-2);
    }

    .voucher-offer-name {
        margin: 0;
        overflow-wrap: anywhere;
    }

    .voucher-offer-description,
    .voucher-purchase-description {
        margin: 0;
        white-space: pre-line;
    }

    .voucher-offer-values {
        margin: 0;
        font-family: var(--font-ui);
        font-weight: var(--t-font-weight-semibold);
    }

    .voucher-offer-validity,
    .voucher-purchase-validity {
        margin: 0;
        color: var(--tone-muted);
        font-size: var(--t-font-size-small);
    }

    .voucher-purchase {
        display: grid;
        gap: var(--t-space-6);
        max-width: 40rem;
        container-type: inline-size;
    }

    .voucher-purchase-offer {
        display: grid;
        gap: var(--t-space-2);
    }

    .voucher-purchase-form,
    .voucher-purchase-values,
    .voucher-purchase-custom,
    .voucher-purchase-message {
        display: grid;
        gap: var(--t-space-4);
        min-width: 0;
    }

    .voucher-purchase-values legend {
        margin-bottom: var(--t-space-2);
        padding: 0;
        font-family: var(--font-ui);
        font-weight: var(--t-font-weight-semibold);
    }

    .voucher-purchase-values > div {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: var(--t-space-2) var(--t-space-3);
    }

    .voucher-purchase-values input {
        width: 1.5rem;
        height: 1.5rem;
        margin: 0;
    }

    .voucher-account-list {
        display: grid;
        gap: var(--t-space-4);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .voucher-account-item,
    .voucher-account-detail {
        display: grid;
        gap: var(--t-space-3);
        min-width: 0;
    }

    .voucher-account-title {
        font-weight: var(--t-font-weight-semibold);
        overflow-wrap: anywhere;
    }

    .voucher-account-facts {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
        gap: var(--t-space-2) var(--t-space-4);
        margin: 0;
    }

    .voucher-account-facts dt {
        color: var(--tone-muted);
        font-family: var(--font-ui);
        font-size: var(--t-font-size-small);
    }

    .voucher-account-facts dd {
        margin: 0;
    }

    .voucher-movements {
        width: 100%;
        border-collapse: collapse;
    }

    .voucher-movements caption {
        margin-bottom: var(--t-space-2);
        font-family: var(--font-ui);
        font-weight: var(--t-font-weight-semibold);
        text-align: start;
    }

    .voucher-movements th,
    .voucher-movements td {
        padding: var(--t-space-2);
        border-bottom: 1px solid var(--tone-border);
        text-align: start;
        overflow-wrap: anywhere;
    }

    .voucher-movements .voucher-movements-amount {
        text-align: end;
        white-space: nowrap;
    }

    @container (max-width: 24rem) {
        .voucher-purchase .block-actions .button {
            width: 100%;
        }
    }
}
