/* Customer design system: values are taken from index.php and its shared menu. */
:root {
    --site-font: 'Noto Sans Lao', sans-serif;
    --site-color-primary: #FF6B35;
    --site-color-secondary: #004E89;
    --site-color-accent: #F7931E;
    --site-color-text: #1A1A2E;
    --site-color-muted: #666;
    --site-color-subtle: #888;
    --site-color-surface: #FFFFFF;
    --site-color-success: #2ECC71;
    --site-color-danger: #E74C3C;
    --site-font-body: 1rem;
    --site-font-caption: .85rem;
    --site-font-description: .9rem;
    --site-font-title: 2.2rem;
    --site-font-product: 1.4rem;
    --site-font-price: 1.6rem;
    --site-font-action: .9rem;
    --site-font-brand: 1.4rem;
    --site-font-nav-icon: 2.4rem;
    --site-font-nav-label: .75rem;
    --site-bottom-nav-height: 84px;
    --site-font-checkout-action: 1.25rem;
    --site-font-checkout-amount: 1.25rem;
    --site-color-nav: #C0C0C0;
}
@media (max-width: 768px) {
    :root { --site-font-title: 1.8rem; --site-font-product: 1.1rem; }
}
@media (max-width: 480px) {
    :root { --site-font-title: 1rem; --site-font-product: .8rem; --site-font-price: .95rem; --site-font-description: .65rem; --site-font-caption: .78rem; --site-font-action: .62rem; }
}
body.customer-ui:not(.site-index) { font-family: var(--site-font); font-size: var(--site-font-body); color: var(--site-color-text); }
/* The homepage keeps its original rules; other customer pages share its scale. */
.customer-ui:not(.site-index) :is(h1, .page-title, .pg-title, .search-title, .register-title, .login-title) {
    font-size: var(--site-font-title) !important;
    font-family: var(--site-font) !important;
    font-weight: 700;
}
.customer-ui:not(.site-index) :is(h2, h3, .card-title, .sec-title, .form-title) { font-size: var(--site-font-product) !important; }
.customer-ui:not(.site-index) :is(.cart-product h2, .food-name, .item-name, .rider-name) { font-size: var(--site-font-product) !important; color: var(--site-color-text); }
.customer-ui:not(.site-index) :is(.cart-product-price, .cart-grand-total strong, .history-total strong, .sum-total-val, .food-price, .item-sub) { font-size: var(--site-font-price) !important; color: var(--site-color-primary) !important; }
.customer-ui:not(.site-index) :is(.history-meta, .history-items li, .cart-totals > div, .form-label, .cart-agent, .cart-heading p, .history-status, .order-status-filters a) { font-size: var(--site-font-caption) !important; }
.customer-ui:not(.site-index) :is(.cart-checkout, .history-detail, .history-receipt, .submit-btn, .search-btn) { font-size: var(--site-font-body) !important; }
.customer-ui:not(.site-index) :is(.history-detail, .history-receipt, .order-status-filters a[aria-current=page]) { color: var(--site-color-primary); }
.customer-ui:not(.site-index) :is(.cart-checkout, .submit-btn) { background: linear-gradient(135deg, var(--site-color-primary), var(--site-color-accent)); }
/* Keep the original index navigation assets, dimensions and states everywhere. */
.customer-ui .navbar .navbar-brand { display: inline-flex; align-items: center; gap: 6px; font-size: var(--site-font-brand) !important; }
.customer-ui .navbar-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.customer-ui .navbar-brand-version { margin-top: 2px; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: #a5a5a5; -webkit-text-fill-color: #a5a5a5; }
.customer-ui .navbar .navbar-brand { min-width: 0; flex-shrink: 1; }
.customer-ui .navbar-brand-text { min-width: 0; }
.customer-ui .navbar .navbar-brand .navbar-brand-text > span { max-width: 240px; white-space: normal; font-size: clamp(13px,1.1vw,16px) !important; line-height: 1.5; }
@media(max-width:768px) {
    .customer-ui .navbar .navbar-brand { flex: 1 1 0; }
    .customer-ui .navbar .navbar-brand .navbar-brand-text > span { max-width: 100%; white-space: nowrap; font-size: clamp(8px,2.5vw,14px) !important; }
    .customer-ui .navbar .banner-quick-btn { flex-shrink: 0; }
    .customer-ui .navbar-brand > img { width: 52px !important; flex-shrink: 0; }
}
.customer-ui .bottom-nav .bn-icon { font-size: var(--site-font-nav-icon) !important; }
.customer-ui .bottom-nav .bn-label { font-size: var(--site-font-nav-label) !important; }
.customer-ui .bottom-nav .bn-item { font-family: var(--site-font) !important; color: var(--site-color-nav); }
.customer-ui .bottom-nav .bn-item.active { color: var(--site-color-primary); }
.customer-ui:not(.site-index) :is(.cart-checkout-floating, .floating-submit .submit-btn) {
    font-size: var(--site-font-checkout-action) !important;
    font-weight: 700;
    min-height: 64px;
    line-height: 1.5;
}
.customer-ui .cart-checkout-floating { flex-wrap: wrap; gap: 8px 12px; }
.customer-ui .cart-checkout-floating .cart-checkout-amount,
.customer-ui .floating-submit .fs-total #float_final_amount {
    font-size: var(--site-font-checkout-amount) !important;
    font-weight: 800;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .customer-ui .bottom-nav { height: calc(var(--site-bottom-nav-height) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
    .customer-ui .bottom-nav .bn-item { min-height: 72px; min-width: 0; padding: 8px 2px; margin: 5px 2px; gap: 5px; }
    .customer-ui .bottom-nav .bn-label { white-space: nowrap; line-height: 1.4; }
    body.customer-ui { padding-bottom: calc(var(--site-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 16px); }
    .customer-ui .cart-checkout-floating { bottom: calc(var(--site-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 18px); }
}

/* One shared background, copied exactly from the homepage. */
:root {
    --site-background-color: #ffffff;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 60 60'%3E%3Cdefs%3E%3Cstyle%3E.s%7Bfill:none;stroke:rgba(180,130,10,0.034);stroke-width:1%7D.sf%7Bfill:rgba(212,175,55,0.019)%7D.sd%7Bfill:rgba(212,175,55,0.038)%7D%3C/style%3E%3C/defs%3E%3Cpath class='sf' d='M30,4 L56,30 L30,56 L4,30 Z'/%3E%3Cpath class='s' d='M30,4 L56,30 L30,56 L4,30 Z'/%3E%3Cpath class='s' d='M30,13 L47,30 L30,47 L13,30 Z' stroke-dasharray='3,2'/%3E%3Cpath class='s' d='M30,20 L40,30 L30,40 L20,30 Z'/%3E%3Cline class='s' x1='30' y1='4' x2='30' y2='56' stroke-opacity='0.076'/%3E%3Cline class='s' x1='4' y1='30' x2='56' y2='30' stroke-opacity='0.076'/%3E%3Cellipse class='sf' cx='30' cy='4' rx='3.5' ry='6'/%3E%3Cellipse class='sf' cx='30' cy='56' rx='3.5' ry='6'/%3E%3Cellipse class='sf' cx='4' cy='30' rx='6' ry='3.5'/%3E%3Cellipse class='sf' cx='56' cy='30' rx='6' ry='3.5'/%3E%3Ccircle class='sd' cx='30' cy='30' r='4'/%3E%3Ccircle fill='rgba(212,175,55,0.028)' cx='30' cy='30' r='2'/%3E%3Cpath fill='rgba(212,175,55,0.011)' d='M0,0 L4,0 L0,4 Z'/%3E%3Cpath fill='rgba(212,175,55,0.011)' d='M60,0 L56,0 L60,4 Z'/%3E%3Cpath fill='rgba(212,175,55,0.011)' d='M0,60 L4,60 L0,56 Z'/%3E%3Cpath fill='rgba(212,175,55,0.011)' d='M60,60 L56,60 L60,56 Z'/%3E%3C/svg%3E");
    --site-background-size: 30px 30px;
}
body.customer-ui {
    background-color: var(--site-background-color) !important;
    background-image: var(--site-background-image) !important;
    background-size: var(--site-background-size) !important;
    background-repeat: repeat !important;
    background-position: 0 0 !important;
    background-attachment: scroll !important;
}
/* Stable customer navigation geometry and an unobstructed profile sheet. */
body.customer-ui .bottom-nav, body.customer-ui .bottom-nav * { box-sizing:border-box; }
body.customer-ui .bottom-nav-inner { display:flex !important;align-items:stretch !important;height:100% !important;padding:0 4px !important;gap:0 !important; }
body.customer-ui .bottom-nav .bn-item { flex:1 1 0 !important;width:0 !important;min-width:0 !important;max-width:none !important;height:72px !important;min-height:72px !important;margin:5px 2px !important;padding:6px 2px !important;gap:4px !important;line-height:1 !important;transform:none !important; }
body.customer-ui .bottom-nav .bn-icon-wrap { height:38px !important;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
body.customer-ui .bottom-nav .bn-icon { font-size:var(--site-font-nav-icon) !important;line-height:1 !important; }
body.customer-ui .bottom-nav .bn-label { font-size:var(--site-font-nav-label) !important;line-height:1.4 !important;white-space:nowrap; }
body.customer-ui .fab-search { bottom:calc(var(--site-bottom-nav-height) + env(safe-area-inset-bottom,0px) + 28px) !important; }
body.customer-ui .profile-overlay { z-index:9000 !important; }
body.customer-ui .profile-sheet { z-index:9001 !important;max-height:calc(100dvh - 16px);display:flex;flex-direction:column;overflow:hidden;padding-bottom:max(12px,env(safe-area-inset-bottom)); }
body.customer-ui .profile-sheet .sheet-handle, body.customer-ui .profile-sheet .sheet-user { flex-shrink:0; }
body.customer-ui .profile-sheet .sheet-menu { min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:16px; }
body.customer-ui.profile-menu-open .fab-search { visibility:hidden;pointer-events:none; }
@media(max-width:768px) { body.customer-ui .bottom-nav { height:calc(var(--site-bottom-nav-height) + env(safe-area-inset-bottom,0px)) !important;padding:0 0 env(safe-area-inset-bottom,0px) !important; } }
