/* ====== Общий стиль карточек калькуляторов ====== */
#ctc-calculator,
#napkin-calculator,
#rtc-calculator{
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

#ctc-calculator .ns-price-from,
#napkin-calculator .ns-price-from,
#rtc-calculator .ns-price-from{
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

#ctc-calculator .ns-price-xl,
#napkin-calculator .ns-price-xl,
#rtc-calculator .ns-price-xl{
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ====== Сетка и поля (единый вид) ====== */
.ctc-fields, .napkin-fields, .rtc-fields{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ctc-field, .napkin-field, .rtc-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ctc-field label,
.napkin-field label,
.rtc-field label{
  font-weight: 600;
  font-size: 13px;
  color:#000;
}

.ctc-field input[type="number"],
.napkin-field select,
.rtc-field input[type="number"],
.ns-select{
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  outline: none;
  font-weight:400;
}
.ctc-field input[type="number"]:focus,
.napkin-field select:focus,
.rtc-field input[type="number"]:focus,
.ns-select:focus{
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}

/* Подпись-пояснение под полем */
.ctc-note{
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* Плитки выбора (если понадобятся): размеры/обработка */
.napkin-options{ margin-top: 10px; }
.napkin-label{ display:block; font-weight:600; margin-bottom:6px; }
.napkin-tile{ display:inline-block; margin:4px; cursor:pointer; }
.napkin-tile input{ display:none; }
.napkin-tile span{
  display:inline-block; padding:8px 14px; border:1px solid #ddd; border-radius:6px; transition:all .2s ease;
  background:#fff;
}
.napkin-tile input:checked + span{
  background:#16a34a; color:#fff; border-color:#16a34a;
}

/* ====== Адаптив: в 2 колонки на широких экранах ====== */
@media (min-width: 640px){
  .ctc-fields, .napkin-fields, .rtc-fields{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}


.ns-spec-row p {margin:0!important;}

.ns-faq {
  margin-top: 60px;
}

.ns-faq h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

.ns-faq-item {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.ns-faq-q {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 0;
  transition: color 0.2s;
}

.ns-faq-q:hover {
  color: #008000;
}

.ns-faq-a {
  display: none;
  margin-top: 8px;
  color: #444;
}


/* Низ карточки: сетка 2 колонки */
.ns-mid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
@media (min-width: 1024px) { .ns-mid { grid-template-columns: 2fr 1fr; } }

.ns-desc h2, .ns-specs h2 { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.ns-desc-content { font-size: 15px; line-height: 1.6; color: #374151; }

/* Преимущества: «чипсы» с галочкой */
.ns-features { list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 768px) { .ns-features { grid-template-columns: 1fr; } }
.ns-features li {
  border: 1px solid #e6e9ef; background: #fff; border-radius: 12px;
  padding: 10px 12px; font-size: 14px; display: flex; align-items: center; gap: 8px;
}

/* Таблица характеристик */
.ns-specs-table { width: 100%; border: 1px solid #e6e9ef; border-radius: 12px;
  overflow: hidden; border-collapse: separate; font-size: 14px; }
.ns-specs-table td { padding: 10px; vertical-align: top; }
.ns-specs-table tr:nth-child(odd){ background: #f9fafb; }

/* Спрятанные строки по умолчанию */
.ns-spec-row.is-hidden { display: none; }

/* Кнопка-ссылка «Показать все характеристики» */
.ns-link-toggle {
  margin-top: 10px; background: none; border: none; color: #0ea765;
  padding: 0; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}

/* Инфо-панель справа */
.ns-info { border: 1px solid #e6e9ef; border-radius: 12px; padding: 14px; font-size: 14px; }


/* ====== ОБЩИЙ КОНТЕЙНЕР ПРАВОГО БЛОКА ====== */
.summary.entry-summary {
  color: #0f172a;
  font-family: 'Karla', sans-serif;
}

/* Заголовок и подпись */
.summary.entry-summary .product_title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 6px 0;
}
.summary.entry-summary .ns-usage {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 8px;
}

/* Мета (SKU/категория) */
.summary.entry-summary .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: #6b7280;
  margin: 6px 0 12px 0;
}
.summary.entry-summary .product_meta .sku { opacity: 0.9; }

/* ====== Карточка с калькулятором/кнопкой ====== */
.ns-price-panel {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 20px;
  padding: 18px;
  margin: 14px 0;
  box-shadow: 0 6px 24px rgba(2,6,23,0.06), 0 1px 2px rgba(2,6,23,0.04);
}

/* Цена */
.ns-price-from, .ctc-dia {
  color: #64748b;
  font-size: 14px;
  margin: 4px 0 6px;
  font-weight:400;
}
.ns-price-xl {
  font-size: 32px;
  font-weight: 400;
  color: #0f172a;
}

/* Строка калькулятора */
.ns-calc-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}
.ns-field {
  flex: 1 1 240px;
}
.ns-field span {
  display: block;
  font-size: 14px;
  color: #475569;
  margin-bottom: 6px;
}
.ns-field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  font-size: 16px;
  color:#000;
}
.ns-field input[type="number"]:focus {
  border-color: #a3e3c5;
  box-shadow: 0 0 0 4px #e6f7ef;
}
.ns-total-side {
  min-width: 200px;
  text-align: right;
}
.ns-total-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}
.ns-total-value {
  font-size: 28px;
  font-weight: 700;
}

/* ====== Кнопки ====== */
.ns-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.single_add_to_cart_button.button {
  background: #0ea765 !important;
  border-color: #0ea765 !important;
  color: #fff !important;
  padding: 12px 22px !important;
  border-radius: 14px !important;
}
.single_add_to_cart_button.button:hover {
  background: #0b8a54 !important;
}
.single_add_to_cart_button.button:active {
  background: #087346 !important;
}
.ns-oneclick {
  background: #f97316;
  color: #fff !important;
  border-radius: 14px;
  padding: 12px 18px;
  text-decoration: none;
}
.ns-wa {
  color: #10b981 !important;
  text-decoration: underline;
}


/* ====== Бейджи ====== */
.ns-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  padding: 0;
  list-style: none;
}
.ns-badges li {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  padding: 12px;
  align-items: center;
}
@media (max-width: 768px) {
  .ns-badges { grid-template-columns: 1fr; }
}

/* ====== Линия с WhatsApp ====== */
.ns-qline {
  margin-top: 12px;
  font-size: 14px;
  color: #6b7280;
}

/* базовая нормализация внутри карточки */
.ns-price-panel, .ns-price-panel * { box-sizing: border-box; }

/* верхняя цена */
.ns-price-from { width: 100%; color:#64748b; font-size:14px; margin:4px 0 2px; }
.ns-price-xl { font-size:32px; font-weight:700; color:#0f172a; }

/* ряд калькулятора: поле слева, итог справа */
.ns-calc-row {
  display:flex; align-items:flex-end; justify-content:space-between;
   flex-wrap:wrap;
}
.ns-field { flex:1 1 320px; min-width:240px; }
#ctc-calculator { gap:12px; flex-wrap:wrap; }
#ctc-calculator p { margin:0 0 6px 0; order:2; margin-left:auto; text-align:right; color:#6b7280; font-size:14px; }
#ctc-calculator p strong { display:block; font-size:28px; font-weight:700; color:#0f172a; }
#ctc-calculator label { order:1; display:block; width:100%; }

.ns-total-side { min-width:220px; text-align:right; }
.ns-total-label { font-size:13px; color:#6b7280; margin-bottom:4px; }
.ns-total-value { font-size:28px; font-weight:700; }

/* ряд с количеством и кнопками */
.ns-cta { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

/* количество — компактный бокс */
.ns-price-panel .quantity{ display:inline-flex; align-items:center; height:44px; border:1px solid #e6e9ef; border-radius:12px; overflow:hidden; margin:0; }
.ns-price-panel .quantity .qty{ width:72px; height:44px; border:none; text-align:center; font-size:16px; outline:none; }

/* основная кнопка */
.ns-price-panel .single_add_to_cart_button.button{
  height:44px; line-height:44px; padding:0 22px !important;
  background:#0ea765 !important; border-color:#0ea765 !important; color:#fff !important;
  border-radius:14px !important; box-shadow:0 1px 0 rgba(0,0,0,.04), inset 0 -2px 0 rgba(0,0,0,.08);
}
.ns-price-panel .single_add_to_cart_button.button:hover{ background:#0b8a54 !important; }
.ns-price-panel .single_add_to_cart_button.button:active{ background:#087346 !important; }

/* «1 клик» — не огромный блок, а кнопка */
.ns-oneclick{
  display:inline-flex; align-items:center; height:44px; padding:0 18px;
  background:#f97316; color:#fff !important; border-radius:14px; text-decoration:none;
}

/* бейджи — сетка 3 колонки (на мобилке в столбик) */
.ns-badges{ display:grid; column-gap:10px; row-gap:10px; margin-top:14px; padding:0; list-style:none; }

@media (max-width:768px){ .ns-badges{ grid-template-columns:100%; } }