/* Auramani vouchers (plugin auramani-vouchers), on the theme's tokens: the homepage strip of tickets
   under the hero (about 130px tall in all, a ticket 88px), the product page line and its dialog, and the bag line. */

.au-vouchers{padding:var(--space-5,20px) 0;border-top:1px solid var(--border,#ded3c8);border-bottom:1px solid var(--border,#ded3c8)}
.au-vouchers[hidden]{display:none}
.au-vouchers-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--space-1,4px) var(--space-4,16px);margin-bottom:var(--space-3,12px)}
.au-vouchers-head h2{margin:0;font-size:var(--text-lg,18px);line-height:1.3;color:var(--ink,#221e1a)}
.au-vouchers-head p{margin:0;font-size:var(--text-sm,13px);color:var(--muted,#75685f)}
.au-vouchers-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;padding-block:7px;margin-block:-7px} /* room for the notches */
.au-vouchers-track::-webkit-scrollbar{display:none}

/* A ticket: the offer on the left, a brown stub with the clock and Claim. */
.au-voucher{position:relative;flex:0 0 calc((100% - 24px) / 3);display:flex;min-width:0;height:88px;scroll-snap-align:start}
.au-voucher::before,.au-voucher::after{content:"";position:absolute;right:104px;width:12px;height:12px;margin-right:-6px;border-radius:50%;background:var(--bg,#f7f3ee);z-index:1}
.au-voucher::before{top:-6px}
.au-voucher::after{bottom:-6px}
/* Four lines at most (name, value, condition, what is left) in 88px: each line height is set, not inherited. */
.au-voucher-main{flex:1;min-width:0;display:grid;align-content:center;gap:2px;padding:6px 14px;background:var(--blush,#f6ece5);border:1px solid #ead9cd;border-right:0;border-radius:12px 0 0 12px}
.au-voucher-title{margin:0;line-height:1.2;font-size:var(--text-2xs,11px);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--primary,#985340);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.au-voucher-value{margin:0;line-height:1;color:var(--primary-hover,#7d4233);white-space:nowrap}
.au-voucher-value strong{font-size:24px;font-weight:700;letter-spacing:-.3px}
.au-voucher-value span{font-size:var(--text-sm,13px);font-weight:700}
.au-voucher-cond{margin:0;line-height:1.25;font-size:var(--text-sm,13px);color:var(--text,#4a4440);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.au-voucher-left{display:flex;align-items:center;gap:8px;margin:0;line-height:1.2;font-size:var(--text-2xs,11px);color:var(--muted,#75685f);white-space:nowrap}
.au-voucher-bar{flex:1;min-width:24px;height:3px;border-radius:2px;background:#e5d5c8;overflow:hidden}
.au-voucher-bar i{display:block;height:100%;background:var(--primary,#985340)}
.au-voucher-stub{flex:none;width:104px;display:grid;justify-items:center;align-content:center;gap:3px;padding:6px;background:var(--primary,#985340);color:#fff;border-left:1.5px dashed rgb(255 255 255 / 60%);border-radius:0 12px 12px 0}
.au-voucher-ends{font-size:var(--text-2xs,11px);opacity:.9}
.au-voucher-clock{font-size:16px;line-height:1.1;font-weight:700;font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap}
.au-voucher-claim{min-height:26px;padding:3px 14px;border:1px solid #fff;border-radius:999px;background:transparent;color:#fff;font:inherit;font-size:var(--text-xs,12px);font-weight:600;cursor:pointer}
.au-voucher-claim:hover{background:#fff;color:var(--primary-hover,#7d4233)}
.au-voucher-claim.is-claimed{background:#fff;color:var(--primary-hover,#7d4233)}
.au-voucher-claim[aria-busy="true"]{opacity:.6}
.au-voucher.is-ended .au-voucher-main{background:#f4f1ee;border-color:var(--border,#ded3c8)}
.au-voucher.is-ended .au-voucher-value,.au-voucher.is-ended .au-voucher-cond{color:var(--muted,#75685f)}
.au-voucher.is-ended .au-voucher-stub{background:var(--control,#938174)}

/* What every order gets: no clock, no number, nothing to press. A light stub tells it from a voucher. */
a.au-voucher{color:inherit;text-decoration:none}
.au-voucher.is-auto .au-voucher-cond{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.au-voucher.is-auto .au-voucher-stub{background:var(--surface,#fff);color:var(--primary-hover,#7d4233);border:1px solid #ead9cd;border-left:1.5px dashed #d9b8a8}
.au-voucher-auto{font-size:var(--text-xs,12px);font-weight:600;line-height:1.3;text-align:center}
a.au-voucher.is-auto:hover .au-voucher-main{border-color:var(--primary,#985340)}

/* Product page: one line under the price, opening every ticket in the dialog. */
.au-vline{display:flex;align-items:center;gap:12px;width:100%;margin:var(--space-3,12px) 0;padding:10px 14px;border:1px dashed var(--primary,#985340);border-radius:12px;background:var(--blush,#f6ece5);color:var(--text,#4a4440);font:inherit;font-size:var(--text-sm,13px);text-align:left;cursor:pointer}
.au-vline[hidden]{display:none}
.au-vline-text{flex:1;min-width:0;display:grid;gap:2px}
.au-vline-text strong{color:var(--ink,#221e1a);font-weight:600}
.au-vline-ends{font-size:var(--text-xs,12px);color:var(--muted,#75685f);font-variant-numeric:tabular-nums}
.au-vline-see{flex:none;font-size:var(--text-xs,12px);font-weight:600;color:var(--primary-hover,#7d4233);text-decoration:underline;text-underline-offset:3px}
.au-vline:hover{border-style:solid}
.au-vouchers-intro{margin:0 0 var(--space-4,16px);font-size:var(--text-sm,13px);color:var(--muted,#75685f)}
.au-vouchers-list{display:grid;gap:12px;padding-block:7px} /* room for the notches */

/* Tablets: two at a time. Phones: one and the edge of the next, sliding (vouchers.js). */
@media(max-width:991px){.au-voucher{flex-basis:calc((100% - 12px) / 2)}}
@media(max-width:600px){
.au-vouchers-head p{display:none}
.au-voucher{flex-basis:86%}
}

/* The bag line (drawer and bag page). */
.au-vbag{display:grid;gap:6px;margin:var(--space-3,12px) 0;padding:10px 12px;border:1px dashed var(--primary,#985340);border-radius:12px;background:var(--blush,#f6ece5);font-size:var(--text-sm,13px);color:var(--text,#4a4440)}
.au-vbag.is-on{border-style:solid;border-color:#ead9cd}
.au-vbag-line{margin:0;line-height:1.4}
.au-vbag-line strong{color:var(--ink,#221e1a);font-weight:600}
.au-vbag-bar{display:block;height:4px;border-radius:2px;background:#e5d5c8;overflow:hidden}
.au-vbag-bar i{display:block;height:100%;background:var(--primary,#985340)}
.au-vbag-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.au-vbag-meta{font-size:var(--text-xs,12px);color:var(--muted,#75685f);font-variant-numeric:tabular-nums}
.au-vbag-btn{min-height:32px;padding:5px 14px;border:1px solid var(--primary,#985340);border-radius:999px;background:var(--primary,#985340);color:#fff;font:inherit;font-size:var(--text-xs,12px);font-weight:600;cursor:pointer}
.au-vbag-btn:hover{background:var(--primary-hover,#7d4233)}
.au-vbag-btn[aria-busy="true"]{opacity:.6}
.au-vbag-done{font-size:var(--text-xs,12px);font-weight:600;color:var(--primary-hover,#7d4233)}
