/* ==========================================
   Специфичные стили: Калькулятор микстона
   calc-mixton.css
   ========================================== */

/* Быстрые кнопки */
.cc-calc-quick-btns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.cc-calc-quick-btn {
  margin: 0 !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Чипсы правил (11, 12, 10) */
.cc-calc-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .cc-calc-rule-grid {
    grid-template-columns: 1fr;
  }
}

.cc-calc-rule-chip {
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-calc-rule-chip:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.cc-calc-rule-chip--active {
  background: rgba(102, 126, 234, 0.06);
  border-color: #667eea;
}

.cc-calc-rule-chip__title {
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
}

.cc-calc-rule-chip--active .cc-calc-rule-chip__title {
  color: #667eea;
}

.cc-calc-rule-chip__sub {
  font-size: 11px;
  color: #718096;
}

/* Кнопки УГТ (1-10) */
.cc-calc-ugt-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 680px) {
  .cc-calc-ugt-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.cc-calc-ugt-btn {
  background: #fff;
  border: 1px solid #d2d6dc;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.cc-calc-ugt-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.cc-calc-ugt-btn--active {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

/* Выбор цели нейтрализации */
.cc-calc-target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 680px) {
  .cc-calc-target-grid {
    grid-template-columns: 1fr;
  }
}

.cc-calc-target-chip {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  transition: all 0.2s ease;
}

.cc-calc-target-chip small {
  margin-left: auto;
  font-size: 11px;
  color: #a0aec0;
  font-weight: 400;
}

.cc-calc-target-chip:hover {
  border-color: #667eea;
}

.cc-calc-target-chip--active {
  background: rgba(102, 126, 234, 0.06);
  border-color: #667eea;
  color: #667eea;
}

.cc-calc-color-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cc-calc-color-circle--yellow {
  background: #f6e05e;
  border: 1px solid #d69e2e;
}

.cc-calc-color-circle--orange {
  background: #ed8936;
}

.cc-calc-color-circle--red {
  background: #e53e3e;
}

/* Сетка результатов на 4 карточки */
.cc-calc-results__grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .cc-calc-results__grid--4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .cc-calc-results__grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Блок профессионального совета */
.cc-calc-advice-box {
  background: #fff;
  border-left: 4px solid #667eea;
  padding: 14px 16px;
  border-radius: 4px 8px 8px 4px;
  margin-top: 16px;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Таблица шпаргалки */
.cc-calc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
}

.cc-calc-table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.cc-calc-table-custom th {
  background: rgba(102, 126, 234, 0.06);
  color: #667eea;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}

.cc-calc-table-custom td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #2d3748;
  vertical-align: middle;
}

.cc-calc-table-custom tr:last-child td {
  border-bottom: none;
}

.cc-calc-table-custom tr:hover td {
  background: #fafbff;
}