/* Shared Apple-inspired storefront surfaces; existing forms and controllers stay in place. */
body.sh-site {
    --uc-ink: #1d1d1f;
    --uc-ink-med: #687080;
    --uc-ink-dis: #8d95a3;
    --glass-bg: #ffffffeb;
    --glass-bg-strong: #fffffff5;
    --glass-bg-soft: #f4f6f9;
    --glass-border: #e2e6ee;
    --glass-border-soft: #e5e8ee;
    --md-primary: #0071e3;
    --md-on-primary: #fff;
    --acg-primary: #0071e3;
    --uc-primary-deep: #005cbf;
    --uc-field-bg: #f6f7fa;
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 4% 8%, #dce6f680, transparent 48%),
        radial-gradient(ellipse at 97% 80%, #e7dff580, transparent 48%), #edf0f5 !important;
    background-attachment: fixed !important;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.sh-site::before { display: none; }
.sh-site .uc-topbar, .sh-site .sh-auth-nav { position: relative; z-index: 20; padding: 24px 24px 0; }
.sh-site .uc-topbar__inner, .sh-site .sh-auth-bar { max-width: 1280px; margin: 0 auto; }
.sh-site .shop-nav, .sh-site .sh-auth-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    min-height: 64px; padding: 10px 18px; box-sizing: border-box;
    border: 1px solid #ffffffd9; border-radius: 40px; background: #ffffff94;
    backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
    box-shadow: 0 2px 4px #29344705, 0 8px 30px #29344708, inset 0 1px 0 #fff;
}
.sh-site .shop-brand img, .sh-site .sh-auth-brand img { width: 36px; height: 36px; border-radius: 50%; }
.sh-site .shop-brand__name, .sh-site .sh-auth-brand { font-size: 14px; font-weight: 650; color: #262a32; letter-spacing: -.35px; }
.sh-site .sh-auth-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.sh-site .sh-auth-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-site .sh-auth-bar > div { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.sh-site .sh-auth-bar > div a { font-size: 12px; color: #687080; text-decoration: none; }
.sh-site .shop-nav__item { color: #687080; font-size: 12px; font-weight: 500; }
.sh-site .sh-nav-notice { border: 0; background: transparent; cursor: pointer; }
.sh-site.sh-store .shop-search { display: none; }
.sh-site.sh-store .shop-nav__list { margin: auto; }
.sh-site .shop-nav__item.active { color: #262a32; background: #ffffffdb; box-shadow: 0 1px 3px #1d24321a; }
.sh-site .shop-theme-btn { display: none; }
.sh-site .shop-btn--primary { background: #1d1d1f; color: #fff; }
.sh-site .panel, .sh-site .uc-card { border: 1px solid #e2e6ee; border-radius: 18px; background: #ffffffed; box-shadow: 0 8px 30px #2739520b; }
.sh-site .panel-header { border-bottom-color: #e9ecf2; background: transparent; }
.sh-site .form-control, .sh-site .form-select, .sh-site .form-floating > .form-control {
    background: #f6f7fa; color: #242b36; border: 1px solid #dfe4ec; border-radius: 11px;
    box-shadow: inset 0 1px 2px #26324803; font-family: inherit; font-size: 14px;
}
.sh-site .form-control::placeholder { color: #8a93a2; }
.sh-site .form-control:focus, .sh-site .form-floating > .form-control:focus {
    background: #fff; color: #242b36; border-color: #7bb5f1; box-shadow: 0 0 0 3px #007aff14;
}
.sh-site .form-floating > label { color: #7b8493; font-size: 13px; }
.sh-site .form-control.is-invalid, .sh-site .was-validated .form-control:invalid { border-color: #d85757; }
.sh-site .form-control.is-valid, .sh-site .was-validated .form-control:valid { border-color: #4a9671; }
.sh-site .btn-primary, .sh-site .btn-gradient {
    background: #0071e3; color: #fff; border: 1px solid #0071e3; border-radius: 11px;
    font-family: inherit; font-weight: 550; font-size: 14px; box-shadow: 0 2px 4px #0071e314;
}
.sh-site .btn-primary:hover, .sh-site .btn-gradient:hover { background: #0064ca; border-color: #0064ca; color: #fff; }
.sh-site .btn-outline-primary, .sh-site .btn-passkey { color: #126ac5; border: 1px solid #d8e2ef; background: #fff; border-radius: 11px; box-shadow: none; }
.sh-site .text-link { color: #006dcc; text-decoration: none; }
.sh-site :is(a,button,input,select):focus-visible { outline: 3px solid #007aff80; outline-offset: 3px; }
.sh-site :is(button,.btn):active { transform: scale(.98); }
.sh-site :is(button,.btn) { touch-action: manipulation; transition: background .15s, transform .1s ease-out; }

/* Shared window toolbar for query and account views. The dots are decoration only. */
.sh-site .sh-page-chrome {
    display: grid; grid-template-columns: 74px minmax(0,1fr) 74px; align-items: center;
    min-height: 46px; padding: 0 20px; border-bottom: 1px solid #dfe3eb;
    border-radius: 20px 20px 0 0; background: linear-gradient(#fcfcfdd9, #f1f3f6d9);
    box-shadow: inset 0 1px 0 #fff;
}
.sh-site .sh-page-lights { display: flex; gap: 7px; }
.sh-site .sh-page-lights i { width: 10px; height: 10px; border: 1px solid #0000000d; border-radius: 50%; }
.sh-site .sh-page-lights i:nth-child(1) { background: #ff6258; }
.sh-site .sh-page-lights i:nth-child(2) { background: #ffbf2f; }
.sh-site .sh-page-lights i:nth-child(3) { background: #2acb42; }
.sh-site .sh-page-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: #747d8c; font-size: 10px; font-weight: 550; }

/* Account forms keep their original field names, submit handlers and verification controls. */
.sh-auth .auth-wrapper { min-height: calc(100svh - 100px); padding: 46px 20px 70px; align-items: flex-start; background: transparent; overflow: visible; }
.sh-auth .auth-wrapper::before, .sh-auth .auth-wrapper::after { display: none; }
.sh-auth .auth-card {
    width: 100%; max-width: 454px; padding: 0; border-radius: 20px; border: 1px solid #ffffffeb;
    color: #414b5b; background: #fffffff2; overflow: hidden;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 0 0 1px #58637b0b, 0 20px 60px -18px #35466635;
}
.sh-auth .sh-auth-content { padding: 28px 34px 30px; }
.sh-auth .brand-header { display: flex; justify-content: center; padding: 0; margin: 0 0 14px; }
.sh-auth .brand-logo { width: 54px; height: 54px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.sh-auth .brand-icon { width: 54px; height: 54px; object-fit: contain; border-radius: 15px; }
.sh-auth .sh-auth-title { margin: 0 0 10px; font-size: 27px; line-height: 1.25; letter-spacing: -.7px; font-weight: 650; color: #20252d; text-align: center; }
.sh-auth .auth-subtitle { color: #7d8695; font-size: 12px; text-align: center; line-height: 1.8; margin-bottom: 25px !important; }
.sh-auth .auth-subtitle a { color: #4e6787; }
.sh-auth .form-floating > .form-control { min-height: 56px; height: 56px; }
.sh-auth .form-floating > .form-control::placeholder { color: transparent; }
.sh-auth .row .btn-outline-primary { min-height: 56px; font-size: 12px; line-height: 1.5; padding: 10px 6px !important; }
.sh-auth .mb-4 { margin-bottom: 18px !important; }
.sh-auth .btn-gradient { min-height: 48px; padding: 12px 18px; }
.sh-auth .btn-passkey { min-height: 46px; }
.sh-auth .form-check { color: #6d7787; font-size: 12px; }
.sh-auth .form-check input { accent-color: #0071e3; }
.sh-auth .form-check label { min-height: 44px; display: inline-flex; align-items: center; }
.sh-auth .image-code { max-width: 100%; max-height: 56px; object-fit: contain; border: 1px solid #e5e8ed; border-radius: 9px; background: #fff; }
.sh-auth .text-center.small { color: #828a98; font-size: 12px; }

/* Query results, loading and empty states remain controlled by the original query flow. */
.sh-query main.container {
    width: calc(100% - 48px); max-width: 900px; margin: 36px auto 70px; padding: 0 0 18px !important;
    background: #fffffff2; border: 1px solid #ffffffeb; border-radius: 20px;
    box-shadow: 0 0 0 1px #58637b0b, 0 24px 60px -20px #35466635; overflow: hidden;
}
.sh-query .sh-query-intro { padding: 34px 34px 16px; }
.sh-query .sh-query-intro h1 { color: #20252d; margin: 0 0 11px; font-size: 29px; font-weight: 650; letter-spacing: -.8px; }
.sh-query .sh-query-intro p { color: #7a8493; font-size: 13px; line-height: 1.8; margin: 0; }
.sh-query main.container > .panel { border: 0; border-radius: 0; background: transparent; box-shadow: none; margin-bottom: 4px; }
.sh-query main.container > .panel > .panel-header { display: none; }
.sh-query main.container > .panel > .panel-body { padding: 12px 34px 28px; }
.sh-query .order-query-form > .d-flex { display: grid !important; grid-template-columns: minmax(0,1fr) 132px; gap: 12px !important; }
.sh-query .order-query-form > .d-flex > div { width: auto !important; min-width: 0; }
.sh-query .order-query-form .form-control { min-height: 48px; padding: 12px 15px; }
.sh-query .btn-search-query { width: 100%; min-height: 48px; font-size: 13px; }
.sh-query :is(.order-results,.no-results,.loading-state) { margin: 0 34px 18px; }
.sh-query :is(.order-results,.no-results,.loading-state) .panel { background: #f8f9fc; border-color: #e8ebf1; border-radius: 14px; box-shadow: none; }

@media(max-width:700px) {
    .sh-site .uc-topbar, .sh-site .sh-auth-nav { padding: calc(12px + env(safe-area-inset-top,0px)) 12px 0; }
    .sh-site .shop-nav, .sh-site .sh-auth-bar { min-height: 58px; padding: 8px 12px; gap: 12px; }
    .sh-site .shop-brand__name, .sh-site .sh-auth-brand { font-size: 12px; }
    .sh-site .shop-brand img, .sh-site .sh-auth-brand img { width: 30px; height: 30px; }
    .sh-site .shop-burger, .sh-site .shop-icon-btn { min-width: 44px; min-height: 44px; }
    .sh-site .sh-auth-bar > div { gap: 14px; }
    .sh-site .sh-auth-bar > div a { font-size: 11px; min-height: 44px; display: inline-flex; align-items: center; }
    .sh-site .sh-auth-bar > div a:first-child { display: none; }
    .sh-auth .auth-wrapper { padding: 24px 12px calc(40px + env(safe-area-inset-bottom,0px)); min-height: calc(100svh - 80px); }
    .sh-auth .sh-auth-content { padding: 26px 23px; }
    .sh-auth .sh-auth-title { font-size: 25px; }
    .sh-site .sh-page-chrome { padding: 0 15px; min-height: 42px; grid-template-columns: 48px minmax(0,1fr) 48px; }
    .sh-site .sh-page-lights { gap: 5px; }
    .sh-site .sh-page-lights i { width: 8px; height: 8px; }
    .sh-query main.container { width: calc(100% - 24px); margin: 24px 12px 60px; }
    .sh-query .sh-query-intro { padding: 28px 22px 14px; }
    .sh-query .sh-query-intro h1 { font-size: 26px; }
    .sh-query .sh-query-intro p { font-size: 12px; }
    .sh-query main.container > .panel > .panel-body { padding: 8px 22px 22px; }
    .sh-query .order-query-form > .d-flex { grid-template-columns: 1fr; }
    .sh-query :is(.order-results,.no-results,.loading-state) { margin: 0 22px 18px; }
}
@media(prefers-reduced-transparency:reduce) {
    .sh-site .shop-nav, .sh-site .sh-auth-bar, .sh-auth .auth-card, .sh-query main.container { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media(prefers-contrast:more) {
    .sh-site .form-control, .sh-site .auth-card, .sh-site .panel { border-color: #8b95a4; }
    .sh-site .form-floating > label, .sh-auth .auth-subtitle, .sh-query .sh-query-intro p { color: #414c5e; }
}
@media(prefers-reduced-motion:reduce) {
    .sh-site *, .sh-site *::before, .sh-site *::after { transition: none !important; animation: none !important; }
    .sh-site :is(button,.btn):active { transform: none; }
}
