.customer-tools { display: flex; flex: 0 0 auto; align-items: center; }
.customer-control { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--theme-surface); color: var(--ink); cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.customer-control .icon { width: 20px; height: 20px; flex: 0 0 auto; }
.customer-control.is-signed-in { color: #117a9f; border-color: #168fb740; background: #168fb70e; }
html[data-theme="dark"] .customer-control.is-signed-in { color: #59cbee; }
.customer-control:hover { border-color: #168fb7; background: var(--theme-raised); }
.customer-tools [hidden], .customer-dialog [hidden] { display: none; }
.notification-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 17px; height: 17px; display: grid; place-items: center; padding-inline: 3px; border: 2px solid var(--paper); border-radius: 999px; background: #117a9f; color: white; font-size: 10px; font-weight: 800; line-height: 1; }
.activity-choice-actions { display: flex; gap: .5rem; }
.customer-dialog { --customer-blue: #117a9f; width: min(600px, calc(100% - 24px)); max-height: min(840px, calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 26px; background: var(--theme-surface); color: var(--ink); overflow: hidden; box-shadow: 0 24px 80px #0004; }
.customer-dialog[open] { display: flex; flex-direction: column; }
.customer-dialog::backdrop { background: #1118; backdrop-filter: blur(3px); }
.customer-dialog-header { position: relative; flex-shrink: 0; padding: 1.6rem 1.35rem 1.25rem; padding-inline-end: 4.8rem; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #168fb710, transparent); }
.customer-dialog-header .eyebrow { color: var(--customer-blue); margin-bottom: .65rem; }
.customer-dialog-header :is(h1,h2) { max-width: none; font-size: clamp(1.65rem, 6vw, 2.3rem); line-height: 1.2; letter-spacing: -.025em; }
.customer-dialog-header p:last-of-type { margin: .65rem 0 0; font-size: .875rem; color: var(--muted); }
.customer-close { position: absolute; inset-inline-end: 1rem; top: 1.2rem; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--theme-surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); cursor: pointer; }
.customer-close .icon { width: 20px; height: 20px; }
.customer-dialog-body { padding: 1.2rem; overflow: auto; overscroll-behavior: contain; min-height: 0; }
.customer-identity { display: flex; align-items: center; gap: .9rem; margin: .1rem .25rem 1.2rem; padding: .75rem 0; overflow-wrap: anywhere; }
.customer-identity > div { min-width: 0; }
.customer-identity strong { display: block; font-size: 1.05rem; }
.customer-identity small { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; }
.customer-avatar { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 58px; border-radius: 19px; background: #168fb71a; color: var(--customer-blue); font-size: 1.3rem; font-weight: 750; letter-spacing: -.025em; }
.customer-profile-intro { margin: .2rem 0 1rem; color: var(--muted); font-size: .9rem; }
.customer-profile-shortcuts { display: grid; gap: .7rem; }
.customer-profile-shortcut { display: flex; align-items: center; gap: .8rem; width: 100%; padding: 1rem; min-height: 84px; text-align: start; border: 1px solid var(--line); border-radius: 17px; background: var(--theme-surface); color: var(--ink); cursor: pointer; }
.customer-profile-shortcut:hover { background: var(--theme-raised); border-color: #168fb760; }
.customer-profile-shortcut > span:nth-child(2) { flex: 1; min-width: 0; }
.customer-profile-shortcut strong { display: block; font: inherit; font-size: .9rem; font-weight: 750; }
.customer-profile-shortcut small { display: block; margin-top: .25rem; font-size: .78rem; color: var(--muted); line-height: 1.55; }
.customer-shortcut-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 13px; color: var(--customer-blue); background: #168fb714; }
.customer-shortcut-icon .icon { width: 21px; height: 21px; }
.customer-shortcut-arrow { align-self: flex-start; color: var(--muted); font-size: 1.1rem; }
html[dir="rtl"] .customer-shortcut-arrow { transform: scaleX(-1); }
.customer-profile-unread { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 5px; border-radius: 8px; color: white; background: #117a9f; font-weight: 750; font-size: .75rem; }
.customer-profile-notice { display: flex; align-items: flex-start; gap: .5rem; margin: 1.2rem 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.customer-profile-notice .icon { width: 17px; height: 17px; margin-top: .15rem; color: var(--customer-blue); }
.customer-profile-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.customer-terms-note { font-size: .75rem; line-height: 1.7; color: var(--muted); }
.customer-terms-note a { text-decoration: underline; text-underline-offset: 3px; }
.store-footer .customer-terms-note { margin-top: .6rem; max-width: 30rem; color: inherit; opacity: .75; text-align: start; }
.customer-page-root { width: min(680px, calc(100% - 24px)); margin: 1rem auto 2.5rem; }
.customer-page-root .customer-page { display: block; width: 100%; max-height: none; border-radius: 24px; box-shadow: none; }
.customer-page-root .customer-dialog-body { overflow: visible; }
.customer-page-root .customer-tabs { position: sticky; top: 0; z-index: 1; }
.customer-page-layout main[hidden], .customer-page-layout :is(.footer-install,.site-search,.floating-cart,.back-to-top,.store-panel-trigger,.mobile-actions), .customer-page-layout #store-information { display: none !important; }
.customer-page-layout .site-header { display: flex; align-items: center; flex-wrap: nowrap; }
.customer-page-layout .store-footer { padding-bottom: 2rem; }
.customer-page-layout .footer-heading > :is(.brand, p:not(.customer-terms-note), #activity-settings) { display: none; }
.customer-tabs { display: flex; padding: 4px; gap: 3px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin-bottom: 1rem; }
.customer-tabs button { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: .8rem; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.customer-tabs button[aria-pressed="true"] { background: var(--theme-surface); color: var(--customer-blue); box-shadow: 0 2px 5px #0000000b; }
.customer-primary { background: var(--customer-blue); color: white; min-height: 44px; border-radius: 12px; }
.customer-guest { text-align: center; padding: .7rem .3rem; }
.customer-guest > .icon { width: 38px; height: 38px; color: var(--customer-blue); margin: .25rem auto .5rem; }
.customer-guest p, .customer-guest small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.customer-guest .customer-primary { width: 100%; margin: .5rem 0 .3rem; }
.customer-auth-tabs { margin-top: 1rem; }
.customer-auth-form { text-align: start; }
.customer-auth-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .65rem; min-width: 0; }
.customer-auth-field { display: grid; gap: .45rem; color: var(--ink); font-size: .85rem; font-weight: 650; }
.customer-auth-field input { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); padding: .75rem; font: inherit; font-size: 16px; }
.customer-auth-field input:focus-visible { outline: 2px solid #168fb7; outline-offset: 2px; }
.customer-auth-form small { font-size: .75rem; color: var(--muted); margin: -.2rem 0 .25rem; line-height: 1.5; }
.customer-password-input { position: relative; display: flex; min-width: 0; }
.customer-password-input input { padding-inline-end: 4rem; }
.customer-password-input button { position: absolute; inset-inline-end: .25rem; top: .2rem; bottom: .2rem; min-width: 44px; padding: .45rem; border: 0; border-radius: 9px; background: transparent; color: var(--customer-blue); font: inherit; font-size: .75rem; cursor: pointer; }
.customer-auth-error { color: var(--theme-danger) !important; text-align: start; margin: 0; }
.customer-auth-error:empty { display: none; }
.customer-auth-form fieldset:disabled { opacity: .7; }
.customer-password-settings { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin-top: 1rem; }
.customer-password-settings summary { font-size: .85rem; font-weight: 700; cursor: pointer; min-height: 24px; }
.customer-password-settings[open] form { margin-top: 1rem; }
.customer-empty { display: grid; justify-items: center; text-align: center; padding: 2rem .5rem; gap: .75rem; }
.customer-empty > .icon { width: 32px; height: 32px; color: var(--customer-blue); }
.customer-empty p { max-width: 300px; color: var(--muted); margin: 0 0 .5rem; font-size: .875rem; }
.customer-order { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: .75rem; }
.customer-order summary { display: flex; align-items: center; gap: .5rem; padding: .9rem; cursor: pointer; list-style: none; background: var(--paper); }
.customer-order summary::-webkit-details-marker { display: none; }
.customer-order summary > div { flex: 1; min-width: 0; }
.customer-order summary .icon { width: 16px; height: 16px; flex-shrink: 0; }
.customer-order[open] summary .icon { rotate: 180deg; }
.customer-reference { font-size: .85rem; font-weight: 750; }
.customer-order summary small { display: block; margin-top: .25rem; font-size: .72rem; color: var(--muted); }
.customer-order-status { padding: .3rem .55rem; border-radius: 8px; background: #168fb715; color: var(--customer-blue); font-size: .7rem; font-weight: 750; }
.customer-order-status[data-status="completed"] { color: var(--green); background: #8cbc681f; }
.customer-order-status[data-status="cancelled"] { color: var(--theme-danger); background: #d95f6a15; }
.customer-order-details { padding: .85rem; }
.customer-order-product { display: flex; gap: .65rem; align-items: center; padding-block: .4rem; font-size: .8rem; }
.customer-order-product img, .customer-product-placeholder { width: 52px; height: 65px; flex-shrink: 0; object-fit: contain; border-radius: 8px; background: var(--paper); }
.customer-order-product > span:not(.customer-product-placeholder) { flex: 1; min-width: 0; }
.customer-order-product strong { display: block; line-height: 1.5; }
.customer-order-product small { display: block; color: var(--muted); }
.customer-order-total { display: flex; justify-content: space-between; gap: .75rem; font-size: .85rem; border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .85rem; }
.customer-order-total strong { text-align: end; }
.customer-order-method { color: var(--muted); display: flex; align-items: center; gap: .4rem; margin: .6rem 0 0; font-size: .75rem; }
.customer-order-method .icon { width: 16px; height: 16px; }
.customer-inbox-toolbar { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.customer-text-button, .customer-notification-actions button { border: 0; background: transparent; color: var(--customer-blue); text-decoration: underline; text-underline-offset: 3px; padding: .5rem .2rem; min-height: 44px; font-weight: 650; font-size: .8rem; cursor: pointer; }
.customer-text-button:disabled { opacity: .45; cursor: default; }
.customer-notification { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; margin-bottom: .75rem; }
.customer-notification.is-unread { background: #168fb70a; border-color: #168fb740; }
.customer-notification-symbol { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; color: var(--customer-blue); background: #168fb714; }
.customer-notification-symbol .icon { width: 18px; height: 18px; }
.customer-notification > div { min-width: 0; flex: 1; }
.customer-notification strong { font-size: .875rem; }
.customer-notification p { margin: .35rem 0; font-size: .8rem; overflow-wrap: anywhere; }
.customer-notification small { font-size: .7rem; color: var(--muted); }
.customer-notification-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.customer-preference { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin-bottom: .75rem; cursor: pointer; }
.customer-preference > span { flex: 1; }
.customer-preference strong { display: block; font-size: .875rem; }
.customer-preference small { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.customer-preference input { flex: 0 0 auto; width: 22px; height: 22px; accent-color: var(--customer-blue); }
.customer-privacy-note { color: var(--muted); font-size: .8rem; line-height: 1.65; }
.customer-signout { width: 100%; margin-top: .75rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; min-height: 44px; }
#customer-status { font-size: .8rem; color: var(--muted); margin: 0; }
#customer-status:not(:empty) { padding-block: .75rem; }
#customer-status[data-state="error"] { color: var(--theme-danger); }
.customer-more { width: 100%; background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; min-height: 44px; }
.activity-settings { background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 999px; min-height: 44px; padding: .5rem .9rem; font-size: .8rem; cursor: pointer; justify-self: start; }
body.customer-open { overflow: hidden; }
body.customer-open :is(.mobile-actions, .floating-cart, .back-to-top, .store-panel-trigger) { opacity: 0; visibility: hidden; pointer-events: none; }
:is(.customer-control,.customer-tabs button,.customer-close,.customer-primary,.customer-text-button,.customer-preference input,.customer-profile-shortcut,.customer-terms-note a):focus-visible { outline: 3px solid #43c4e9; outline-offset: 3px; }
html[data-theme="dark"] .customer-dialog { --customer-blue: #59cbee; }
html[data-theme="dark"] .customer-primary { background: #117a9f; color: white; }
@media(max-width:400px) { .customer-dialog-body { padding: .85rem; } .customer-dialog-header { padding-inline-start: 1rem; } .site-header .brand { --brand-symbol-width: 27px; gap: .3rem; } .site-header .brand-wordmark { font-size: 1.1rem; } .site-header .header-tools { gap: .35rem; } }
@media(max-width:350px) { .site-header .brand-wordmark { display: none; } }
@media(prefers-reduced-motion:no-preference) { .customer-dialog[open] { animation: shop-dialog-enter .2s ease-out; } }
@media(prefers-reduced-motion:reduce) { .customer-control { transition: none; } }
@media(forced-colors:active) { .customer-avatar, .customer-shortcut-icon, .customer-profile-unread, .customer-control.is-signed-in { color: ButtonText; background: Canvas; border: 1px solid ButtonText; } }
