/* Форма оформления заказа конфигуратора (тип плательщика, способы оплаты).
   Стили способов оплаты перенесены из protectopaket и ограничены контейнером .kc-cfg. */
.kc-cfg .checkout-type-toggle { display: flex; gap: 18px; margin-bottom: 14px; font-size: 14px; }
.kc-cfg .checkout-type-toggle label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.kc-cfg .checkout-pay-title { margin: 16px 0 10px; font-size: 16px; }
.kc-cfg .checkout-error { color: var(--warn); font-size: 13px; line-height: 1.4; margin: 10px 0; }
.kc-cfg #button_container { margin-top: 10px; width: 100%; }
.kc-cfg #payBtn[disabled] { opacity: .6; cursor: default; }

.kc-cfg .payment-options { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 15px; }
.kc-cfg .payment-option {
  display: flex; justify-content: space-between; flex-direction: column; align-items: flex-start;
  width: 100%; height: auto; padding: 20px 35px; gap: 20px; flex-shrink: 0;
  border-radius: 16px; background: #fff; border: 1px solid #dde0ea; transition: .3s;
  box-shadow: 0 4px 4px rgba(9, 13, 37, .10); box-sizing: border-box; cursor: pointer;
}
.kc-cfg .payment-option-three { max-width: 222px; padding: 20px 25px; }
.kc-cfg .payment-option:has(input[type="radio"]:checked) {
  border: 4px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(113deg, #5660bf 2.49%, #55c2d8 91.67%);
  background-origin: padding-box, border-box; background-clip: padding-box, border-box;
  box-shadow: 0 6px 18px rgba(86, 96, 191, .12);
}
.kc-cfg .payment-option input[type="radio"] { margin-right: 10px; accent-color: #0085e1; }
.kc-cfg .buyer-type-option { display: flex; align-items: center; font-size: 18px; color: #2f485d; font-weight: 500; }
.kc-cfg .payment-title { display: block; font-size: 18px; color: #2f485d; font-weight: 500; }
.kc-cfg .payment-title-16 { font-size: 16px; }
.kc-cfg .payment-description { font-size: 14px; color: #6b7a89; font-weight: 400; }
.kc-cfg .payment-description-14 { font-size: 14px; }
.kc-cfg .icon24 { width: 24px; height: 24px; margin-right: 10px; flex-shrink: 0; }
.kc-cfg .iconTPAY { width: 14px; height: 20px; }
.kc-cfg .block-payment-icon { display: flex; width: 100%; align-items: flex-start; padding-left: 15px; }
.kc-cfg .payment-circle-icon {
  display: flex; align-items: center; justify-content: center; margin-left: -15px;
  width: 60px; height: 60px; flex-shrink: 0; aspect-ratio: 1 / 1;
  border-radius: 1000px; border: 1px solid #e6e7ec; background: #fff;
}
.kc-cfg .payment-circle-icon img { max-width: 70%; max-height: 70%; }
.kc-cfg .payment-circle-icon .icon24 { margin-right: 0; }
.kc-cfg .text-payment-icon { color: #2f485d; font-size: 16px; line-height: 26px; }
.kc-cfg .text-type-option { display: flex; width: 100%; justify-content: flex-end; align-items: flex-end; }
.kc-cfg .style-text-option-payment { color: #2f485d; font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: -.12px; }

@media (max-width: 768px) {
  .kc-cfg .payment-option, .kc-cfg .payment-option-three { max-width: none; width: 100%; padding: 16px 18px; }
  .kc-cfg .payment-circle-icon { width: 40px; height: 40px; }
  .kc-cfg .icon24 { width: 20px; height: 20px; }
}

/* Уведомление «Комплект добавлен в корзину» (кнопка комплекта проекта КС-100): кликабельно, со ссылкой в корзину. */
.kc-cfg .toast.kc-kit-toast.on { pointer-events: auto; z-index: 1000; }
.kc-cfg .toast.kc-kit-toast .kc-kit-toast-link { display: inline-block; margin-left: 12px; color: inherit; font-weight: 600; text-decoration: underline; }

/* Кнопка комплекта КС-100: цена «1 104 592 ₽» не разрывается, знак рубля не уходит на отдельную строку. */
.kc-cfg #projects .project-actions-gold .kc-primary[data-kit-add] { gap: 10px; padding: 14px 14px 14px 16px; }
.kc-cfg [data-kit-add] .kc-kit-label { min-width: 0; }
.kc-cfg [data-kit-add] .kc-kit-price { white-space: nowrap; }

/* «Корзина вашего проекта» под конфигуратором скрыта: корзина — плавающий значок и /cart/. Разметка остаётся в DOM,
   потому что на ней держится app.js (отрисовка позиций, синхронизация с корзиной Битрикс, проверки перед оплатой). */
.kc-cfg #cartCard { display: none !important; }

/* «Сохранить параметры в системе» (Режим владельца, только админ): индикатор загрузки на кнопке. */
.kc-cfg .kc-owner-save { margin-left: 0; }
.kc-cfg .kc-owner-save.is-busy { opacity: .7; cursor: progress; }
.kc-cfg .kc-owner-save.is-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: kc-owner-spin .7s linear infinite; }
@keyframes kc-owner-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kc-cfg .kc-owner-save.is-busy::before { animation-duration: 2s; } }

/* ================= СТРЕЛКИ ↗ (iOS) =================
   Вместо символа ↗ (на iOS — цветной эмодзи) используется SVG: в разметке <svg class="nav-arrow-icon">,
   в псевдоэлементах — маска с background-color: currentColor (цвет и :hover наследуются). */
.kc-cfg .hero .btns .l-btn:first-child:after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  font-size: 0;
  line-height: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='12' y2='4'/%3E%3Cpolyline points='5 4 12 4 12 11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='12' y2='4'/%3E%3Cpolyline points='5 4 12 4 12 11'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kc-cfg #priceCard #addCart:after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='12' y2='4'/%3E%3Cpolyline points='5 4 12 4 12 11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='12' y2='4'/%3E%3Cpolyline points='5 4 12 4 12 11'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kc-cfg .shell-menu-link::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='12' y2='4'/%3E%3Cpolyline points='5 4 12 4 12 11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='12' y2='4'/%3E%3Cpolyline points='5 4 12 4 12 11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kc-cfg.nav-arrow-icon,
.kc-cfg .nav-arrow-icon {
  flex-shrink: 0;
  vertical-align: -2px;
  stroke: currentColor;
}
