/* ==========================================
   Специфичные стили: Цветовая баня
   calc-bath.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-bath-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .cc-calc-bath-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .cc-calc-bath-grid {
    grid-template-columns: 1fr;
  }
}

.cc-calc-bath-chip {
  background: #ffffff !important;
  border: 1px solid #d2d6dc !important;
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  transition: all 0.2s ease !important;
  outline: none !important;
  text-align: center;
}

.cc-calc-bath-chip:hover {
  background: #f7f9ff !important;
  border-color: #667eea !important;
  transform: translateY(-2px);
}

.cc-calc-bath-chip--active {
  background: #eef2ff !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 1px #667eea !important;
}

.cc-calc-bath-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 2px;
}

.cc-calc-bath-title {
  font-size: 13px;
  font-weight: 700;
  color: #2d3748 !important;
  line-height: 1.2;
}

.cc-calc-bath-chip--active .cc-calc-bath-title {
  color: #667eea !important;
}

.cc-calc-bath-sub {
  font-size: 11px;
  color: #718096 !important;
}

.cc-calc-bath-chip--active .cc-calc-bath-sub {
  color: #4c51bf !important;
}

/* Сетка результатов на 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-bath {
  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-protocol-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 18px 20px;
}

.cc-calc-protocol-title {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
}

.cc-calc-protocol-list {
  padding-left: 20px;
  margin: 0;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.6;
}

.cc-calc-protocol-list li {
  margin-bottom: 4px;
}

/* Блок профессионального совета */
.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;
}