*,
*::before,
*::after {
  box-sizing: border-box;
}

.product-options-column {
  flex: 1;
  min-width: 400px;
  max-width: 400px;
  background: #222434;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

/* Контейнер всех опций */
#optionsContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Блок группы */
.group-block {

  border-radius: 0px;
  padding: 5px;

}

.group-block h4 {
  color: #fff;
  font-size: 20px;
  margin-top: -10px;
  margin-bottom: 8px;
  border-top: 1px solid #333;
  padding-bottom: 8px;
}


/* ==================== CHECKBOX ==================== */
.checkbox-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e1e2f;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.checkbox-line:hover {
  background: #2b2b3f;
}

.checkbox-line input[type="checkbox"] {
  margin-right: 12px;
  accent-color: #6b46c1;
  transform: scale(1.2);
}

.checkbox-label {
  flex: 1;
  color: white;
  font-weight: 500;
}

.checkbox-price {
  color: #bbb;
  font-weight: 500;
  margin-left: auto;
}


/* ==================== RADIO ==================== */
.radio-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.radio-button span {
  background: #1e1e2f;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.radio-button span:hover {
  background: #2e2e4a;
  color: #fff;
  border-color: #6b46c1;
  transform: scale(1.05);
}


.radio-button span.active,
.radio-button input:checked + span {
  background: #6b46c1;
  color: #fff;
  border-color: #6b46c1;
}

/* ==================== QUANTITY ==================== */
.quantity-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quantity-slider {
  width: 100%;
  height: 40px;
  accent-color: #6b46c1;
  border-radius: 5px;
}

.quantity-count {
  width: 120px;
  padding: 10px 14px;
  font-size: 1.1rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1e1e2f;
  color: #fff;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.quantity-count:hover,
.quantity-count:focus {
  border-color: #6b46c1;
  box-shadow: 0 0 5px #6b46c1;
  outline: none;
}

.quantity-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #aaa;
}

.quantity-message {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: #21b45942;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #c8e6c9;
}


/* ==================== RANGE CALCULATOR ==================== */
.range-calculator {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.range-slider {
  height: 6px;
  background: #333;
  border-radius: 4px;
  margin: 8px 0;
  position: relative;
}

.range-slider .noUi-connect {
  background: #6b46c1;
}

.range-slider .noUi-target {
  border: none;
  box-shadow: none;
}

.range-slider .noUi-handle {
  background: #fff;
  border: 2px solid #6b46c1;
  height: 18px;
  width: 18px;
  top: -6px;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  cursor: grab;
}

.range-slider .noUi-handle:hover {
  background: #e0d9ff;
}

.range-values {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.range-input {
  background: #1e1e2f;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px 14px;
  width: 100px;
  font-size: 1.1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.range-input:hover,
.range-input:focus {
  border-color: #6b46c1;
  box-shadow: 0 0 5px #6b46c1;
  outline: none;
}

.range-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #888;
  padding: 0 2px;
}


/* ==================== TEXTBLOCK ==================== */
.textblock-content {
  font-size: 1rem;
  color: #ddd;
  background: #1e1e2f;
  padding: 10px;
  border-radius: 8px;
  border-left: 4px solid #6b46c1;
}


.checkbox-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e1e2f;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  gap: 10px;
}

.checkbox-line input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #6b46c1;
}



/* ==================== DROPDOWN ==================== */


.custom-dropdown {
  position: relative;
  width: 100%;
}

.selected {
  background-color: #1f1f2e;
  padding: 10px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-price {
  margin-left: 8px;
  color: #ccc;
  white-space: nowrap;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  margin-left: 8px;
  display: inline-block;
  border: solid #aaa;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(-135deg);
}

.dropdown-list {
  padding: 0;
  margin: 0;
  
  position: absolute;
  background-color: #1f1f2e;
  border: 1px solid #555;
  border-radius: 6px;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
  display: none;
  flex-direction: column;
  left: 0;
  top: 100%;
  box-sizing: border-box;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  width: 100%;
}



.dropdown-item:hover {
  background-color: #3f3f5a;
}

.dropdown-item-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-item-price {
  margin-left: 12px;
  white-space: nowrap;
}

.dropdown-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-item-price {
  flex-shrink: 0;
  margin-left: 12px;
  color: #bbb;
  white-space: nowrap;
}




.selected-price {
  margin-left: 10px;
  color: #bbb;
  white-space: nowrap;
}




#price-sticky-block {
  margin-bottom: 0px;
  position: sticky;
  bottom: 0px;
  background: #222434;
  padding: 5px;
  border-radius: 0px;
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 400px;
  min-width: 280px;
  margin-left: -20px;
}

#totalPriceDisplay {
  font-size: 30px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 2px;
}

#price-sticky-block,
#price-sticky-block * {
  line-height: 1.15;
}

#price-sticky-block h4 {
  font-size: 15px;
  margin: 2px 0 0 0;
  padding: 0;
  line-height: 1.18;
}

#price-sticky-block strong {
  font-size: 14px;
  line-height: 1.12;
}

#price-sticky-block .eta-wrapper {
  margin-bottom: 5px;
  margin-top: 0;
  padding: 0;
}

#price-sticky-block .add-to-cart {
  margin-top: 4px !important;
}

.add-to-cart {
  padding: 12px 20px;
  font-size: 18px;
  background-color: #1abc9c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.add-to-cart:hover {
  background-color: #16a085;
}


.product-options-column form {
  flex-grow: 1;
}

.product-options-column button {
  margin-top: 1rem;
  background: #5b5ee1;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1f1f1f;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px #00000033;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  display: none;
}

.in-cart {
  background-color: #28a745;
  color: white;
}

#addToCartButton.in-cart {
  background-color: #28a745;
  color: #fff;
  border: none;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #26ffff;
  color: rgb(0, 0, 0);
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgb(9, 243, 243);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  font-size: 18px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  display: none;
}

#price-sticky-block {
  width: 100%;
  max-width: 400px;
  margin-left: -4px;
}




.rank-calculator {
  margin-top: 20px;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  overflow-x: auto;
}

.rank-selects-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.rank-imgs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  width: 100%;
  margin-bottom: 4px;
}

.rank-selects-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  justify-content: center;
}

.rank-select {
  min-width: 140px;
  background: #222645;
  border: 1px solid #3b4080;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  padding: 10px 16px;
  appearance: none;
  outline: none;
  transition: border 0.2s;
}

.rank-select:focus {
  border: 1.5px solid #8566ff;
}

.rank-preview-img {
  height: 50px;
  width: 50px;
  border-radius: 7px;
  object-fit: contain;
  margin: 0 2px;
}

.range-arrow {
  font-size: 32px;
  color: #836aff;
  margin: 0 6px;
  font-weight: bold;
  vertical-align: middle;
}

.rank-select-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  pointer-events: none;
  border: solid #aa9cff;
  border-width: 0 2.5px 2.5px 0;
  padding: 2.5px;
  background: transparent !important;
  transition: transform 0.3s;
  z-index: 3;
}
.rank-select-wrapper.open .rank-select-arrow {
  transform: translateY(-50%) rotate(-135deg);
}

.rank-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 220px;
}

.custom-text-block {
  margin: 20px 0 10px 0;
  padding: 18px 24px;
  background: linear-gradient(90deg, #242d34 60%, #20283c 100%);
  border-radius: 6px;
  color: #e8f9fa;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  position: relative;
  box-shadow: 0 2px 16px 0 rgba(21, 27, 36, 0.12);
  display: block;
}

.custom-text-block strong,
.custom-text-block b {
  font-weight: 700;
}

.custom-text-block::before {
  content: "";
  display: block;
  position: absolute;
  left: 0; top: 15px; bottom: 15px;
  width: 4px;
  border-radius: 2px;
  background: #43ec81;
}

@media (max-width: 600px) {
  .custom-text-block {
    font-size: 16px;
    padding: 14px 12px;
  }
}

/* Сделать кнопки компактными, в линию и чуть меньше */
/* Более специфичный селектор */
.calendar-group-block .calendar-date-btn,
.calendar-group-block .calendar-slot-btn {
  background: #5056c9 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 4px 12px !important;
  font-size: 13px !important;
  min-width: 0 !important;
  min-height: 28px !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: background .18s, color .18s, border-color .18s;
  outline: none !important;
  margin-bottom: 0 !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  display: inline-block !important;
}

.calendar-group-block .calendar-date-btn.active,
.calendar-group-block .calendar-slot-btn.active {
  background: #232642 !important;
  color: #8dc8ff !important;
  border: 2px solid #4096ee !important;
}

.calendar-group-block .calendar-date-btn:hover:not(.active),
.calendar-group-block .calendar-slot-btn:hover:not(.active) {
  background: #313863 !important;
  color: #c1e2ff !important;
}


/* Select для календаря */
.calendar-group-block .calendar-date-select {
  background: #232642 !important;
  color: #b2c5e5 !important;
  border: 2px solid #232642 !important;
  border-radius: 7px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-family: inherit !important;
  outline: none !important;
  margin-left: 7px !important;
  margin-top: 15px !important;
  min-width: 70px !important;
  height: 28px !important;
}

/* Выбранная дата-время */
.calendar-group-block .calendar-selected-label {
  margin-top: 8px !important;
  color: #7eb7ff !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.calendar-group-block .calendar-dates-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
  width: 100%;
  min-height: 34px; /* гарантированная высота строки */
}

.calendar-group-block .calendar-dates-row {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 0 !important;
}

.your-local-time-label {
  font-size: 13px;
  color: #8dc8ff;
  margin-bottom: 6px;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.calendar-class-select {
  display: inline-block;
  background: #20223a;
  color: #fff;
  border: 1px solid #2b5ff7;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 1rem;
  margin-bottom: 10px;
  outline: none;
  margin-right: 16px;
  transition: border 0.2s, box-shadow 0.2s;
}

.calendar-class-select:focus {
  border-color: #7289da;
  box-shadow: 0 0 0 2px #2b5ff733;
}

label[for="calendar-class-select"], .calendar-group-block label {
  color: #b4b6cd;
  font-size: 0.97rem;
  margin-right: 10px;
  font-weight: 500;
}

.calendar-group-block .calendar-time-blocks {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
  margin-top: 3px !important;
}



/* === Palette Update =========================================== */
:root{
  --nt-primary:#ff9944;
  --nt-primary-dim:#ffb366;
  --nt-accent:#6b46c1;
  --nt-bg-dark:#1a1d26;
  --nt-bg-mid:#222434;
  --nt-bg-light:#2b2b3f;
  --nt-border:rgba(255,255,255,.08);
}

/* Override core colors */
.product-options-column{background:var(--nt-bg-mid);}
.checkbox-line{background:var(--nt-bg-dark);}
.checkbox-line:hover{background:var(--nt-bg-light);}
.checkbox-line input[type="checkbox"]{accent-color:var(--nt-accent);}
.radio-button span{background:var(--nt-bg-dark);border-color:#333;color:#ccc;}
.radio-button span:hover{background:var(--nt-bg-light);border-color:var(--nt-accent);color:#fff;}
.radio-button span.active,.radio-button input:checked+span{background:var(--nt-accent);border-color:var(--nt-accent);}
.quantity-count{background:var(--nt-bg-dark);}
.range-slider .noUi-connect{background:var(--nt-accent);}
.range-slider .noUi-handle{border-color:var(--nt-accent);}
.custom-dropdown .selected{background:var(--nt-bg-dark);}
.dropdown-list{background:var(--nt-bg-dark);}
.dropdown-item:hover{background:var(--nt-bg-light);}
.dropdown-item.selected{background:var(--nt-accent);}

.add-to-cart{background:var(--nt-primary);}
.add-to-cart:hover{background:var(--nt-primary-dim);}



/* ====================== PATCH 2025‑07‑04d ============================
   - Change accent color from purple to orange
   - Make sticky price block full width
   - Enhanced dropdown hover/active states
===================================================================== */

/* 1. Palette: accent → orange */
:root{
  --nt-accent:#ff9944;
}

/* Update components using accent */
.checkbox-line input[type="checkbox"]{accent-color:var(--nt-accent);}
.radio-button span.active,
.radio-button input:checked+span,
.radio-button span:hover{border-color:var(--nt-accent);}
.radio-button span.active,
.radio-button input:checked+span{background:var(--nt-accent);}

.range-slider .noUi-connect{background:var(--nt-accent);}
.range-slider .noUi-handle{border-color:var(--nt-accent);}
.quantity-count:hover,
.quantity-count:focus{border-color:var(--nt-accent);box-shadow:0 0 5px var(--nt-accent);}
.range-input:hover,
.range-input:focus{border-color:var(--nt-accent);box-shadow:0 0 5px var(--nt-accent);}
.dropdown-item.selected{background:var(--nt-accent);color:#fff;}
.rank-select:focus{border:1.5px solid var(--nt-accent);}
.rank-select-arrow{border-color:var(--nt-accent);}
.range-arrow{color:var(--nt-accent);}

/* 2. Sticky price block full width */
#price-sticky-block{
  position:sticky;bottom:0;
  width:calc(100% + 3rem); /* match padding of options column (1.5rem left+right) */
  max-width:none;
  margin-left:-1.5rem;margin-right:-1.5rem;
  border-radius:0 0 10px 10px;
}

/* 3. Dropdown hover effects inside open list */
.dropdown-item{
  transition:background .18s,color .18s;
}
.dropdown-item:hover:not(.selected){
  background:#2b2b3f;
  color:#fff;
}
.custom-dropdown.open .selected{
  border-color:var(--nt-accent);
}

/* 4. Active arrow color */
.dropdown-arrow{border-color:#aaa;}
.custom-dropdown.open .dropdown-arrow{border-color:var(--nt-accent);}



/* ==== Patch: recolor quantity slider, rank select, calendar === */

/* Quantity slider thumb & track */
.quantity-slider::-webkit-slider-thumb{background:var(--nt-accent);}
.quantity-slider::-moz-range-thumb{background:var(--nt-accent);}
.quantity-slider::-ms-thumb{background:var(--nt-accent);}
.quantity-slider::-webkit-slider-runnable-track{background:#333;}
.quantity-slider::-moz-range-track{background:#333;}
.quantity-slider::-ms-track{background:#333;}

/* Rank select arrow & select focus */
.rank-select-arrow{border-color:var(--nt-accent);}
.rank-select:focus{border:1.5px solid var(--nt-accent);}

/* Calendar buttons */
.calendar-group-block button{
  background:var(--nt-accent);
}
.calendar-group-block button:hover{
  background:var(--nt-primary-hover);
}
.calendar-group-block button.active{
  background:var(--nt-primary-dark);
}
.calendar-date-select,
.calendar-class-select{
  background:var(--nt-bg-control);
  color:#fff;
  border:1px solid var(--nt-accent);
  border-radius:8px;
  padding:6px 10px;
}
.calendar-slot-btn.active{
  border:2px solid var(--nt-accent);
}



/* === PATCH 2025‑07‑04e =====================================
   – Fix dropdown visibility
   – Orange calendar buttons
   – Quantity slider track color
   – Mobile stretch (<= 430 px)
=========================================================== */

/* 1. Dropdown list item colors */
.dropdown-list,
.custom-dropdown.open .dropdown-list{
  background:#1e1e2f;
}
.dropdown-item,
.dropdown-item-label,
.dropdown-item-price{
  color:#e8e8e8;
}
.dropdown-item:hover:not(.selected){
  background:#3a3a52;
  color:#fff;
}

/* 2. Quantity slider track accent */
.quantity-slider{
  accent-color:var(--nt-accent);
}
.quantity-slider::-webkit-slider-runnable-track{background:#444;}
.quantity-slider::-moz-range-track{background:#444;}
.quantity-slider::-ms-track{background:#444;}

/* 3. Calendar recolor */
.calendar-group-block .calendar-date-btn,
.calendar-group-block .calendar-slot-btn,
.calendar-group-block .calendar-date-select,
.calendar-group-block .calendar-class-select{
  background:var(--nt-accent)!important;
  color:#fff!important;
}
.calendar-group-block .calendar-date-btn:hover:not(.active),
.calendar-group-block .calendar-slot-btn:hover:not(.active){
  background:var(--nt-primary-hover)!important;
}
.calendar-group-block .calendar-date-btn.active,
.calendar-group-block .calendar-slot-btn.active{
  background:var(--nt-primary-dark)!important;
}

/* 4. Mobile: make options column full width */
@media(max-width:480px){
  .product-options-column{
    max-width:100%!important;
    min-width:0!important;
    width:100%!important;
  }
  #price-sticky-block{
    max-width:none!important;
  }
}



/* === PATCH 2025‑07‑04f ==========================================
   - Uniform dropdown list styling (any <select> & .dropdown-list)
   - Quantity slider track color
================================================================= */

/* 1. Generic select elements (native) */
.product-options-column select{
  background:var(--nt-bg-control);
  color:#fff;
  border:1px solid var(--nt-accent);
  border-radius:8px;
  padding:8px 12px;
  font-family:inherit;
}
.product-options-column select:focus{
  outline:none;
  border-color:var(--nt-primary);
  box-shadow:0 0 4px var(--nt-primary);
}

/* 2. Dropdown list unify */
.dropdown-list,
.calendar-date-select,
.calendar-class-select,
.rank-select{
  background:var(--nt-bg-control)!important;
  color:#fff!important;
  border:1px solid var(--nt-accent)!important;
}
.dropdown-item{color:#e8e8e8;}
.dropdown-item:hover:not(.selected){background:#3a3a52;color:#fff;}
.dropdown-item.selected{background:var(--nt-accent);color:#fff;}

/* 3. Quantity slider track */
.quantity-slider{
  width:100%;
  height:8px;
  border-radius:4px;
  background:#444;
  outline:none;
  accent-color:var(--nt-accent);
}
.quantity-slider::-webkit-slider-runnable-track{background:#444;border-radius:4px;height:8px;}
.quantity-slider::-moz-range-track{background:#444;border-radius:4px;height:8px;}
.quantity-slider::-ms-track{background:#444;border-radius:4px;height:8px;color:transparent;}
.quantity-slider::-webkit-slider-thumb{margin-top:-5px;} /* center thumb */
.quantity-slider::-moz-range-thumb{}

/* 4. Calendar dropdown inside .calendar-group-block */
.calendar-group-block select{
  background:var(--nt-bg-control);
  color:#fff;
  border:1px solid var(--nt-accent);
  border-radius:8px;
  padding:6px 10px;
}
.calendar-group-block select:focus{
  outline:none;border-color:var(--nt-primary);box-shadow:0 0 4px var(--nt-primary);
}



/* === PATCH 2025‑07‑04g ==========================================
   - Native <select> dropdown options themed
   - Quantity slider thicker + extra spacing
=============================================================== */

/* 1. Native select option styling */
.product-options-column select,
.calendar-group-block select,
.rank-select{
  background:#1e1e2f;
  color:#fff;
  border:1px solid var(--nt-accent);
  border-radius:8px;
}

.product-options-column select option,
.calendar-group-block select option,
.rank-select option{
  background:#1e1e2f;
  color:#fff;
}
.product-options-column select option:hover,
.calendar-group-block select option:hover,
.rank-select option:hover,
.product-options-column select option:checked,
.calendar-group-block select option:checked,
.rank-select option:checked{
  background:var(--nt-accent);
  color:#fff;
}

/* 2. Quantity slider track & spacing */
.quantity-slider{
  height:10px;
  margin-bottom:8px;
}
.quantity-slider::-webkit-slider-runnable-track,
.quantity-slider::-moz-range-track,
.quantity-slider::-ms-track{
  height:10px;
  background:#444;
  border-radius:5px;
}
.quantity-slider::-webkit-slider-thumb{margin-top:-6px;} /* center thumb */

/* message spacing */
.quantity-message{margin-top:12px;}



/* === PATCH 2025‑07‑04h ==========================================
   - Dark background for dropdown headers & items
   - Thicker quantity slider (12px)
   - Calendar selects/buttons styled like rank-select (dark bg)
================================================================ */

/* 1. Custom dropdown header */
.custom-dropdown .selected{
  background:#1e1e2f !important;
  border:1px solid var(--nt-accent) !important;
  color:#fff !important;
}

/* 1a. Dropdown list default item bg */
.dropdown-list .dropdown-item{
  background:#1e1e2f;
}
.dropdown-item.selected{background:var(--nt-accent);}

/* 2. Quantity slider thicker */
.quantity-slider{
  height:12px;
}
.quantity-slider::-webkit-slider-runnable-track,
.quantity-slider::-moz-range-track,
.quantity-slider::-ms-track{
  height:12px;
  background:#444;
  border-radius:6px;
}

/* 3. Calendar dropdowns & buttons */
.calendar-group-block .calendar-date-select,
.calendar-group-block .calendar-class-select,
.calendar-group-block button{
  background:#1e1e2f !important;
  color:#fff !important;
  border:1px solid var(--nt-accent) !important;
  border-radius:8px !important;
}
.calendar-group-block button:hover:not(.active){
  background:#3a3a52 !important;
}
.calendar-group-block button.active{
  background:var(--nt-accent) !important;
  color:#fff !important;
}

/* 4. Mobile full width up to 600px */
@media(max-width:600px){
  .product-options-column{
    width:100%!important;
  }
}



/* === PATCH 2025‑07‑04i ==========================================
   - Force dark dropdown option list (WebKit & Firefox)
   - Robust quantity slider redesign (orange track + thick)
================================================================= */

/* 1. Option list background (WebKit) */
select option{
  background:#1e1e2f!important;
  color:#fff!important;
}

/* 2. Quantity slider redesigned */
.quantity-slider{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:14px;
  border-radius:7px;
  background:#444;
  outline:none;
  margin-bottom:12px;
  cursor:pointer;
}

/* Track highlight (Chrome) */
.quantity-slider::-webkit-slider-runnable-track{
  height:14px;
  border-radius:7px;
  background:#444;
}
.quantity-slider::-moz-range-track{
  height:14px;
  border-radius:7px;
  background:#444;
}
.quantity-slider::-ms-track{
  height:14px;
  background:#444;
  border-radius:7px;
  color:transparent;
}

/* Thumb */
.quantity-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--nt-accent);
  border:2px solid #fff;
  margin-top:-4px; /* center */
}
.quantity-slider::-moz-range-thumb{
  width:22px;height:22px;border-radius:50%;background:var(--nt-accent);border:2px solid #fff;
}
.quantity-slider::-ms-thumb{
  width:22px;height:22px;border-radius:50%;background:var(--nt-accent);border:2px solid #fff;
}

/* 3. Spacing between slider and message ensured */
.quantity-message{margin-top:14px;}

.quantity-slider{
  --slider-fill: #ffc94d;           /* цвет заливки по умолчанию */
  background: linear-gradient(90deg,
              var(--slider-fill) 0%, var(--slider-fill) 0%, #2f3141 0%) !important;
}
/* === quantity-slider fill via CSS var ======================= */
.quantity-slider{
  --fill: 0%;                        /* ← сюда будем писать процент */
  height: 8px;
  width: 100%;
  border-radius: 4px;
  background:#444;                   /* цвет НЕ-заполненной части (Firefox) */
  -webkit-appearance:none;
  cursor:pointer;
}

/* Chrome / Edge / Safari track */
.quantity-slider::-webkit-slider-runnable-track{
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg,
              var(--nt-accent) var(--fill),
              #444 var(--fill));
}

/* Chrome thumb */
.quantity-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:18px;height:18px;border-radius:50%;
  background:var(--nt-accent);border:2px solid #fff;
  margin-top:-5px;                  /* центрируем по треку */
}

/* Firefox – свой progress */
.quantity-slider::-moz-range-track{background:#444;border-radius:4px;height:8px;}
.quantity-slider::-moz-range-progress{
  background:var(--nt-accent);height:8px;border-radius:4px;
}

/* === Calculator (single slider) =================================== */
.calculator-control { position:relative; display:flex; flex-direction:column; gap:6px; }
.calculator-control .quantity-slider { width:100%; }
.calculator-control .quantity-minmax { display:flex; justify-content:space-between; font-size:12px; opacity:.75; }
.calculator-control input.calculator-count.invalid { border:1px solid #d9534f; background:#2b1e20; }
.calculator-control.reversed .quantity-minmax span:first-child { order:0; }
.calculator-control.reversed .quantity-minmax span:last-child { order:1; }
/* заливка слайдера (использует кастомное свойство --fill) */
.quantity-slider {
  background:linear-gradient(90deg,#577bff var(--fill,0%),#2e364a var(--fill,0%));
  height:6px;
  border-radius:4px;
  outline:none;
  -webkit-appearance:none;
}
.quantity-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:16px;height:16px;border-radius:50%;
  background:#fff;border:2px solid #577bff;cursor:pointer;
}
.quantity-slider::-moz-range-thumb{
  width:16px;height:16px;border-radius:50%;
  background:#fff;border:2px solid #577bff;cursor:pointer;
}

