/* E-Voucher V1064 — premium sky/white storefront. HOST SCOPED.
   The legacy hostname never receives .ev-next-v1064, retaining V1063 styling.
   Do NOT override admin frames or checkout behavior. All prices/actions/data remain live. */
html.ev-next-v1064 {
  --ev-blue:#0869f5;--ev-blue2:#35aeff;--ev-navy:#0f2851;
  --ev-border:#dbe9fd;--ev-muted:#6982a5;
  --ev-radius:18px;--ev-shadow:0 12px 38px rgba(33,94,175,.12);
}
html.ev-next-v1064 body {
  --orange:#146df7;--orange2:#46a8ff;--orange3:#e7f3ff;
  --bg:#edf6ff;--text:#153054;--muted:#6e819a;--line:#dce9f9;
  --blue:#0b70f6;--card:#fff;--radius:17px;
  font-family:"Noto Sans Thai",system-ui,sans-serif!important;
  color:var(--ev-navy);background-color:#eaf5ff;
}
html.ev-next-v1064 #app{color:var(--ev-navy)}
html.ev-next-v1064 #app button,
html.ev-next-v1064 #app input,
html.ev-next-v1064 #app select{font-family:inherit!important}
html.ev-next-v1064 #app .btn:not(.ghost){background:linear-gradient(135deg,#1478ff,#0659e9);border-radius:12px;box-shadow:0 5px 16px rgba(17,108,244,.15)}
html.ev-next-v1064 #app .btn.ghost{border:1px solid #d6e5fb;border-radius:12px;background:white;color:#0e6bf2}
html.ev-next-v1064 #app .btn:focus-visible,
html.ev-next-v1064 #app .nav:focus-visible,
html.ev-next-v1064 #app a:focus-visible,
html.ev-next-v1064 #app input:focus-visible{outline:3px solid #78b9ff;outline-offset:2px}
/* Keep visual transition tasteful without delaying normal app startup. */
html.ev-next-v1064 #app .side-card,
html.ev-next-v1064 #app .card,
html.ev-next-v1064 #app .product{
  border:1px solid rgba(207,226,250,.92);background:#fff;
  box-shadow:0 8px 25px rgba(35,100,187,.075);border-radius:16px;
}
html.ev-next-v1064 #app .product{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
html.ev-next-v1064 #app .product:hover{transform:translateY(-3px);border-color:#9fc9ff;box-shadow:0 16px 30px rgba(25,95,188,.16)}
html.ev-next-v1064 #app .section-head{align-items:center;gap:12px;margin:18px 0 12px}
html.ev-next-v1064 #app .section-head h2{color:#123461;letter-spacing:-.35px;font-weight:900;font-size:20px}
html.ev-next-v1064 #app .section-head p{color:#6d829c;font-size:12px}
html.ev-next-v1064 #app .input,html.ev-next-v1064 #app .select,
html.ev-next-v1064 #app input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.ev-next-v1064 #app select{border-color:#dce8f8;border-radius:12px}
/* Header: compact, high-contrast, polished, not stacked chat icons. */
html.ev-next-v1064 #app>.header{background:rgba(255,255,255,.97)!important;color:#163458!important;border:0;border-bottom:1px solid #e6eefb;box-shadow:0 5px 24px rgba(20,71,138,.07)}
html.ev-next-v1064 #app .topbar{background:linear-gradient(95deg,#0866ea,#318cfa 58%,#70bcff);color:white;font-weight:700}
html.ev-next-v1064 #app .topbar #siteTopDescription{letter-spacing:.1px}
html.ev-next-v1064 #app .topbar .right{color:#fff;gap:13px}
html.ev-next-v1064 #app .topbar .right .btn.ghost{border-color:rgba(255,255,255,.42);background:rgba(255,255,255,.17);color:white;box-shadow:none}
html.ev-next-v1064 #app .logo,html.ev-next-v1064 #app .logo-v301{color:#0b6ffa}
html.ev-next-v1064 #app .logo #headerSiteName{color:#076bf4;font-size:24px;font-weight:900;letter-spacing:-1px}
html.ev-next-v1064 #app .search-v301{background:#f8fbff!important;box-shadow:0 4px 15px rgba(22,90,183,.05)!important;border:1px solid #d4e4fa!important;border-radius:999px!important;overflow:hidden}
html.ev-next-v1064 #app .search-v301 input{color:#17375b;background:transparent!important;font-size:13px}
html.ev-next-v1064 #app .search-v301 button{background:linear-gradient(135deg,#0d76fa,#1970ec);color:white!important;border-radius:999px!important;height:37px;box-shadow:0 5px 14px rgba(11,106,233,.19)}
html.ev-next-v1064 #app .wallet-card-v301{color:white;background:linear-gradient(125deg,#3295ff,#0758e9)!important;border:1px solid rgba(255,255,255,.35);box-shadow:0 10px 25px rgba(21,108,235,.22)!important;border-radius:16px!important}
html.ev-next-v1064 #app .wallet-card-v301 b{font-weight:900}
html.ev-next-v1064 #app .desktop-nav{background:rgba(255,255,255,.97);border-bottom:1px solid #e2ecf8;box-shadow:0 7px 20px rgba(27,75,131,.035)}
html.ev-next-v1064 #app .desktop-nav button{border-radius:11px;font-weight:800;letter-spacing:.02px;color:#334c70}
html.ev-next-v1064 #app .desktop-nav button.active,
html.ev-next-v1064 #app .desktop-nav button:hover{color:#075ee8;background:#e0efff}
html.ev-next-v1064 #app .desktop-nav #cartCountTop{background:#0c74ff;color:#fff;border-radius:7px;padding:1px 6px}
/* Chat kept functional in navigation; hide ONLY duplicate topbar shortcut on desktop. */
@media(min-width:981px){
  html.ev-next-v1064 #app .topbar #ccQuickV9983{display:none!important}
  html.ev-next-v1064 #app .cc-desktop-v9983{margin-left:auto;padding:9px 14px!important}
  html.ev-next-v1064 #app .cc-desktop-v9983 .cc-badge-v9983{display:inline-grid;place-items:center}
  html.ev-next-v1064 #app .cc-desktop-v9983 .cc-badge-v9983[hidden]{display:none!important}
  html.ev-next-v1064 #app .topbar{max-width:none;padding:5px max(24px,calc((100vw - 1450px)/2))!important;min-height:35px}
  html.ev-next-v1064 #app .mainbar-v301{max-width:1450px;padding:13px 24px!important;grid-template-columns:minmax(190px,245px) minmax(240px,1fr) 210px!important;gap:25px}
  html.ev-next-v1064 #app .desktop-nav-inner{max-width:1450px;padding:8px 24px;gap:9px}
  html.ev-next-v1064 #app .desktop-nav-inner button{padding:10px 15px;font-size:13px}
  html.ev-next-v1064 #app>.container{max-width:1450px;grid-template-columns:245px minmax(0,1fr);gap:21px;padding:22px 24px 65px}
  html.ev-next-v1064 #app>.container>section{min-width:0}
  html.ev-next-v1064 #app .sidebar .side-card{margin-bottom:15px;padding:14px;border-radius:16px}
  html.ev-next-v1064 #app .sidebar .side-title{font-size:14px;font-weight:900;color:#19395e;border-bottom:1px solid #edf3fb;padding-bottom:11px;margin-bottom:7px}
  html.ev-next-v1064 #app .sidebar .row{padding:5px 3px;font-size:12px}
  html.ev-next-v1064 #app .side-menu button{min-height:38px;display:flex;align-items:center;gap:9px;border-bottom:1px solid #f1f5fc;color:#375273;font-size:12px;padding:10px;border-radius:9px}
  html.ev-next-v1064 #app .side-menu button:hover{background:#ecf5ff;color:#0968e8}
  html.ev-next-v1064 #home .banner-row-v301{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;margin-bottom:13px!important}
  html.ev-next-v1064 #home #bannerMain{height:auto!important;min-height:220px!important;aspect-ratio:3.22/1;border-radius:20px!important;border:4px solid rgba(255,255,255,.94);box-shadow:0 12px 30px rgba(27,88,166,.14)}
  html.ev-next-v1064 #home #bannerMain img{width:100%;height:100%;object-fit:cover}
  html.ev-next-v1064 #home #bannerMini:empty{display:none!important}
  html.ev-next-v1064 #home #bannerMini:not(:empty){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  html.ev-next-v1064 #home #bannerMini .mini-banner{height:94px;border-radius:13px}
  html.ev-next-v1064 #home #categoryTabsV198{display:flex;flex-wrap:wrap;gap:9px;padding:0;margin:8px 0 15px;min-height:0;max-width:100%}
  html.ev-next-v1064 #home #categoryTabsV198 button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:5px;min-width:0!important;min-height:38px!important;padding:8px 15px!important;border:1px solid #d6e5fa;border-radius:999px!important;background:rgba(255,255,255,.9);color:#3f5b7e;box-shadow:0 3px 12px rgba(31,99,185,.035);font-size:12px!important;font-weight:800}
  html.ev-next-v1064 #home #categoryTabsV198 button.active{color:white!important;border-color:#0869f6!important;background:linear-gradient(135deg,#1489ff,#0064eb)!important;box-shadow:0 6px 16px rgba(14,112,246,.20)}
  html.ev-next-v1064 #home #categoryTabsV198 .category-icon-v301{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:17px!important}
  html.ev-next-v1064 #home #productGrid.products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px!important;align-items:stretch}
  html.ev-next-v1064 #home #productGrid>.product{min-width:0;margin:0!important;overflow:hidden}
  html.ev-next-v1064 #home #productGrid .product .cover{background:#f6faff;overflow:hidden}
  html.ev-next-v1064 #home #productGrid .product .cover img{width:100%;height:100%;object-fit:contain}
  html.ev-next-v1064 #home #productGrid .product .body{padding:10px 11px 12px!important}
  html.ev-next-v1064 #home #productGrid .product .name{color:#183759;font-size:12px!important;font-weight:800;line-height:1.42}
  html.ev-next-v1064 #home #productGrid .product .price .sale{color:#0d65ec;font-weight:900}
  html.ev-next-v1064 #home #productGrid>.reward-shop-heading-v991{grid-column:1/-1}
  html.ev-next-v1064 #app #home .home-wallet-legacy-v564{display:none!important}
}
@media(min-width:981px) and (max-width:1330px){
  html.ev-next-v1064 #home #productGrid.products{grid-template-columns:repeat(4,minmax(0,1fr))}
  html.ev-next-v1064 #app>.container{grid-template-columns:210px minmax(0,1fr);gap:15px}
  html.ev-next-v1064 #app .mainbar-v301{grid-template-columns:200px minmax(0,1fr) 175px!important}
}
/* Visual enhancements common to responsive storefront and customer pages. */
html.ev-next-v1064 #home #bannerMain,.ev-next-v1064 #app .banner-main{background-color:#e9f3ff}
html.ev-next-v1064 #home .banner-row-v301 .banner-fallback{background:linear-gradient(120deg,rgba(5,83,219,.35),rgba(2,28,93,.08));font-weight:900}
html.ev-next-v1064 #app #categoryTabsV198 button:focus-visible{outline:3px solid #8dc4ff;outline-offset:2px}
html.ev-next-v1064 #home #productGrid>.reward-shop-card-v988 .reward-shop-promotion-v989{border-radius:9px;background:#eef4ff;color:#085fe8}
html.ev-next-v1064 #app .product .tag{border-radius:999px;font-weight:700}
html.ev-next-v1064 #app .product .qty button,
html.ev-next-v1064 #app .product .reward-shop-actions-v988 .btn{border-radius:10px}
/* Header/desktop chat modal itself must remain fully functional. */
html.ev-next-v1064 #chatCustomerV9983{font-family:"Noto Sans Thai",system-ui,sans-serif;border-radius:19px;box-shadow:0 25px 65px rgba(18,58,125,.27)}
/* Mobile keeps original controls, no duplicated chat button introduced. */
@media(max-width:980px){
  html.ev-next-v1064 #app>.header{background:#fff!important}
  html.ev-next-v1064 #app .topbar{background:linear-gradient(100deg,#116ef3,#62b7ff);color:#fff}
  html.ev-next-v1064 #app .mainbar-v301{background:white}
  html.ev-next-v1064 #app .logo #headerSiteName{color:#0d6df5;font-size:19px}
  html.ev-next-v1064 #app .wallet-card-v301{background:linear-gradient(125deg,#359aff,#0964ed)!important}
  html.ev-next-v1064 #app .search-v301{border-radius:15px!important}
  html.ev-next-v1064 #app .mobile-head-actions-v431 #ccMobileV9983{border-color:#c8dfff!important;color:#0a6df1!important}
  html.ev-next-v1064 #app .sidebar{display:none}
  html.ev-next-v1064 #app>.container{padding:12px 12px 80px!important;display:block}
  html.ev-next-v1064 #home #bannerMain{border-radius:16px!important;border:2px solid rgba(255,255,255,.94);box-shadow:0 10px 25px rgba(24,92,175,.10)}
  html.ev-next-v1064 #home #productGrid .product{border-radius:15px!important}
  html.ev-next-v1064 #home #categoryTabsV198 button.active{background:#0a6cf4;color:white}
  html.ev-next-v1064 #app .section-head h2{font-size:16px}
}
@media(max-width:560px){
  html.ev-next-v1064 #app>.container{padding:9px 9px 90px!important}
  html.ev-next-v1064 #app .product .body{padding:8px!important}
  html.ev-next-v1064 #app .product .name{font-weight:800}
  html.ev-next-v1064 #app .product .tag{font-size:9px}
}
@media(prefers-reduced-motion:reduce){html.ev-next-v1064 #app .product{transition:none!important}}
