/* Customer-only compact preview. The approved admin design uses voucher-ui.css unchanged. */
[data-voucher-preview="customer"] .v-preview-main { padding-block: 20px 36px; max-width: 900px; }
[data-voucher-preview="customer"] .v-view-switch { margin-bottom: 22px; }
[data-voucher-preview="customer"] .v-page-heading { margin-bottom: 18px; }
[data-voucher-preview="customer"] .v-page-heading h1 { font-size: clamp(23px, 3vw, 29px); margin: 0 0 8px; }
[data-voucher-preview="customer"] .v-page-heading p { font-size: 13px; margin-bottom: 0; }
[data-voucher-preview="customer"] .v-section-title { margin: 20px 0 12px; }
[data-voucher-preview="customer"] .v-section-title h2 { font-size: 17px; margin: 0; }
.v-customer-promo, .v-customer-gift { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fffbe7; color: var(--secondary); text-align: left; }
.v-customer-promo > span:nth-child(2), .v-customer-gift > span:nth-child(2) { flex: 1; min-width: 0; }
.v-customer-promo strong, .v-customer-gift strong { display: block; font-size: 14px; }
.v-customer-promo small, .v-customer-gift small { display: block; color: var(--muted); margin-top: 2px; }
.v-customer-promo .v-icon-box, .v-customer-gift .v-icon-box { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
.v-customer-promo__action { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; }
.v-customer-gift { background: white; margin-top: 14px; padding: 12px 16px; }
[data-voucher-preview="customer"] .v-offer-grid { gap: 12px; }
[data-voucher-preview="customer"] .v-ticket { display: block; border-radius: 10px; border-left: 3px solid #ddc98e; }
[data-voucher-preview="customer"] .v-ticket--product { border-left-color: #e8a6b6; }
[data-voucher-preview="customer"] .v-ticket__body { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-width: 0; }
.v-ticket-info { flex: 1; min-width: 0; padding: 0; background: transparent; color: var(--secondary); text-align: left; }
.v-ticket-info__title { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 13px; font-weight: 800; line-height: 1.35; }
[data-voucher-preview="customer"] .v-ticket-info__title .site-icon { width: 12px; height: 12px; color: var(--muted); }
.v-ticket-info__condition { display: block; font-size: 11px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.v-mini-ticket__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; }
[data-voucher-preview="customer"] .v-ticket__code { font-size: 11px; line-height: 1.35; letter-spacing: 0; }
[data-voucher-preview="customer"] .v-expiry { font-size: 11px; line-height: 1.35; }
[data-voucher-preview="customer"] .v-expiry .site-icon { width: 12px; height: 12px; }
.v-ticket-info__state { font-size: 11px; color: var(--muted); }
.v-mini-ticket__actions { flex: 0 0 auto; margin: 0; }
[data-voucher-preview="customer"] .v-mini-ticket__actions > .button,
[data-voucher-preview="customer"] .v-mini-ticket__actions > .v-text-button { min-width: 48px; min-height: 44px; padding: 4px 8px; font-size: 11px; border-radius: 8px; box-shadow: none; justify-content: center; }
[data-voucher-preview="customer"] .v-mini-ticket__actions > .button--primary { background: #fff4f6; color: #a62744; border: 1px solid #f0c7d1; }
[data-voucher-preview="customer"] .v-mini-ticket__actions > .button--dark { background: #fff8e9; color: var(--secondary); border: 1px solid #ddc98e; }
[data-voucher-preview="customer"] .v-mini-ticket__actions .site-icon { display: none; }
.v-voucher-terms h3 { font-size: 16px; margin: 0 0 5px; }
.v-voucher-terms > p { font-size: 13px; margin: 12px 0; }
/* Popup stays centered with space around it on both phone and desktop. */
[data-voucher-preview="customer"] .v-dialog { width: min(360px, calc(100% - 40px)); max-width: calc(100% - 40px); max-height: min(440px, 62dvh); margin: auto; border: 1px solid var(--border); border-radius: 18px; }
[data-voucher-preview="customer"] .v-dialog__head { padding: 6px 10px; gap: 6px; }
[data-voucher-preview="customer"] .v-dialog__head h2 { font-size: 16px; }
[data-voucher-preview="customer"] .v-dialog__head p { font-size: 11px; line-height: 1.4; }
[data-voucher-preview="customer"] .v-dialog__head .v-icon-box { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
[data-voucher-preview="customer"] .v-dialog__head .v-icon-box .site-icon { width: 19px; height: 19px; }
[data-voucher-preview="customer"] .v-close { width: 44px; height: 44px; background: transparent; }
[data-voucher-preview="customer"] .v-dialog__body { padding: 8px 10px 10px; }
[data-voucher-preview="customer"] .v-wallet-tabs { margin-bottom: 8px; padding: 2px; border-radius: 10px; }
[data-voucher-preview="customer"] .v-wallet-tabs button { font-size: 12px; }
[data-voucher-preview="customer"] .v-code-form { gap: 4px 6px; margin-bottom: 8px; }
[data-voucher-preview="customer"] .v-code-form label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-voucher-preview="customer"] .v-code-form input { padding: 6px 8px; border-radius: 9px; }
[data-voucher-preview="customer"] .v-code-form button { padding: 6px 10px; font-size: 11px; border-radius: 9px; box-shadow: none; }
[data-voucher-preview="customer"] .v-wallet-list { gap: 6px; }
[data-voucher-preview="customer"] .v-wallet-help { font-size: 11px; line-height: 1.45; padding-top: 10px; margin-bottom: 4px; }
[data-voucher-preview="customer"] [data-wallet-empty-demo] { font-size: 11px; }
[data-voucher-preview="customer"] .v-gift-body { padding: 0; }
[data-voucher-preview="customer"] .v-gift-orbit { width: 52px; height: 52px; margin: 2px auto 12px; }
[data-voucher-preview="customer"] .v-gift-orbit .site-icon { width: 28px; height: 28px; }
[data-voucher-preview="customer"] .v-gift-body h3 { font-size: 19px; margin: 0 0 8px; }
[data-voucher-preview="customer"] .v-gift-body > p { font-size: 12px; margin-bottom: 12px; }
.v-gift-benefit { background: #fff8e7; border: 1px dashed #dac5a1; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.v-gift-benefit strong { display: block; color: var(--accent); font-size: 18px; }
.v-gift-benefit span { display: block; font-size: 12px; color: var(--secondary); margin-top: 3px; }
.v-gift-benefit small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
[data-voucher-preview="customer"] .v-gift-body .button { font-size: 13px; padding: 10px 14px; box-shadow: none; }
[data-voucher-preview="customer"] .v-gift-body .v-fineprint { font-size: 11px; margin: 10px 0 0; }
[data-voucher-preview="customer"] .v-checkout-voucher { padding: 10px 12px; gap: 10px; margin: 18px 0 10px; }
[data-voucher-preview="customer"] .v-checkout-voucher .v-icon-box { width: 32px; height: 32px; flex-basis: 32px; }
[data-voucher-preview="customer"] .v-checkout-voucher strong { font-size: 14px; }
[data-voucher-preview="customer"] .v-checkout-voucher small { font-size: 11px; }
[data-voucher-preview="customer"] .v-applied { padding: 10px; margin-bottom: 18px; }
@media (max-width: 640px) {
  [data-voucher-preview="customer"] .v-dialog__body { padding-bottom: 14px; }
  [data-voucher-preview="customer"] .v-wallet-list .v-ticket__body { padding: 7px 8px; }
  [data-voucher-preview="customer"] .v-dialog__head > .v-icon-box { display: none; }
}
/* Production integration keeps the approved compact ticket dimensions. */
/* Live voucher wallet: small ticket accents, with eligibility beside each card. */
#real-wallet .v-dialog__head { position: relative; background: linear-gradient(120deg, #fff8de, #fffdf6 70%, #fceef2); padding: 10px 12px; }
#real-wallet .v-dialog__head::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 65px; height: 3px; background: var(--accent); border-radius: 0 4px 4px 0; }
#real-wallet .v-dialog__body { background: #fffdfa; }
.v-wallet-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 9px; font-size: 11px; color: var(--muted); }
.v-wallet-caption strong { padding: 3px 9px; border-radius: 999px; background: #f9edf1; color: #a62744; }
[data-voucher-preview="customer"] .v-ticket { overflow: hidden; background: linear-gradient(110deg, #fff7f9, #fff 50%); border-color: #e8d7db; box-shadow: 0 2px 6px rgb(80 40 20 / 3%); }
[data-voucher-preview="customer"] .v-ticket--shipping { background: linear-gradient(110deg, #fff9e4, #fff 50%); border-color: #e8dfc6; }
.v-ticket-seal { display: grid; place-items: center; width: 25px; height: 30px; flex: 0 0 25px; color: #a62744; border-right: 1px dashed #e6bdc8; padding-right: 6px; }
.v-ticket-seal .site-icon { width: 17px; height: 17px; }
.v-ticket--shipping .v-ticket-seal { color: #81591d; border-right-color: #dfca92; }
.v-ticket-limit { display: block; color: #7e3b26; font-size: 11px; line-height: 1.4; margin-top: 2px; }
[data-voucher-preview="customer"] .v-expiry { border-radius: 5px; padding: 2px 4px; background: #fbeef2; color: #a62744; }
[data-voucher-preview="customer"] .v-mini-ticket__meta { flex-wrap: nowrap; gap: 6px; }
[data-voucher-preview="customer"] .v-mini-ticket__meta .v-ticket__code { min-width: 0; flex: 1; }
[data-voucher-preview="customer"] .v-mini-ticket__meta .v-expiry { flex: 0 0 auto; }
[data-voucher-preview="customer"] .v-ticket--chosen { border-color: #9ecbab; border-left-color: #2a7142; background: linear-gradient(110deg, #edf8f0, #fff 60%); }
[data-voucher-preview="customer"] .v-mini-ticket__actions button:disabled { opacity: 1; color: #6d625d; background: #f4f1ee; border-color: #ddd5cf; cursor: default; max-width: 63px; }
.v-ticket-note { border-top: 1px dashed #e9dad3; font-size: 11px; line-height: 1.5; color: #87422d; margin: 0; padding: 5px 9px; background: #fff9f0; }
.v-ticket-note--applied { background: #eef8f0; color: #23683f; }
[data-voucher-status]:not([hidden]) { padding: 8px 10px; margin: 0 0 9px; border-radius: 9px; background: #fff0f3; border: 1px solid #efd1d9; }
.v-voucher-match { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #c6dfcc; background: linear-gradient(110deg, #edf8ef, #fffbdf); color: #245e36; border-radius: 12px; width: 100%; text-align: left; min-height: 44px; margin: 0 0 10px; }
.v-voucher-match > span { min-width: 0; flex: 1; }
.v-voucher-match strong, .v-voucher-match small { display: block; }
.v-voucher-match strong { font-size: 13px; }
.v-voucher-match small { color: #42634b; font-size: 12px; line-height: 1.5; }
.v-checkout-voucher-notice { background: #fff5e7; border: 1px solid #ebd8b8; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #784320; margin-bottom: 12px; }
.v-history-page { max-width: 860px; padding-block: 30px 60px; }
.v-history-page h1 { font-size: clamp(25px, 4vw, 36px); }
.v-history-intro { max-width: 600px; font-size: 14px; }
.v-history-page section { margin-top: 25px; }
.v-history-page h2 { font-size: 19px; }
.v-history-toolbar { display: flex; justify-content: flex-end; }
.v-history-orders { display: grid; gap: 12px; }
.v-history-order { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.v-history-order strong, .v-history-order small { display: block; overflow-wrap: anywhere; }
.v-history-order small { font-size: 12px; color: var(--muted); }
.v-history-order p { font-size: 13px; margin: 10px 0; }
[data-history-status] { padding: 12px; border-radius: 10px; background: #fff0f3; font-size: 13px; color: #8a243c; }
.v-real-promos { padding-block: 22px; }
.v-real-promos h2 { font-size: 20px; margin-bottom: 12px; }
.v-ticket-info__condition { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-ticket__code { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-ticket-info { min-height: 44px; }
[data-real-orders] button { font-size: 12px; margin-top: 8px; }
[data-voucher-status] { font-size: 12px; margin: 8px 0 0; color: #8a243c; }
.v-real-countdown { border: 1px solid #dfc98d; background: #fffbe7; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
@media (max-width: 700px) { .site-nav .v-wallet-button { width: 100%; justify-content: center; } }
@media (max-width: 360px) { [data-real-dialog] .v-ticket-seal { display: none; } }
[data-real-dialog] button, [data-real-dialog] input { min-height: 44px; }
[data-real-dialog] input { font-size: 16px; min-width: 0; }
[data-real-dialog] .v-close { display: grid; place-items: center; }
.v-real-wallet-bar { padding-block: 12px; }
.v-real-wallet-bar .v-customer-promo { max-width: 540px; margin-inline: auto; }
[data-real-dialog] h2:focus { outline: none; }
.nav-actions .v-wallet-button { grid-column: 1 / -1; justify-content: center; min-height: 44px; }
@media (min-width: 992px) { .nav-actions .v-wallet-button { width: auto; } }
/* Closed mobile navigation must be hidden as well as inert across browser engines. */
@media (max-width: 991px) { .nav-menu[inert] { visibility: hidden; } }

.v-gift-offer { min-width: 0; display: grid; gap: 6px; overflow-wrap: anywhere; }
.v-gift-offer h3 { margin: 0; font-size: 15px; }.v-gift-offer > p { margin: 0; font-size: 12px; color: var(--muted); }.v-gift-offer > small { font-size: 11px; color: var(--muted); }
.v-customer-gift > span, .v-gift-body { overflow-wrap: anywhere; }
