/* Common geometry; storefront themes retain their own accents and surfaces. */
html[data-site-template="classic"] #productModal:not(.product-modal-split) #modalImageContainer {
  height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
html[data-site-template="classic"] #productModal:not(.product-modal-split) #modalImageWrap {
  width: 100%;
}
html[data-site-template="classic"] #productModal:not(.product-modal-split) #modalImage {
  width: 100%;
  height: auto;
  max-height: 55dvh;
  object-fit: contain;
  transform: none!important;
}
html[data-site-template] .guest-protected-content > .banner-gallery {
  height: auto;
  min-height: 150px;
  aspect-ratio: 2.7 / 1;
}
/* Keep long menus and their account actions scrollable inside the fixed drawer. */
.mobile-nav-drawer {
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.mobile-nav-drawer > :is(.mobile-nav-head, .mobile-nav-links, .mobile-nav-actions) {
  flex-shrink: 0;
}
.mobile-nav-drawer .mobile-nav-language .language-switcher {
  margin: 0;
}
.mobile-nav-drawer .language-switcher__menu {
  top: auto;
  bottom: calc(100% + 8px);
  right: auto;
  left: 0;
}
/* Keep the language control and its dropdown below dialog overlays. */
html[data-site-template] .language-switcher { z-index:100; }
html[data-site-template] .language-switcher__menu { z-index:1; }
html[data-site-template] .admin-link-button::before { border-top-color: #fff; }
html[data-site-template] .gs-badge-active {
  background: #1d2025e6;
  border-color: #ffffff24;
  color: #d7d9df;
  font-weight: 600;
  letter-spacing: normal;
}
/* Shared confirmation buttons, matching the existing replacement dialog. */
html[data-site-template] :is(.modal,.modal-overlay,.priz-modal) :is(.rpl-btn,.sub-modal-btn){display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border-radius:8px;border:1.5px solid rgba(255,255,255,.35);background:rgba(255,255,255,.06);color:#fff;box-shadow:none;font-size:14px;font-weight:600;line-height:1.4}
html[data-site-template] :is(.modal,.modal-overlay,.priz-modal) :is(.rpl-btn,.sub-modal-btn):hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.6);transform:none}
html[data-site-template] :is(button,input,select,textarea) { font-family:inherit; box-sizing:border-box; }
html[data-site-template] :is(.btn,.btn-more,.btn-ghost,.share-btn,.pg-btn,.pg-num,.ref-mini-apply) { display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; line-height:1.3; }
html[data-site-template="classic"] :is(.btn,.btn-more,.btn-ghost,.share-btn,.ref-mini-apply) { min-height:36px; border-radius:12px; font-size:13px; font-weight:700; }
html[data-site-template="classic"] .btn-primary { background:linear-gradient(90deg,#9719ff,#7d17cc); color:#fff; box-shadow:0 6px 18px rgba(151,25,255,.22); }
html[data-site-template="classic"] :is(.pg-btn,.pg-num) { min-width:38px; min-height:38px; border-radius:12px; }
html[data-site-template="classic"] :is(.try-luck-button,.try-luck-button-free) { min-height:46px; padding:12px 24px; border-radius:12px; font-weight:600; }
html[data-site-template="classic"] :is(.popolnenie-button,.logout-button,.transfer-button,.promocode-button) { border-radius:12px; }
html[data-site-template="classic"] .tabs .tab { box-shadow:none; background-clip:padding-box; }
html[data-site-template="classic"] .tabs .tab:is(.active,:hover) { border-color:transparent; }
html[data-site-template] .tabs .tab > i { margin-right:7px; }
html[data-site-template] :is(button,a,input,select,textarea,[role="button"]):focus-visible { outline:2px solid currentColor; outline-offset:3px; }
html[data-site-template] :is(input,select,textarea):focus { outline:none!important; }
html[data-site-template] select { color-scheme:dark; }
html[data-site-template] :is(#productModal,#productModal .modal-content) { scrollbar-width:none; -ms-overflow-style:none; }
html[data-site-template] :is(#productModal,#productModal .modal-content)::-webkit-scrollbar { display:none; width:0; height:0; }
html[data-site-template="classic"] .map-panel::before { inset:0; border-radius:inherit; }
html[data-site-template] :is(.btn,.btn-more,.btn-ghost,.ref-mini-apply):disabled { opacity:.45; cursor:not-allowed; }
@media(max-width:600px) { html[data-site-template] .card-footer { flex-wrap:wrap; } }
