/* Classic VIP dimensions and colors follow the archived public VIP template.
   Every content selector is scoped so the modern theme and invoices stay intact. */
.classic-vip {
  --classic-green: #379285;
  --classic-ink: #2e4a7e;
  --classic-pink: #ab3d73;
  --classic-blue: #1656ab;
  width: min(100%, 480px);
  margin: 0 auto;
  background: var(--classic-green);
  color: var(--classic-ink);
  font: 15px/1.25 Arial, sans-serif;
  min-width: 0;
  isolation: isolate;
}
.classic-vip *, .classic-vip *::before, .classic-vip *::after { box-sizing: border-box; }
.classic-vip button, .classic-vip input, .classic-vip select { font-family: inherit; }
.classic-vip button { cursor: pointer; }
.classic-vip button:disabled { cursor: not-allowed; opacity: .5; }
.classic-vip button:focus-visible, .classic-vip input:focus-visible { outline: 3px solid #ffce56; outline-offset: 2px; }
/* renderHeader is shared by the VIP and Top Up surfaces. Keep its artwork,
   layout and accessible text scoped to both roots, including the narrow view. */
:is(.classic-vip, .classic-topup) .classic-header { background: #3b997c url('/images/classic/bg-top.jpg') center/100% 100% no-repeat; color: #fff; }
:is(.classic-vip, .classic-topup) .classic-header-title { display: flex; align-items: center; gap: 12px; min-height: 55px; padding: 8px 14px; }
:is(.classic-vip, .classic-topup) .classic-header-title h1 { flex: 1; min-width: 0; padding: 0; margin: 0; text-align: center; font-size: 21px; font-weight: 700; color: #fff; line-height: 1.3; letter-spacing: 0; }
:is(.classic-vip, .classic-topup) .classic-back-button, :is(.classic-vip, .classic-topup) .classic-topup-button { width: 73px; flex: 0 0 73px; }
:is(.classic-vip, .classic-topup) .classic-back-button { height: 31px; padding: 0; border: 0; background: url('/images/classic/ico_return.png') left center/34px 26px no-repeat; }
:is(.classic-vip, .classic-topup) .classic-topup-button { height: 31px; padding: 0; border: 0; background: url('/images/classic/btn_recharge.png') center/contain no-repeat; }
:is(.classic-vip, .classic-topup) .classic-account-line { display: flex; align-items: center; justify-content: space-between; gap: 7px; flex-wrap: wrap; min-height: 31px; padding: 6px 14px; background: #47a779; color: #104f40; font-size: 12px; }
:is(.classic-vip, .classic-topup) .classic-account-line strong { color: #fff38a; font-weight: 700; overflow-wrap: anywhere; }
:is(.classic-vip, .classic-topup) .classic-account-line small { display: block; font-size: 10px; text-align: right; }
:is(.classic-vip, .classic-topup) .classic-account-line small:empty { display: none; }
:is(.classic-vip, .classic-topup) .classic-announcement { height: 35px; padding: 8px 8px 9px; background: #fff; border-bottom: 1px solid #d9dbdf; }
:is(.classic-vip, .classic-topup) .classic-announcement img { display: block; width: 24px; height: 18px; object-fit: contain; }
/* The generic secondary hover background is light; preserve contrast for the
   white source-toolbar icons instead of inheriting that modern-theme state. */
.theme-classic .topbar :is(.classic-refresh, .navigation-toggle):is(:hover, :focus-visible):not(:disabled) { background: #286f60; color: #fff; border-color: #b9ffea; }
.classic-vip .classic-main-nav { display: flex; margin: 0; border: 0; padding: 0; background: #ecf0f1; }
.classic-vip .classic-main-nav button { flex: 1; min-width: 0; min-height: 43px; padding: 10px 4px; border: 0; border-right: 1px solid #d9dbdf; border-bottom: 3px solid transparent; border-radius: 0; background: #ecf0f1; color: #617574; font-size: 17px; font-weight: 700; line-height: 1.2; }
.classic-vip .classic-main-nav button:last-child { border-right: 0; }
.classic-vip .classic-main-nav button[aria-current="page"] { color: #178e6a; background: #fff; border-bottom-color: #178e6a; }
.classic-vip .classic-subnav { display: flex; width: 72%; min-height: 42px; margin: 13px auto; padding: 2px; border-radius: 30px; background: #b1cac5; }
.classic-vip .classic-subnav button { flex: 1; min-width: 0; padding: 4px; border: 0; border-radius: 28px; background: transparent; color: #315e53; font-size: 12px; font-weight: 700; line-height: 1.1; }
.classic-vip .classic-subnav button[aria-current="page"] { background: #fff; color: #178e6a; box-shadow: 0 0 3px #809f96; }
.classic-vip .classic-notice { padding: 6px 10px; background: #fff; font-size: 12px; color: #287b63; }
.classic-vip .classic-notice .notice { padding: 7px; margin: 0; font-size: 12px; }
.classic-vip .classic-stock { padding-bottom: 12px; }
.classic-vip .classic-totals { display: flex; width: 94%; min-height: 96px; margin: 0 auto 8px; background: #239d89 url('/images/classic/bg_total.png') center/100% 100% no-repeat; }
.classic-vip .classic-totals > div { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 10px 5px; text-align: center; }
.classic-vip .classic-totals > div + div { border-left: 1px solid #159989; }
.classic-vip .classic-totals span { color: #bdffea; font-size: 15px; font-weight: 700; }
.classic-vip .classic-totals strong { color: #fffde5; font-size: 29px; line-height: 1.1; overflow-wrap: anywhere; }
.classic-vip .classic-totals small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.classic-vip .classic-stock-card { width: 93%; margin: 8px auto; padding-bottom: 4px; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: 0 0 4px #5858584d; }
.classic-vip .classic-stock-card h2 { width: 195px; height: 31px; padding: 5px 0 4px 25px; margin: 0; color: var(--classic-pink); font-size: 19px; line-height: 22px; background: url('/images/classic/bg_tag_01.png') left center/100% 100% no-repeat; }
.classic-vip .classic-stock-card.is-voucher h2 { color: var(--classic-blue); background-image: url('/images/classic/bg_tag_02.png'); }
.classic-vip .classic-stock-card table { width: 98%; min-width: 0; table-layout: fixed; margin: 0 auto; border-collapse: collapse; border: 0; font-size: 17px; }
.classic-vip .classic-stock-card th, .classic-vip .classic-stock-card td { padding: 8px 2px; border: 0; text-align: center; vertical-align: middle; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; }
.classic-vip .classic-stock-card thead th { background: #fff; color: #738b83; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.classic-vip .classic-stock-card thead small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.classic-vip .classic-stock-card tbody tr { border-top: 1px solid #e5ebe9; }
.classic-vip .classic-stock-card tbody tr:nth-child(even) { background: #f9f9f9; }
.classic-vip .classic-stock-card tbody th, .classic-vip .classic-stock-card tbody td { color: #2e4a7e; font-weight: 700; }
.classic-vip .classic-stock-card tbody th { background: transparent; font-size: inherit; }
.classic-vip .classic-stock-card tbody td:nth-child(3), .classic-vip .classic-stock-card tbody td:nth-child(4) { color: #e5912f; }
.classic-vip .classic-product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; padding: 7px 3px 9px; background: #225d47; }
.classic-vip .classic-product { position: relative; min-width: 0; padding: 5px 5px 9px; border: 0; border-radius: 0; background: url('/images/classic/bg_list_pink.png') center/100% 100% no-repeat; color: #73294d; }
.classic-vip .classic-product.is-voucher { background-image: url('/images/classic/bg_list_blue.png'); color: #073a7e; }
.classic-vip .classic-product-heading { display: flex; align-items: center; justify-content: space-between; gap: 2px; min-height: 23px; padding: 0 9px 1px; font-size: 12px; line-height: 1.1; }
.classic-vip .classic-product-heading strong { flex: 0 1 45%; text-align: center; font-size: 15px; color: #9c3c76; }
.classic-vip .classic-product-heading span { color: #9a6391; }
.classic-vip .is-voucher .classic-product-heading strong { color: #314cb1; }
.classic-vip .is-voucher .classic-product-heading span { color: #4b79b5; }
.classic-vip .classic-product-body { display: flex; align-items: center; min-height: 116px; gap: 2px; padding: 2px 5px; }
.classic-vip .classic-product-image { flex: 0 0 42%; width: 42%; max-width: 87px; height: 108px; object-fit: contain; }
.classic-vip .classic-product-image.is-gift { max-width: 76px; }
.classic-vip .classic-image-missing { display: grid; place-items: center; width: 42%; height: 108px; }
.classic-vip .classic-product-info { flex: 1; min-width: 0; text-align: center; }
.classic-vip .classic-product-value { min-height: 30px; padding: 0; margin: 0 0 7px; color: inherit; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.classic-vip .classic-product-caption { display: block; margin: 0 0 2px; color: #795775; font-size: 10px; }
.classic-vip .is-voucher .classic-product-caption { color: #577492; }
.classic-vip .classic-product-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.classic-vip .classic-cart { min-width: 0; }
.classic-vip .classic-cart .vip-cart-open { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 31px; height: 31px; padding: 0; border: 0; border-radius: 0; background: url('/images/classic/btn_pink.png') center/100% 100% no-repeat; box-shadow: none; }
.classic-vip .is-voucher .classic-cart .vip-cart-open { background-image: url('/images/classic/btn_blue.png'); }
.classic-vip .classic-cart .vip-cart-open:disabled { background-image: url('/images/classic/btn_grey.png'); }
.classic-vip .classic-cart .vip-cart-open span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.classic-vip .classic-cart .vip-cart-open img { width: 25px; height: 24px; object-fit: contain; }
.classic-vip .classic-cart .vip-quantity-controls { display: flex; justify-content: center; gap: 0; width: 100%; min-width: 0; height: 31px; padding: 0; border: 0; background: transparent; }
.classic-vip .classic-cart .vip-quantity-controls button { display: flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; min-width: 0; height: 31px; min-height: 0; padding: 3px; border: 0; border-radius: 0; background: transparent; }
.classic-vip .classic-cart .vip-quantity-controls input { flex: 1; width: 1px; min-width: 0; height: 27px; margin: 2px 0; padding: 1px; border: 1px solid #d0adc5; border-radius: 3px; color: #73294d; background: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.classic-vip .is-voucher .classic-cart .vip-quantity-controls input { border-color: #a3b8dd; color: #073a7e; }
.classic-vip .classic-order-footer { display: flex; align-items: center; gap: 8px; min-height: 79px; padding: 10px 12px; background: #e9f1ef; color: #638579; border-top: 1px solid #93b7a7; }
.classic-vip .classic-order-total { flex: 1; min-width: 0; }
.classic-vip .classic-order-total span { display: block; color: #64887a; font-size: 12px; }
.classic-vip .classic-order-total strong { display: block; margin-top: 3px; color: #dd8d26; font-size: 20px; overflow-wrap: anywhere; }
.classic-vip .classic-order-button { flex: 0 0 39%; height: 52px; padding: 0; border: 0; border-radius: 0; background: url('/images/classic/btn_buy.png') center/contain no-repeat; }
.classic-vip .classic-recipient { padding: 10px 14px; background: #dcece6; }
.classic-vip .classic-recipient .recipient-search { padding: 0; }
.classic-vip .classic-recipient .form-field { margin: 0; }
.classic-vip .classic-recipient label { font-size: 13px; color: #176e54; }
.classic-vip .classic-recipient input { width: 100%; min-width: 0; height: 37px; padding: 7px 12px; border: 1px solid #b1cac5; border-radius: 22px; color: #176e54; background: #fff; }
.classic-vip .classic-recipient select { display: block; width: 100%; min-width: 0; min-height: 38px; padding: 7px 12px; border: 1px solid #b1cac5; border-radius: 22px; color: #176e54; background: #fff; font-size: 14px; }
.classic-vip .classic-recipient .form-hint { margin: 5px 0; font-size: 11px; color: #476b5f; }
.classic-vip .classic-recipient .recipient-results { display: flex; flex-wrap: wrap; gap: 5px; max-height: 115px; overflow-y: auto; }
.classic-vip .classic-recipient .recipient-option { min-height: 30px; padding: 4px 9px; border: 1px solid #b1cac5; border-radius: 5px; background: #fff; color: #196d53; font-size: 12px; }
.classic-vip .classic-recipient .recipient-option[aria-pressed="true"] { border-color: #178e6a; background: #178e6a; color: #fff; }
.classic-vip .classic-recipient .recipient-selected { margin: 5px 0 0; color: #176e54; font-size: 12px; }
.classic-vip .classic-history { padding: 0 12px 14px; }
.classic-vip .classic-history .stack { gap: 8px; }
.classic-vip .classic-history .vip-history-tabs { display: none; }
.classic-vip .classic-history .panel { margin: 0; padding: 0; border: 0; border-radius: 5px; background: #fff; box-shadow: none; }
.classic-vip .classic-history .panel-header { padding: 9px 10px; }
.classic-vip .classic-history .panel-header h2 { font-size: 15px; }
.classic-vip .classic-history .panel-header p, .classic-vip .classic-history .vip-history-observed { font-size: 11px; }
.classic-vip .classic-history .vip-history-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px; }
.classic-vip .classic-history .vip-history-filters .form-field { flex: 1 1 120px; min-width: 0; }
.classic-vip .classic-history .vip-history-filters input { min-width: 0; width: 100%; padding: 7px; font-size: 12px; }
.classic-vip .classic-history .vip-history-filters label { font-size: 11px; }
.classic-vip .classic-history .table-wrap { overflow-x: auto; }
.classic-vip .classic-history table { width: 100%; min-width: 0; font-size: 12px; border-collapse: collapse; }
.classic-vip .classic-history th, .classic-vip .classic-history td { padding: 7px 4px; white-space: normal; overflow-wrap: anywhere; color: #2e4a7e; font-size: 12px; }
.classic-vip .classic-history thead th { background: #fff; color: #738b83; font-weight: 400; text-transform: none; letter-spacing: 0; }
.classic-vip .classic-history .table-product { min-width: 0; gap: 3px; }
.classic-vip .classic-history .product-artwork { display: none; }
.classic-vip .classic-history .button { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.classic-vip .classic-history .vip-history-pagination { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; font-size: 12px; }
.classic-vip .classic-empty { grid-column: 1/-1; margin: 0; padding: 20px 12px; background: #fff; color: #537466; font-size: 13px; text-align: center; }
:is(.classic-vip, .classic-topup) .classic-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 390px) {
  .classic-vip .classic-product-heading { padding-inline: 5px; font-size: 10px; }
  .classic-vip .classic-product-heading strong { font-size: 13px; }
  .classic-vip .classic-product-body { padding-inline: 2px; min-height: 100px; }
  .classic-vip .classic-product-image { height: 94px; }
  .classic-vip .classic-product-value { font-size: 16px; }
  .classic-vip .classic-cart .vip-quantity-controls button { flex-basis: 22px; width: 22px; }
  .classic-vip .classic-main-nav button { font-size: 15px; }
  .classic-vip .classic-order-footer { gap: 5px; padding-inline: 8px; }
  .classic-vip .classic-order-total strong { font-size: 17px; }
}
