/* Колесо фортуны — попап. Класть в /local/wheel/wheel.css. Цвета темы: #F28C1E, #1C2222. */
.cc-wheel-overlay{position:fixed;inset:0;z-index:100000;background:rgba(28,34,34,.6);display:none;align-items:center;justify-content:center;padding:16px}
.cc-wheel-overlay.is-open{display:flex}
.cc-wheel-lock{overflow:hidden}
.cc-wheel-box{position:relative;background:#fff;border-radius:16px;max-width:640px;width:100%;max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);font-family:inherit;color:#1C2222;animation:ccWheelIn .25s ease}
@keyframes ccWheelIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.cc-wheel-close{position:absolute;top:10px;right:12px;border:0;background:none;font-size:30px;line-height:1;color:#8a9095;cursor:pointer;padding:4px 8px}
.cc-wheel-close:hover{color:#1C2222}
.cc-wheel-body{padding:32px 28px 28px;text-align:center}
.cc-wheel-kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#F28C1E;font-weight:700;margin-bottom:8px}
.cc-wheel-title{font-size:26px;line-height:1.2;font-weight:700;margin:0 0 12px;color:#1C2222}
.cc-wheel-text{font-size:15px;line-height:1.5;color:#4a5055;margin:0 0 20px}
.cc-wheel-note{font-size:12px;color:#8a9095;margin:12px 0 0}
.cc-wheel-rules{display:block;margin:14px 0 0;font-size:12px;color:#8a9095;text-decoration:underline}
.cc-wheel-rules:hover{color:#F28C1E}
.cc-wheel-note.is-error{color:#c0392b}
.cc-wheel-btn{display:inline-block;border:0;border-radius:8px;background:#F28C1E;color:#fff;font-size:16px;font-weight:700;padding:14px 32px;cursor:pointer;text-decoration:none;transition:background .15s}
.cc-wheel-btn:hover{background:#d97a12;color:#fff;text-decoration:none}
.cc-wheel-btn:disabled{background:#c9ccd0;cursor:default}
.cc-wheel-btn-sm{font-size:13px;padding:8px 14px;width:100%}
.cc-wheel-wrap{position:relative;display:block;width:max-content;margin:16px auto 20px}
.cc-wheel-canvas{display:block;border-radius:50%;box-shadow:0 0 0 6px #fff,0 0 0 8px #e6e8ea;transform:rotate(0deg)}
.cc-wheel-pointer{position:absolute;top:-10px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:28px solid #1C2222;z-index:2;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3))}
.cc-wheel-sectors{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;margin:0 0 14px}
.cc-wheel-sectors-label{flex:0 0 100%;font-size:12px;color:#8a9095;margin-bottom:2px}
.cc-wheel-sector{border:1px solid #e6e8ea;border-radius:999px;background:#fff;color:#1C2222;font-size:12px;padding:5px 10px;cursor:pointer}
.cc-wheel-sector:hover{border-color:#F28C1E}
.cc-wheel-sector.is-active{background:#F28C1E;border-color:#F28C1E;color:#fff;cursor:default}
.cc-wheel-sector:disabled{opacity:.5}
.cc-wheel-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:0 0 10px;text-align:left}
.cc-wheel-count{font-size:13px;color:#4a5055;white-space:nowrap}
.cc-wheel-search{flex:1;min-width:0;max-width:260px;border:1px solid #c9ccd0;border-radius:8px;padding:7px 10px;font-size:13px;font-family:inherit}
.cc-wheel-search:focus{outline:none;border-color:#F28C1E}
.cc-wheel-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 16px;text-align:left;max-height:48vh;overflow:auto;padding-right:4px;align-content:start}
.cc-wheel-card{display:flex;gap:10px;border:1px solid #e6e8ea;border-radius:12px;padding:10px;align-items:flex-start}
.cc-wheel-card.is-picked{border-color:#F28C1E;background:#fff7ee}
.cc-wheel-img{flex:0 0 72px;width:72px;height:72px;border-radius:8px;background:#f4f5f7;overflow:hidden;display:flex;align-items:center;justify-content:center}
.cc-wheel-img img{max-width:100%;max-height:100%;object-fit:contain}
.cc-wheel-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.cc-wheel-name{font-size:13px;line-height:1.3;color:#1C2222;text-decoration:none;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cc-wheel-name:hover{color:#F28C1E}
.cc-wheel-prices{display:flex;flex-direction:column;line-height:1.2}
.cc-wheel-old{font-size:12px;color:#8a9095}
.cc-wheel-new{font-size:16px;color:#F28C1E}
.cc-wheel-tab{position:fixed;left:16px;bottom:16px;z-index:99999;border:0;border-radius:999px;background:#F28C1E;color:#fff;font-weight:700;font-size:14px;padding:10px 18px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25)}
@media (max-width:520px){
  .cc-wheel-body{padding:28px 16px 20px}
  .cc-wheel-title{font-size:22px}
  .cc-wheel-grid{grid-template-columns:1fr;max-height:52vh}
  .cc-wheel-tools{flex-direction:column;align-items:stretch;gap:6px}
  .cc-wheel-search{max-width:none}
  .cc-wheel-tab{left:12px;bottom:12px;font-size:13px;padding:9px 14px}
}
