html:not([data-web-auth-state='authorized']):not([data-web-auth-state='guest']) .mini-app,
html:not([data-web-auth-state='authorized']):not([data-web-auth-state='guest']) .catalog-service-screen,
html:not([data-web-auth-state='authorized']):not([data-web-auth-state='guest']) .web-navbar,
html:not([data-web-auth-state='authorized']):not([data-web-auth-state='guest']) .web-navbar__back-row { display: none !important; }
/* Published stylesheets remain available to older open WebViews. Explicitly
   override their former authenticated-only display rule for the guest shell. */
html[data-web-auth-state='guest'] .mini-app:not([hidden]) { display: block !important; }
html[data-web-auth-state='guest'] .web-navbar:not([hidden]) { display: flex !important; }
html[data-web-auth-state='guest'] .web-navbar__back-row:not([hidden]) { display: flex !important; }
html[data-web-auth-state='guest'] .catalog-service-screen:not([hidden]) { display: flex !important; }
/* Older published CSS reserved space for Back over the section header. Back
   now belongs to the top navbar, so controls share the product-grid gutter. */
@media (max-width: 619px) {
  html[data-web-layout='true'][data-web-back-visible='true'] .section-header { padding-left: 0; }
  html[data-web-layout='true'][data-web-back-visible='true'] .store-screen > .section-screen__content > .section-header,
  html[data-web-layout='true'][data-web-back-visible='true'] .category-screen > .section-screen__content > .section-header,
  html[data-web-layout='true'][data-web-back-visible='true'] .screen-loading__shell > .section-header { padding-left: var(--app-inline-gutter); }
}
.web-login {
  position: fixed; inset: 0; z-index: 2000; background: #191B1E;
  height: 100%; width: 100%; display: flex; flex-direction: column; overflow-y: auto;
  box-sizing: border-box; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  color: #F4F5F7; font-family: Inter, system-ui, sans-serif; text-align: center;
}
.web-login[hidden] { display: none; }
.web-login__close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left));
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #444950;
  border-radius: 50%; background: #30343A; color: #E1E5EA; cursor: pointer;
}
.web-login__close[hidden] { display: none; }
.web-login__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.web-login__close:focus-visible { outline: 2px solid #48AEF2; outline-offset: 3px; }
.web-login__context { margin: -12px auto 24px; max-width: 280px; color: #A4ABB7; font-size: 14px; line-height: 1.5; }
.web-login__card { width: min(100%, 320px); margin: auto; flex-shrink: 0; }
.web-login__logo { display: block; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 16px; object-fit: contain; }
.web-login__title { margin: 0 0 28px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.7px; }
.web-login__notice { max-width: 300px; margin: 14px auto 0; color: #A4ABB7; font-size: 12px; line-height: 1.55; }
.web-login__notice p { margin: 0; }
.web-login__notice p + p { margin-top: 6px; }
.web-login__notice a { color: #B5C2D3; text-decoration-color: #6A7E93; text-underline-offset: 3px; }
.web-login__notice a:hover { color: #B9E6FF; }
.web-login__notice a:focus-visible { outline: 2px solid #B9E6FF; outline-offset: 3px; border-radius: 3px; }
.web-login__button {
  position: relative; isolation: isolate; overflow: hidden;
  box-sizing: border-box; width: min(100%, 270px); min-height: 48px; margin: 0 auto; border: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px;
  background-color: #48AEF2; color: #FFF; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 140ms ease, opacity 140ms ease;
}
.web-login__button::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: -50%; left: 0; width: 72%; height: 200%;
  background: linear-gradient(90deg, #FFFFFF00, #FFFFFF14 24%, #FFFFFF40 50%, #FFFFFF14 76%, #FFFFFF00);
  transform: translateX(-125%) skewX(-18deg); opacity: 0;
  animation: web-login-sheen 4s linear infinite;
}
@keyframes web-login-sheen {
  0% { transform: translateX(-125%) skewX(-18deg); opacity: 0; }
  5%, 70% { opacity: 1; }
  75%, 100% { transform: translateX(155%) skewX(-18deg); opacity: 0; }
}
.web-login__button svg, .web-login__button-text { position: relative; z-index: 1; }
.web-login__button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.web-login__button:hover:not(:disabled) { background-color: #5EB8F3; }
.web-login__button:active:not(:disabled) { background-color: #359DDF; }
.web-login__button:focus-visible { outline: 3px solid #B9E6FF; outline-offset: 4px; }
.web-login__button:disabled { opacity: .6; cursor: default; }
.web-login[data-state='authenticating'] .web-login__button:disabled,
.web-login[data-state='recovering'] .web-login__button:disabled,
.web-login[data-state='verifying'] .web-login__button:disabled { opacity: 1; }
.web-login__bot-link { display: inline-block; margin-top: 22px; color: #A4ABB7; font-size: 14px; line-height: 1.5; font-weight: 500; text-decoration: none; }
.web-login__bot-link:hover { color: #91D2FF; text-decoration: underline; }
.web-login__legal { display: block; width: fit-content; margin: 16px auto 0; padding: 6px 4px; color: #A4ABB7; font-size: 13px; line-height: 1.5; text-decoration: none; }
.web-login__legal:hover { color: #F4F5F7; text-decoration: underline; }
.web-login__legal:focus-visible { outline: 2px solid #B9E6FF; outline-offset: 3px; border-radius: 4px; }
.web-login__bot-link:focus-visible { outline: 2px solid #B9E6FF; outline-offset: 5px; border-radius: 3px; }
.web-login__status { min-height: 40px; margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: #A4ABB7; }
.web-login__status[hidden] { display: none; }
.web-login__bottom { flex-shrink: 0; width: min(100%, 420px); margin: 28px auto 0; }
.web-login__bottom .web-login__notice { max-width: 360px; margin: 0 auto; }
.web-login__bottom .site-information { width: 100%; margin-top: 20px; }
.web-login__toast {
  position: fixed; z-index: 1000; top: max(20px, env(safe-area-inset-top)); left: 50%;
  box-sizing: border-box; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
  background: #131414; color: #FFF; font-size: 15px; line-height: 22px; font-weight: 500;
  pointer-events: none; transform: translateX(-50%); animation: web-login-toast 3s ease-in-out both;
}
@keyframes web-login-toast {
  0%, 100% { opacity: 0; transform: translate(-50%, -100px); }
  10%, 90% { opacity: 1; transform: translate(-50%, 0); }
}
/* Keep the initial background empty until the session or login SDK is ready. */
.web-login[data-state='checking'] .web-login__card > :not(noscript),
.web-login[data-state='checking'] .web-login__bottom,
.web-login[data-state='preparing'] .web-login__card > :not(noscript),
.web-login[data-state='preparing'] .web-login__bottom { display: none; }
.web-login__noscript { display: block; margin-top: 18px; color: #A4ABB7; font-size: 13px; line-height: 1.5; }
.web-session-logout {
  display: block; margin: 16px 0 0; padding: 10px 0; border: 0; background: transparent;
  color: #A4ABB7; font: inherit; font-size: 13px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.web-session-logout:focus-visible { outline: 2px solid #48AEF2; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .web-login__button { transition: none; }
  .web-login__button::before { display: none; animation: none; }
  .web-login__toast { animation: none; }
}
