/* Clike.ru — sticker vitrine (web page, not PWA shell) */

html:has(body.stickers-page-open){
  overflow-x:hidden !important;
}

body.stickers-page-open.user-mode:not(.auth-mode):not(.admin-mode){
  background:transparent !important;
  color:var(--text,#f7f7f7);
  padding-bottom:0 !important;
  overflow-x:hidden !important;
  min-height:0 !important;
  -webkit-tap-highlight-color:transparent !important;
}

body.stickers-page-open.user-mode:not(.auth-mode):not(.admin-mode) .wrap{
  background:transparent !important;
  max-width:1280px;
  overflow-x:hidden !important;
  padding-bottom:calc(72px + env(safe-area-inset-bottom,0px)) !important;
}

@media (min-width:900px){
  body.stickers-page-open.user-mode:not(.auth-mode):not(.admin-mode) .wrap{
    padding-top:calc(var(--admin-header-height,68px) + 12px + env(safe-area-inset-top,0px)) !important;
    padding-bottom:calc(80px + env(safe-area-inset-bottom,0px)) !important;
  }
}

@media (max-width:760px){
  body.stickers-page-open.user-mode:not(.auth-mode):not(.admin-mode) .wrap{
    padding:calc(var(--admin-header-height,76px) + 6px + env(safe-area-inset-top,0px)) 12px calc(72px + env(safe-area-inset-bottom,0px)) !important;
  }
}

.stickers-vitrine-head{
  display:block !important;
  visibility:visible !important;
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid rgba(255,153,0,.22);
  border-radius:18px;
  background:radial-gradient(circle at 12% 0%,rgba(255,153,0,.12),transparent 38%),linear-gradient(135deg,rgba(21,21,21,.96),rgba(8,8,8,.95));
  box-shadow:0 12px 32px rgba(0,0,0,.28);
}

.stickers-vitrine-head__title{
  margin:0 0 6px;
  font-size:22px;
  line-height:1.15;
  font-weight:600 !important;
  color:#fff !important;
  letter-spacing:-.02em;
}

.stickers-vitrine-head__lead{
  margin:0;
  font-size:13px;
  line-height:1.45;
  font-weight:400 !important;
  color:rgba(242,246,249,.78) !important;
}

.stickers-contest-banner{
  display:block !important;
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid rgba(255,153,0,.28);
  border-radius:18px;
  background:radial-gradient(circle at 12% 0%,rgba(255,153,0,.14),transparent 40%),linear-gradient(135deg,rgba(21,21,21,.96),rgba(8,8,8,.95));
  box-shadow:0 12px 32px rgba(0,0,0,.28);
}
.stickers-contest-banner__head{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.stickers-contest-banner__back{
  flex:0 0 36px;
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
}
.stickers-contest-banner__back svg{
  width:20px;
  height:20px;
}
.stickers-contest-banner__label{
  margin:0 0 4px;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,196,120,.88);
}
.stickers-contest-banner__title{
  margin:0 0 6px;
  font-size:20px;
  line-height:1.15;
  font-weight:650;
  color:#fff;
}
.stickers-contest-banner__numbers{
  margin:0;
  font-size:13px;
  color:rgba(242,246,249,.82);
}
.stickers-contest-banner__numbers strong{
  color:#fff;
  font-weight:700;
}
.stickers-contest-banner__lead{
  margin:10px 0 0 !important;
  font-size:12px;
  line-height:1.45;
}
.stickers-contest-banner__due{
  margin:6px 0 0;
  font-size:14px;
  color:rgba(255,196,120,.95);
}
.stickers-contest-banner__due strong{
  color:#fff;
  font-size:16px;
}

.stickers-cart-dock,
.stickers-cart-sheet{
  display:none!important;
}

.stickers-selection-bar{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:calc(68px + env(safe-area-inset-bottom,0px));
  z-index:12040;
  width:min(560px,calc(100% - 24px));
  border-radius:16px;
  border:1px solid rgba(255,153,0,.35);
  background:linear-gradient(135deg,rgba(18,18,18,.98),rgba(8,8,8,.98));
  box-shadow:0 16px 40px rgba(0,0,0,.45);
  overflow:hidden;
}
.stickers-selection-bar[hidden]{
  display:none!important;
}
.stickers-selection-bar__progress{
  height:3px;
  background:rgba(255,255,255,.08);
}
.stickers-selection-bar__progress span{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,#ff8a00,#ffb347);
  transition:width .2s ease;
}
.stickers-selection-bar__body{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
}
.stickers-selection-bar__summary{
  flex:1;
  min-width:0;
  display:grid;
  gap:2px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  text-align:left;
  cursor:pointer;
}
.stickers-selection-bar__label{
  font-size:11px;
  color:rgba(255,255,255,.55);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.stickers-selection-bar__summary strong{
  font-size:14px;
  font-weight:750;
}
.stickers-selection-bar__pay{
  flex:0 0 auto;
  white-space:nowrap;
  font-size:13px!important;
  padding:10px 14px!important;
}

.stickers-contest-banner__review{
  display:inline-flex;
  margin-top:10px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(255,153,0,.35);
  background:rgba(255,153,0,.1);
  color:#ffd391;
  font-size:13px;
  cursor:pointer;
}
.stickers-contest-banner__review[hidden]{
  display:none!important;
}

.stickers-checkout__picked{
  margin:0 0 10px;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
}
.stickers-checkout__picked-label{
  margin:0 0 8px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:rgba(255,255,255,.55);
}
.stickers-checkout__picked-list{
  display:grid;
  gap:6px;
}
.stickers-checkout__picked-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
}
.stickers-checkout__picked-item-main{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.stickers-checkout__picked-item-main img{
  width:36px;
  height:36px;
  border-radius:8px;
  object-fit:contain;
  background:rgba(0,0,0,.35);
}
.stickers-checkout__picked-remove{
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:transparent;
  color:#fff;
  cursor:pointer;
}
.stickers-checkout__picked-empty{
  margin:0;
  font-size:12px;
}
.stickers-checkout__overpay,
.stickers-checkout__bonus{
  margin:0 0 10px;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
}
.stickers-checkout__overpay[hidden],
.stickers-checkout__bonus[hidden]{
  display:none!important;
}
.stickers-checkout__overpay-title,
.stickers-checkout__bonus-title{
  margin:0 0 6px;
  font-size:13px;
}
.stickers-checkout__overpay-lead{
  margin:0 0 10px!important;
  font-size:12px;
}
.stickers-checkout__overpay-actions{
  display:grid;
  gap:8px;
}

.stickers-checkout__contest-due{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 8px;
  font-size:13px;
}
.stickers-checkout__contest-due strong{
  color:#ffb347;
}
.stickers-checkout__match-hint{
  margin:0 0 10px;
  padding:8px 10px;
  border-radius:10px;
  font-size:12px;
  line-height:1.45;
}
.stickers-checkout__match-hint.is-warn{
  background:rgba(255,138,0,.1);
  border:1px solid rgba(255,138,0,.24);
  color:#ffd391;
}
.stickers-checkout__match-hint.is-ok{
  background:rgba(34,197,94,.1);
  border:1px solid rgba(34,197,94,.24);
  color:#bbf7d0;
}
.stickers-checkout__add{
  width:100%;
  margin-bottom:8px;
}
.stickers-checkout__wallet{
  width:100%;
  margin-bottom:8px;
}
.stickers-checkout__wallet[hidden]{
  display:none!important;
}
.stickers-checkout__wallet-note{
  margin:0 0 10px;
  font-size:12px;
  line-height:1.4;
}
.stickers-checkout__wallet-note[hidden]{
  display:none!important;
}
.stickers-checkout__pay[hidden]{
  display:none!important;
}

.stickers-checkout__consent{
  margin:0 0 10px;
  font-size:12px;
  line-height:1.4;
}
.stickers-checkout__consent a{
  color:#ffb347;
}
.stickers-checkout__status{
  margin:10px 0 0;
  font-size:12px;
  text-align:center;
}
.stickers-checkout__status.is-error{
  color:#fca5a5;
}

.stickers-vitrine-head__pwa-note{
  margin:10px 0 0 !important;
  font-size:12px !important;
  line-height:1.4 !important;
  font-weight:400 !important;
  color:rgba(255,196,120,.92) !important;
}

.stickers-page{
  max-width:1240px;
  margin:0 auto;
  padding:0 16px 8px;
  color:var(--text,#f7f7f7);
  overflow:visible;
}

.stickers-page > .stickers-vitrine-head{
  margin-top:0;
}

.stickers-collection{
  margin:0 0 22px;
  overflow:visible;
}

.stickers-collection:last-child{
  margin-bottom:0;
}

.stickers-collection__label{
  margin:0 0 8px;
  padding:0 2px;
  font-size:12px;
  font-weight:500 !important;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--muted,#aaa);
}

.stickers-grid-scroll{
  overflow:visible;
  padding:3px 1px 4px;
}

.stickers-grid{
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:10px 6px;
  width:100%;
  min-width:0;
}

.sticker-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  padding:3px;
  margin:0;
  min-width:0;
  background:transparent !important;
  border:none;
  box-shadow:none;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent !important;
  tap-highlight-color:transparent;
  touch-action:manipulation;
  transition:transform .15s ease;
  box-sizing:border-box;
}

.sticker-item:hover{
  transform:translateY(-1px);
}

.sticker-item.is-selected{
  transform:translateY(-1px);
}

.sticker-item:active,
.sticker-item:focus,
.sticker-item:focus-visible{
  outline:none !important;
  background:transparent !important;
  box-shadow:none !important;
}

.sticker-item::selection,
.sticker-item *::selection{
  background:transparent;
}

.sticker-item.is-selected .sticker-slot,
.sticker-item:focus-visible .sticker-slot{
  box-shadow:0 0 0 2px rgba(255,122,0,.78);
  border-radius:10px;
}

.sticker-slot{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:72px;
  height:72px;
  flex:0 0 72px;
  margin:0 auto;
  padding:0;
  background:transparent !important;
  border:none;
  box-shadow:none;
  border-radius:0;
  overflow:visible;
}

.sticker-img{
  display:block;
  width:72px;
  height:72px;
  max-width:100%;
  max-height:72px;
  object-fit:contain;
  object-position:center;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  outline:none;
  pointer-events:none;
  -webkit-user-drag:none;
  user-select:none;
}

.sticker-img-missing{
  display:flex;
  align-items:center;
  justify-content:center;
  width:72px;
  height:72px;
  color:var(--muted,#888);
  font-size:10px;
  font-weight:400 !important;
  text-align:center;
}

.sticker-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  margin-top:6px;
  gap:2px;
}

.stickers-page .sticker-price{
  display:block;
  margin:0;
  padding:0;
  background:none;
  border:none;
  color:var(--orange2,#ff9f1a) !important;
  font-size:11px;
  font-weight:400 !important;
  line-height:1.25;
  white-space:nowrap;
}

.stickers-page .sticker-title{
  display:block;
  width:100%;
  margin:0;
  padding:0 1px;
  font-size:11px;
  line-height:1.25;
  color:rgba(247,247,247,.88) !important;
  font-weight:400 !important;
  text-align:center;
  word-break:break-word;
}

.stickers-checkout{
  position:fixed;
  inset:0;
  z-index:100500;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  box-sizing:border-box;
  pointer-events:none;
}
.stickers-checkout.is-open{
  pointer-events:auto;
}

.stickers-checkout.is-open,
.stickers-checkout:not([hidden]){
  display:flex !important;
}

.stickers-checkout[hidden]:not(.is-open){
  display:none !important;
}

.stickers-checkout__backdrop{
  position:absolute;
  inset:0;
  margin:0;
  padding:0;
  border:0;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  cursor:pointer;
}

.stickers-checkout__panel{
  position:relative;
  z-index:1;
  width:min(100%,380px);
  max-height:min(92vh,calc(100dvh - 32px));
  overflow:auto;
  padding:20px 18px 18px;
  border-radius:22px;
  border:1px solid rgba(255,153,0,.24);
  background:
    radial-gradient(circle at 12% 0%,rgba(255,153,0,.14),transparent 42%),
    linear-gradient(180deg,rgba(24,24,24,.98),rgba(8,8,8,.98));
  box-shadow:0 24px 64px rgba(0,0,0,.48);
  text-align:center;
}

.stickers-checkout__close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  margin:0;
  padding:0;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.stickers-checkout__close:hover,
.stickers-checkout__close:focus-visible{
  border-color:rgba(255,153,0,.45);
  background:rgba(255,153,0,.12);
  outline:none;
}

.stickers-checkout__preview{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:140px;
  margin:0 0 14px;
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}

.stickers-checkout__preview img{
  width:120px;
  height:120px;
  object-fit:contain;
  background:transparent;
}

.stickers-checkout__title{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.2;
  font-weight:600 !important;
  color:#fff !important;
  letter-spacing:-.02em;
}

.stickers-checkout__unit{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0 0 18px;
}

.stickers-checkout__unit-label{
  font-size:12px;
  line-height:1.3;
  color:rgba(242,246,249,.62);
  font-weight:400 !important;
}

.stickers-checkout__unit strong{
  font-size:18px;
  line-height:1.2;
  color:var(--orange2,#ff9f1a) !important;
  font-weight:500 !important;
}

.stickers-checkout__qty{
  margin:0 0 16px;
  padding:14px 14px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  text-align:left;
}

.stickers-checkout__qty-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}

.stickers-checkout__qty-label{
  font-size:13px;
  line-height:1.3;
  color:rgba(242,246,249,.82);
  font-weight:500 !important;
}

.stickers-checkout__qty-input{
  width:64px;
  min-height:36px;
  margin:0;
  padding:6px 8px;
  border-radius:12px;
  border:1px solid rgba(255,153,0,.35);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:16px;
  font-weight:600;
  line-height:1.2;
  text-align:center;
  -moz-appearance:textfield;
}

.stickers-checkout__qty-input::-webkit-outer-spin-button,
.stickers-checkout__qty-input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.stickers-checkout__qty-input:focus{
  outline:none;
  border-color:rgba(255,153,0,.72);
  box-shadow:0 0 0 3px rgba(255,122,0,.16);
}

.stickers-checkout__qty-track{
  --stickers-qty-thumb:22px;
  --stickers-qty-track-h:6px;
  box-sizing:border-box;
  width:100%;
  padding:0 calc(var(--stickers-qty-thumb) / 2);
}

.stickers-checkout__qty-range{
  display:block;
  width:100%;
  height:var(--stickers-qty-thumb);
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  outline:none;
  -webkit-appearance:none;
  appearance:none;
  cursor:pointer;
}

.stickers-checkout__qty-range::-webkit-slider-runnable-track{
  height:var(--stickers-qty-track-h);
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,153,0,.28),rgba(255,255,255,.1));
}

.stickers-checkout__qty-range::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:var(--stickers-qty-thumb);
  height:var(--stickers-qty-thumb);
  margin-top:calc((var(--stickers-qty-track-h) - var(--stickers-qty-thumb)) / 2);
  border-radius:50%;
  border:2px solid #fff;
  background:linear-gradient(135deg,var(--orange,#ff7a00),var(--orange2,#ff9f1a));
  box-shadow:0 4px 14px rgba(255,122,0,.45);
  cursor:pointer;
}

.stickers-checkout__qty-range::-moz-range-track{
  height:var(--stickers-qty-track-h);
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,153,0,.28),rgba(255,255,255,.1));
}

.stickers-checkout__qty-range::-moz-range-thumb{
  width:var(--stickers-qty-thumb);
  height:var(--stickers-qty-thumb);
  border-radius:50%;
  border:2px solid #fff;
  background:linear-gradient(135deg,var(--orange,#ff7a00),var(--orange2,#ff9f1a));
  box-shadow:0 4px 14px rgba(255,122,0,.45);
  cursor:pointer;
}

.stickers-checkout__qty-range:focus{
  outline:none;
}

.stickers-checkout__qty-range:focus-visible::-webkit-slider-thumb{
  box-shadow:0 0 0 3px rgba(255,122,0,.28),0 4px 14px rgba(255,122,0,.45);
}

.stickers-checkout__total{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
  padding:0 2px;
  font-size:14px;
  color:rgba(242,246,249,.72);
  font-weight:400 !important;
}

.stickers-checkout__total strong{
  font-size:22px;
  line-height:1.15;
  color:#fff !important;
  font-weight:600 !important;
}

.stickers-checkout__pay{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  margin:0;
  padding:0 16px;
  border-radius:16px;
  font-size:15px;
  font-weight:800 !important;
  letter-spacing:.01em;
}

.stickers-checkout__pay:disabled{
  opacity:.45;
  cursor:not-allowed;
}

body.stickers-checkout-open{
  overflow:hidden !important;
}

@media (max-width:640px){
  .stickers-checkout{
    align-items:flex-end;
    padding:0;
  }

  .stickers-checkout__panel{
    width:100%;
    max-height:min(88dvh,100%);
    border-radius:22px 22px 0 0;
    padding:18px 16px calc(16px + env(safe-area-inset-bottom,0px));
  }

  .stickers-checkout__preview img{
    width:108px;
    height:108px;
  }

  .stickers-checkout__title{
    font-size:18px;
  }
}

@media (max-width:1024px){
  .stickers-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}

@media (max-width:640px){
  .stickers-vitrine-head{
    padding:12px 14px;
    border-radius:16px;
  }
  .stickers-vitrine-head__title{font-size:19px}
  .stickers-page{padding:0 12px 8px}
  .stickers-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 8px;
  }
  .sticker-slot,
  .sticker-img,
  .sticker-img-missing{
    max-width:64px;
    width:64px;
    height:64px;
  }
}

@media (min-width:1025px){
  body.stickers-page-open.device-desktop .stickers-grid-scroll{
    overflow:visible;
  }
}
