/* V28 customer-area glass design. Existing dialog stacking and business logic retained. */
.atelier-store {--customer-glass:rgba(251,247,239,.85);--customer-tile:rgba(255,253,248,.44);--customer-edge:rgba(255,255,255,.92);--customer-shadow:0 16px 44px rgba(33,26,20,.16);}
body.atelier-store > #beldiMenuBackdrop, #accountModal, #serviceModal {background:rgba(33,26,20,.28);backdrop-filter:none;-webkit-backdrop-filter:none;}
body.atelier-store > #beldiDrawer, #accountModal .account-dialog, #serviceModal .service-panel {
 background:#f7f2e9!important;border:1px solid var(--customer-edge)!important;border-radius:28px!important;box-shadow:var(--customer-shadow)!important;color:var(--ink);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9a88b transparent;
}
@supports ((backdrop-filter:blur(10px)) or (-webkit-backdrop-filter:blur(10px))){
 body.atelier-store > #beldiDrawer, #accountModal .account-dialog,#serviceModal .service-panel {background:var(--customer-glass)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);}
}
html body.atelier-store #beldiDrawer .drawer-head {padding:0 0 12px;margin:0;border-bottom:1px solid #b58a4333;}
html body.atelier-store #beldiDrawer .drawer-welcome {padding:6px 2px;color:#665b4d;}
html body.atelier-store #beldiDrawer :is(.drawer-item,.drawer-language-trigger) {min-height:56px;padding:8px 10px;margin:0;background:var(--customer-tile);border:1px solid var(--customer-edge);border-radius:16px;box-shadow:none!important;gap:10px;color:var(--ink);line-height:1.4;}
html body.atelier-store #beldiDrawer :is(.drawer-item,.drawer-language-trigger):hover {background:rgba(255,253,248,.72);border-color:var(--customer-edge)!important;}
html body.atelier-store #beldiDrawer :is(.drawer-icon,.drawer-language-globe) {width:36px;height:36px;flex:0 0 36px;border:1px solid var(--customer-edge);border-radius:12px;background:#fffdf83d;color:#49382b;}
#beldiDrawer :is(.drawer-icon,.drawer-language-globe) svg {width:21px;height:21px;}
#beldiDrawer .drawer-copy {display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;}
#beldiDrawer .drawer-copy small {font-size:11px;font-weight:400;color:#665b4d;line-height:1.45;white-space:normal;}
#beldiDrawer .drawer-copy + .drawer-arrow {margin-inline-start:auto;}
#beldiDrawer #notificationCount:not([hidden]) {background:#8d6a35;color:white;flex:none;margin-inline-start:0;}
#beldiDrawer .drawer-chevron {width:15px;height:15px;flex:none;}
html[dir=ltr] #beldiDrawer .drawer-chevron {transform:scaleX(-1);}
#beldiDrawer .drawer-close,#accountModal .account-close,#serviceModal .service-close {background:var(--customer-tile)!important;border:1px solid var(--customer-edge)!important;border-radius:50%!important;box-shadow:none!important;color:var(--ink)!important;line-height:1;}
html body.atelier-store #beldiDrawer a[href="#shop"] {background:var(--ink);color:var(--cream);}
#beldiDrawer a[href="#shop"] .drawer-icon {background:#ffffff12;color:inherit;border-color:#ffffff33;}
html body.atelier-store #beldiDrawer #beldiSettings .settings-row {background:var(--customer-tile);border-color:var(--customer-edge);border-radius:12px;}
html body.atelier-store #beldiDrawer #beldiSettings .settings-row[aria-pressed=true] {background:#eadfce;border-color:#b58a43;}
#beldiDrawer .drawer-footer {padding:12px 0 4px;}
#accountModal,#serviceModal {padding:12px;}
#accountModal .account-dialog,#serviceModal .service-panel {width:min(500px,100%);max-height:calc(100dvh - 24px);padding:20px!important;}
#accountModal .account-dialog {will-change:auto;transition:transform .22s ease-out,opacity .18s ease-out;}
#accountModal {transition:opacity .2s ease,visibility .2s ease;}
#accountModal .account-topline,#serviceModal .service-head {border-bottom:1px solid #b58a4333;padding:0 48px 13px;min-height:52px;text-align:center;justify-content:center;position:relative;}
#accountModal .account-brandmark {display:none;}
#accountModal .account-close,#serviceModal .service-close {position:absolute!important;inset-inline-start:auto;inset-inline-end:0;top:0;width:40px!important;height:40px!important;min-width:40px;display:grid;place-items:center;font-size:23px!important;padding:0;}
#accountModal .account-close:hover {transform:none;background:rgba(255,253,248,.8)!important;}
#accountModal .account-heading h3,#serviceModal .service-head h3 {font-family:inherit;font-size:clamp(20px,5vw,25px);font-weight:700;line-height:1.4;margin:3px 0;color:var(--ink);}
#accountModal .account-heading small,#serviceModal .service-head small {font-size:9px;letter-spacing:.8px;color:#786f64;}
#accountModal .account-tabs {background:rgba(255,253,248,.35);border:1px solid var(--customer-edge);border-radius:15px;gap:4px;}
#accountModal .account-tabs button {min-height:44px;color:var(--ink);font-weight:600;box-shadow:none;}
#accountModal .account-tabs button.active {background:#49382b;color:#fffdf8;}
#accountModal .account-tabs button.active #accountNotificationCount {color:inherit;}
#accountModal :is(.account-welcome,.loyalty-card,.account-extra,.customer-notice,.notification-empty),#serviceModal :is(.service-rate,.service-note,.shipping-result) {background:var(--customer-tile);border:1px solid var(--customer-edge);border-radius:15px;box-shadow:none;}
#accountModal .loyalty-card:after {display:none;}
#accountModal .account-welcome-icon,#accountModal .customer-notice-icon {background:#fffdf859;border:1px solid var(--customer-edge);border-radius:12px;}
#accountModal .customer-notice.unread {background:#fffaf1a8;border-color:#b58a4380;border-inline-start:3px solid #b58a43;}
#accountModal .customer-notice-main b {overflow-wrap:anywhere;}
#accountModal .customer-notice-read {white-space:normal;max-width:86px;min-height:40px;}
#accountModal .notification-empty {color:#665b4d;}
#accountModal .account-form input,#serviceModal .service-form :is(input,select,textarea) {background:rgba(255,253,248,.76);border:1px solid #b9a88b66;border-radius:12px;min-height:46px;font-size:16px;color:var(--ink);}
#accountModal .account-form input:focus,#serviceModal .service-form :is(input,select,textarea):focus {outline:2px solid #b58a4370;outline-offset:1px;}
#accountModal .account-save,#serviceModal .service-form .btn {background:var(--ink);color:var(--cream);border:1px solid var(--ink);border-radius:13px!important;min-height:48px;box-shadow:none;}
#accountModal .account-logout {min-height:44px;}
#accountModal #accountOrdersList article {background:var(--customer-tile);border-color:var(--customer-edge)!important;overflow-wrap:anywhere;}
#serviceModal .service-panel {animation:customerGlassIn .22s ease-out both;}
@keyframes customerGlassIn {from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){
 #accountModal .account-dialog,#serviceModal .service-panel {padding:16px!important;border-radius:24px!important;}
 #accountModal .member-tabs button {font-size:12px;padding-inline:4px;}
}
@media(prefers-reduced-motion:reduce){#accountModal,#accountModal *,#serviceModal,#serviceModal *,#beldiDrawer,#beldiDrawer *{transition:none!important;animation:none!important;}}
html body.atelier-store #beldiDrawer a[href="#shop"] .drawer-icon{background:#ffffff12;color:var(--cream);border-color:#ffffff33;}

/* Keep the translucent glass palette, but reduce expensive blur on touch devices. */
html body.atelier-store > #beldiDrawer,#accountModal .account-dialog,#serviceModal .service-panel{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);}
@media(max-width:900px),(pointer:coarse){
 .atelier-store{--customer-glass:rgba(251,247,239,.94);}
 html body.atelier-store > #beldiDrawer,#accountModal .account-dialog,#serviceModal .service-panel{background:var(--customer-glass)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
}
