/* First advance is the application moment, never the discount base. */
.custom-discount31.card{margin-block:1.5rem;position:relative;padding:1.1rem 1.25rem;border:1px solid var(--hl-border,#cbd5e1);border-top:4px solid var(--hl-brand,#0087cc);border-radius:1rem;background:var(--hl-surface,#fff);color:var(--hl-text,#162d42)}
.custom-discount31-panel{padding:0;border:0;background:transparent}
.custom-discount31-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;cursor:pointer;list-style:none;font-weight:800;font-size:1.1rem;padding:.35rem 0;color:inherit}
.custom-discount31-panel>summary::-webkit-details-marker{display:none}
.custom-discount31-panel>summary:focus-visible{outline:3px solid var(--hl-brand,#0087cc);outline-offset:5px;border-radius:.35rem}
.custom-discount31-toggle{display:grid;place-items:center;min-width:2rem;height:2rem;background:var(--hl-soft,#e8f4fc);border:1px solid var(--hl-border,#b4d7ec);border-radius:50%;font-size:1.3rem;line-height:1;transition:transform .15s ease}
.custom-discount31-panel[open] .custom-discount31-toggle{transform:rotate(180deg)}
.custom-discount31-content{padding-top:1rem;margin-top:.75rem;border-top:1px solid var(--hl-border,#cbd5e1)}
.custom-discount31-bases{padding-left:1.25rem;line-height:1.55}
.custom-discount31-bases li+li{margin-top:.45rem}
.custom-discount31-applied{display:grid;gap:.3rem;padding:.85rem 1rem;margin-top:.8rem;border-left:4px solid var(--hl-brand,#0087cc);border-radius:.5rem;background:var(--hl-soft,#e8f4fc);overflow-wrap:anywhere}
.custom-discount31-content .button{margin-top:.65rem;margin-right:.4rem}
.custom-discount31-content .booking-summary{margin-top:1.25rem}
@media(max-width:480px){.custom-discount31.card{padding:1rem}.custom-discount31-content .button{width:100%;margin-right:0}.custom-discount31-content .booking-summary div{gap:.5rem}}
@media(prefers-reduced-motion:reduce){.custom-discount31-toggle{transition:none}}
/* Separate employee and general choices share surfaces, never share a percentage input. */
.custom-discount31 .form-grid>label{min-width:0}
.custom-discount31 input[type=number]{width:min(100%,14rem)}
.custom-discount31-applied .booking-summary{margin:0;padding:0}
/* Keep the saved discount history inside its card on narrow screens. */
.table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.table-wrap table{min-width:680px;table-layout:fixed}
.table-wrap td{overflow-wrap:anywhere}
