/* ==========================================
   Специфичные стили: Смешивание красок
   calc-mixer.css
   ========================================== */

/* Сетка полей */
.cc-calc-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 680px) {
  .cc-calc-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Быстрые кнопки */
.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;
  background: #ffffff !important;
  border: 1px solid #d2d6dc !important;
  color: #4a5568 !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.cc-calc-quick-btn:hover {
  background: #f7f9ff !important;
  border-color: #667eea !important;
  color: #667eea !important;
}

/* Чипсы выбора пропорций */
.cc-calc-ratio-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 680px) {
  .cc-calc-ratio-chips {
    grid-template-columns: 1fr;
  }
}

.cc-calc-ratio-chip {
  background: #ffffff !important;
  border: 1px solid #d2d6dc !important;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.cc-calc-ratio-chip strong {
  font-size: 16px;
  color: #2d3748 !important;
}

.cc-calc-ratio-chip small {
  font-size: 12px;
  color: #718096 !important;
}

.cc-calc-ratio-chip:hover {
  background: #f7f9ff !important;
  border-color: #667eea !important;
}

.cc-calc-ratio-chip--active {
  background: #eef2ff !important;
  border-color: #667eea !important;
}

.cc-calc-ratio-chip--active strong {
  color: #667eea !important;
}

/* Плашка предпросмотра цвета смеси */
.cc-calc-mix-preview-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 22px;
}

@media (max-width: 600px) {
  .cc-calc-mix-preview-card {
    flex-direction: column;
    text-align: center;
  }
}

.cc-calc-mix-swatch {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(255,255,255,0.8);
  transition: background 0.3s ease;
}

.cc-calc-mix-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-calc-mix-sublabel {
  font-size: 11px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-calc-mix-title {
  font-size: 26px;
  font-weight: 800;
  color: #2d3748;
  line-height: 1.1;
}

.cc-calc-mix-desc {
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}

/* Сетка результатов на 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-badge-mix {
  display: inline-flex;
  align-items: center;
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

/* Блок профессионального совета */
.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;
}

/* Сетка быстрых пресетов */
.cc-calc-preset-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .cc-calc-preset-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .cc-calc-preset-grid {
    grid-template-columns: 1fr;
  }
}

.cc-calc-preset-btn {
  background: #ffffff !important;
  border: 1px solid #d2d6dc !important;
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
  transition: all 0.2s ease !important;
  outline: none !important;
  text-align: center;
}

.cc-calc-preset-btn:hover {
  background: #f7f9ff !important;
  border-color: #667eea !important;
  transform: translateY(-2px);
}

.cc-calc-preset-btn--active {
  background: #eef2ff !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 1px #667eea !important;
}

.cc-calc-preset-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 2px;
}

.cc-calc-preset-btn strong {
  font-size: 13px;
  color: #2d3748 !important;
}

.cc-calc-preset-btn--active strong {
  color: #667eea !important;
}

.cc-calc-preset-btn small {
  font-size: 11px;
  color: #718096 !important;
}

.cc-calc-preset-btn strong,
.cc-calc-preset-btn span {
  color: #2d3748 !important;
}

.cc-calc-preset-btn--active strong,
.cc-calc-preset-btn--active span {
  color: #667eea !important;
}

/* ==========================================
   Динамический блок: предупреждение, копирование, ссылки
   ========================================== */
.cc-mix-extras {
  margin-top: 18px;
}

.cc-mix-warning {
  background: #fffaf0;
  border: 1px solid #fbd38d;
  border-left: 4px solid #dd6b20;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #744210;
  margin-bottom: 16px;
}

.cc-mix-warning a {
  color: #667eea;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cc-mix-warning a:hover {
  text-decoration: underline;
}

.cc-mix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.cc-mix-action-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #d2d6dc;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cc-mix-action-btn:hover {
  background: #f7f9ff;
  border-color: #667eea;
  color: #667eea;
}

.cc-mix-links-title {
  font-size: 13px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.cc-mix-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-mix-links a {
  font-size: 13px;
  color: #4a5568;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cc-mix-links a:hover {
  border-color: #667eea;
  color: #667eea;
}

.cc-mix-seo-link a {
  color: #667eea;
  font-weight: 600;
}

/* Печать: только расчёт */
@media print {
  .cc-mix-actions,
  .cc-mix-warning,
  .cc-mix-links-wrap,
  .cc-calc-lead-card,
  .cc-calc-cta,
  .cc-calc-seo,
  .cc-calc-preset-grid,
  .cc-calc-reset-btn {
    display: none !important;
  }
}

.cc-calc-preset-dot {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 0 0 2px rgba(255,255,255,0.8);
}