.voucher-heading,.voucher-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.voucher-actions{justify-content:flex-start}.voucher-history-row{padding:20px 0;border-top:1px solid #dae1da;overflow-wrap:anywhere}.voucher-history-row p{margin:8px 0}.voucher-history-row small{display:block;margin-bottom:12px}
/* Voucher editor */
.voucher-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: calc(100% - 24px);
    max-width: 600px;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #d0dacf;
    border-radius: 16px;
    background: #fffdf8;
    color: #183d2d;
}
.voucher-dialog::backdrop { background: #152c2680; }
#voucherDialog .voucher-heading { flex-wrap: nowrap; gap: 12px; }
#voucherDialog h2 { margin: 0; font-size: 23px; line-height: 1.2; }
#voucherForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 14px; }
#voucherForm label { display: grid; align-content: start; gap: 5px; min-width: 0; margin: 0; font: 500 13px/1.4 'Inter', Arial, sans-serif; }
#voucherForm input:not([type="hidden"]),
#voucherForm select { box-sizing: border-box; width: 100%; min-width: 0; height: 42px; min-height: 42px; margin: 0; padding: 8px 10px; border: 1px solid #bbcfc2; border-radius: 6px; background: #fff; color: #183d2d; font: 400 14px/1.4 'Inter', Arial, sans-serif; }
#voucherForm input:focus-visible,
#voucherForm select:focus-visible { outline: 2px solid #387f5f; outline-offset: 2px; }
#voucherForm p { grid-column: 1 / -1; margin: 2px 0; font: 400 12px/1.5 'Inter', Arial, sans-serif; color: #59665c; }
#voucherForm button[type="submit"] { grid-column: 1 / -1; width: 100%; min-height: 42px; margin: 0; padding: 10px 16px; font-size: 14px; }
@media (max-width: 420px) {
    .voucher-dialog { padding: 14px; }
    #voucherDialog h2 { font-size: 20px; }
    #voucherForm { gap: 10px; margin-top: 10px; }
    #voucherForm label { font-size: 12px; }
}
.voucher-entry{margin:20px 0;padding:18px 0;border-top:1px solid #d7ddd8}.voucher-entry label{font-weight:700}.voucher-code-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.voucher-code-controls input{flex:1;min-width:120px;width:160px;max-width:100%;box-sizing:border-box;padding:12px;border:1px solid #bdcec2;border-radius:5px;font:inherit}.voucher-code-controls button {
    background: #7c8c73;
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
    .voucher-code-controls button:hover:not(:disabled) {
        background: #8c9c83;
    }
}
.voucher-code-controls button:active:not(:disabled) {
    background: #718167;
}
.voucher-code-controls button:focus-visible {
    outline: 3px solid #397da9;
    outline-offset: 3px;
}
.voucher-entry p{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.voucher-entry button:disabled{opacity:.6}
.voucher-discount-price{display:inline-flex;justify-content:flex-end;align-items:baseline;flex-wrap:wrap;gap:8px}.voucher-discount-price del{color:#8d8373}.voucher-discount-price strong{color:#0f6b43;font-weight:900}

/* Readable voucher history */
body.admin-shell-page #voucherSection .voucher-history-row { margin:14px 0; padding:20px; border:1px solid var(--admin-line,#dce0d3); border-radius:14px; background:var(--admin-cream,#fffdf8); }
#voucherSection .voucher-history-heading { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
#voucherSection .voucher-history-code { font:700 18px/1.4 Inter,Arial,sans-serif; letter-spacing:.04em; overflow-wrap:anywhere; }
#voucherSection .voucher-state { padding:4px 10px; border-radius:20px; background:#e9e8e1; color:#575b50; font-size:12px; font-weight:600; }
#voucherSection .voucher-state.is-active { background:#e3ebda; color:#43583a; }
#voucherSection .voucher-history-title { font:500 15px/1.5 Inter,Arial,sans-serif; margin:8px 0; }
#voucherSection .voucher-history-offer { font-weight:700; margin:6px 0 16px; }
#voucherSection .voucher-history-offer span { font-weight:400; }
#voucherSection .voucher-history-meta { display:grid; grid-template-columns:2fr 1fr 1fr; gap:16px; margin:0 0 18px; }
#voucherSection .voucher-history-meta div { min-width:0; }
#voucherSection .voucher-history-meta dt { font-size:12px; color:var(--admin-muted,#67705f); margin-bottom:5px; }
#voucherSection .voucher-history-meta dd { margin:0; font-size:14px; line-height:1.5; color:var(--admin-ink,#30382b); }
#voucherSection .voucher-history-meta small { font-size:12px; color:var(--admin-muted,#67705f); margin:2px 0 0; }
#voucherSection .voucher-actions { padding-top:14px; border-top:1px solid var(--admin-line,#dce0d3); gap:8px; }
#voucherSection .voucher-actions form { margin:0; }
#voucherSection .voucher-actions .modal-btn { margin:0; min-height:42px; }
html[data-owner-theme='night'] #voucherSection .voucher-state { background:#41483a; color:#e8ecdf; }
html[data-owner-theme='night'] #voucherSection .voucher-state.is-active { background:#465b35; color:#e5f0d6; }
@media(max-width:650px) { #voucherSection .voucher-history-meta { grid-template-columns:1fr 1fr; gap:14px; } #voucherSection .voucher-history-meta>div:first-child { grid-column:1/-1; } body.admin-shell-page #voucherSection .voucher-history-row { padding:16px; } }
html[data-owner-theme='night'] body.admin-shell-page #voucherSection .compact-pagination { background:#272d22 !important; color:#f1eedf; border-color:#626957; }
html[data-owner-theme='night'] body.admin-shell-page #voucherSection .compact-pagination :is(a,button) { background:#35402e !important; color:#f1eedf !important; border-color:#849574; }
html[data-owner-theme='night'] body.admin-shell-page #voucherSection .compact-pagination button:disabled { color:#a7ad9d !important; }
