/* =====================================================================
   vautokool.catalog.css
   Общий файл кастомных стилей каталога (магазина) vautokool.ee —
   сюда добавляется любой новый кастомный CSS проекта, не только чекаут.
   Подключается глобально на каждой странице через common/header.php
   (см. vautokool_catalog.ocmod.xml).

   Текущее содержимое — визард оформления заказа + страницы успеха/
   неудачи (классы kkc-*/kks-*). Адаптировано с оригинальной идеи
   чекаута Kullake (kullake.eu): структура классов и логика шагов
   сохранены, светлая тема и цвета переработаны под vautokool.ee.
   ===================================================================== */

/* Палитра проекта (значения захардкожены напрямую в правилах ниже —
   CSS custom properties (var(--...)) в этой инсталляции Journal3
   не резолвятся браузером по неустановленной причине, несмотря на
   корректную отдачу файла; переведено на литералы для надёжности):
   --vk-primary       #004327  основной бренд-цвет (тёмно-зелёный)
   --vk-primary-light #0a6b3f
   --vk-secondary     #303841  тёмный, кнопки/текст
   --vk-accent        #277cd9  инфо-акцент сайта
   --vk-danger        #f50000  ошибка/предупреждение
   --vk-success       #4cb64c
   --vk-bg-card       #ffffff
   --vk-bg-page       #f5f6f7
   --vk-border        #e2e5e8
   --vk-text          #232323
   --vk-text-dim      #6d767d
   --vk-text-faint    #9aa2a8
*/

/* ── Утилиты — переиспользуются везде вместо inline-стилей ──── */
.kkc-hidden { display: none !important; }
.kkc-text-center { text-align: center; }
.kkc-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Обёртка: сетка сайдбар + контент ──────────────────────── */
.kkc-wrap {
    display: grid;
    grid-template-columns: 272px 1fr;
    max-width: 1300px;
    margin: 30px auto 60px;
    padding: 0 20px;
    gap: 0 20px;
    align-items: stretch;
}

.kkc-mobile-bar {
    display: none;
}

/* ── Сайдбар — карточка ─────────────────────────────────────── */
.kkc-sidebar {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 28px 16px;
    background: #ffffff;
    border: 1px solid #e2e5e8;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
    height: -moz-fit-content;
    height: fit-content;
}

.kkc-step-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kkc-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: default;
    transition: background 0.2s;
}

.kkc-step-item--done {
    cursor: pointer;
}

.kkc-step-item--done:hover {
    background: rgba(0, 67, 39, 0.05);
}

.kkc-step-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 2px solid #e2e5e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #9aa2a8;
    transition: all 0.25s;
}

.kkc-step-item--active .kkc-step-circle {
    background: #004327;
    border-color: #004327;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 67, 39, 0.14);
}

.kkc-step-item--done .kkc-step-circle {
    background: rgba(76, 182, 76, 0.12);
    border-color: #4cb64c;
    color: #4cb64c;
}

.kkc-step-item--done .kkc-step-circle svg {
    width: 16px;
    height: 16px;
}

.kkc-step-texts {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 6px;
}

.kkc-step-name {
    font-size: 15px;
    font-weight: 600;
    color: #9aa2a8;
    transition: color 0.25s;
    line-height: 1.25;
}

.kkc-step-item--active .kkc-step-name {
    color: #232323;
    font-weight: 700;
}

.kkc-step-item--done .kkc-step-name {
    color: #6d767d;
}

.kkc-step-sub {
    font-size: 12px;
    color: #9aa2a8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
}

/* ── Продолжить покупки ─────────────────────────────────────── */
.kkc-back-to-shop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e5e8;
}

.kkc-back-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #9aa2a8;
    text-transform: uppercase;
    width: 100%;
}

.kkc-back-divider::before,
.kkc-back-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e5e8;
}

.kkc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #004327;
    border: 1px solid rgba(0, 67, 39, 0.28);
    border-radius: 50px;
    text-decoration: none;
    background: rgba(0, 67, 39, 0.04);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.kkc-back-link:hover {
    background: rgba(0, 67, 39, 0.09);
    border-color: rgba(0, 67, 39, 0.45);
    text-decoration: none;
}

/* ── Основной контент — карточка ────────────────────────────── */
.kkc-main {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 34px 40px;
    min-height: 500px;
    background: #ffffff;
    border: 1px solid #e2e5e8;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ── Панели шагов ───────────────────────────────────────────── */
.kkc-panel {
    display: none;
}

.kkc-panel--active {
    display: block;
    animation: kkc-in 0.28s ease;
}

@keyframes kkc-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kkc-panel-header {
    margin-bottom: 28px;
}

.kkc-panel-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #232323;
    margin: 0;
    letter-spacing: -0.3px;
}

.kkc-panel-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid #e2e5e8;
}

/* ── Кнопки: один базовый класс + модификаторы ───────────────
   Разметка: <button class="kkc-btn kkc-btn--primary [kkc-btn--lg|--sm|--block]">
   Роли модификаторов:
     --primary  — основное действие (акцентный фон)
     --outline  — второстепенное действие (белый фон, рамка)
     --ghost    — минимальное действие ("назад", без фона/рамки)
     --lg/--sm  — крупнее/компактнее базового размера
     --block    — на всю ширину контейнера
   ─────────────────────────────────────────────────────────── */
.kkc-btn {
    display: inline-block;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.kkc-btn:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}

.kkc-btn--primary {
    background: #004327;
    color: #fff;
    border: none;
    padding: 14px 42px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 10px rgba(0, 67, 39, 0.22);
}

.kkc-btn--primary:hover {
    background: #0a6b3f;
    box-shadow: 0 4px 14px rgba(0, 67, 39, 0.3);
    color: #fff;
    text-decoration: none;
}

.kkc-btn--primary:active {
    transform: scale(0.98);
}

.kkc-btn--outline {
    background: #fff;
    color: #6d767d;
    border: 1.5px solid #e2e5e8;
    white-space: nowrap;
}

.kkc-btn--outline:hover {
    border-color: #c8ccd0;
    color: #232323;
    background: #f5f6f7;
}

.kkc-btn--ghost {
    background: transparent;
    color: #6d767d;
    border: none;
    padding: 13px 8px;
    font-weight: 400;
}

.kkc-btn--ghost:hover {
    color: #232323;
}

.kkc-btn--lg { padding: 15px 48px; font-size: 17px; }
.kkc-btn--sm { padding: 11px 18px; font-size: 14px; font-weight: 400; }
.kkc-btn--block { width: 100%; }

/* ── Сообщения об ошибках ───────────────────────────────────── */
.kkc-error {
    background: rgba(245, 0, 0, 0.06);
    border: 1px solid rgba(245, 0, 0, 0.25);
    color: #b30000;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 12px;
}

.kkc-error-msg {
    color: #9aa2a8;
    font-size: 14px;
    padding: 20px 0;
}

/* ── Корзина (шаг 0) ────────────────────────────────────────── */
.kkc-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.kkc-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f5f6f7;
    border: 1px solid #e2e5e8;
    border-radius: 10px;
}

.kkc-cart-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e5e8;
}

.kkc-cart-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kkc-cart-name {
    font-size: 17px;
    font-weight: 600;
    color: #232323;
}

.kkc-cart-opt {
    font-size: 13px;
    color: #6d767d;
}

.kkc-cart-qty {
    font-size: 14px;
    color: #6d767d;
    white-space: nowrap;
}

.kkc-cart-price {
    font-size: 18px;
    font-weight: 700;
    color: #004327;
    white-space: nowrap;
}

.kkc-cart-items--single .kkc-cart-item {
    grid-template-columns: 110px 1fr auto auto;
    gap: 20px;
    padding: 20px;
}

.kkc-cart-items--single .kkc-cart-img {
    width: 110px;
    height: 110px;
}

/* Промокод */
.kkc-promo-wrap {
    border: 1px solid #e2e5e8;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.kkc-promo-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 18px;
    background: #f5f6f7;
    border: none;
    color: #6d767d;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.kkc-promo-toggle:hover {
    background: #eef0f1;
}

.kkc-promo-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s;
}

.kkc-promo-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.kkc-promo-body--open {
    max-height: 120px;
}

.kkc-promo-row {
    display: flex;
    gap: 10px;
    padding: 14px 18px 16px;
}

.kkc-promo-input {
    flex: 1;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
    color: #232323;
    font-size: 14px;
}

.kkc-promo-msg {
    padding: 0 18px 14px;
    font-size: 13px;
    color: #6d767d;
}

.kkc-promo-msg--ok { color: #4cb64c; }
.kkc-promo-msg--error { color: #f50000; }

/* Применённые коды */
.kkc-applied-code {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(76, 182, 76, 0.07);
    border: 1px solid rgba(76, 182, 76, 0.3);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #232323;
}

.kkc-applied-label { flex: 1; }
.kkc-applied-label strong { color: #4cb64c; }

.kkc-applied-remove {
    background: transparent;
    border: none;
    color: #9aa2a8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.kkc-applied-remove:hover {
    color: #f50000;
    background: rgba(245, 0, 0, 0.06);
}

/* Итог корзины */
.kkc-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #e2e5e8;
    border-bottom: 1px solid #e2e5e8;
    margin-bottom: 28px;
    font-size: 20px;
    color: #232323;
    font-weight: 600;
}

.kkc-cart-total strong {
    font-weight: 800;
    color: #004327;
    font-size: 24px;
}

/* ── Авторизация (шаг 0) ────────────────────────────────────── */
.kkc-auth { margin-top: 4px; }

.kkc-auth-logged {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kkc-greeting {
    font-size: 17px;
    color: #232323;
}

.kkc-auth-btns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.kkc-auth-btns .kkc-btn {
    flex: 1;
}

.kkc-link {
    font-size: 13px;
    color: #277cd9;
    text-decoration: none;
}

.kkc-link:hover { text-decoration: underline; }

/* ── Модалка входа ────────────────────────────────────────── */
.kkc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 26, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.kkc-modal-overlay--open {
    display: flex;
    animation: kkc-fade-in 0.2s ease;
}

@keyframes kkc-fade-in { from { opacity: 0; } to { opacity: 1; } }

.kkc-modal {
    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 14px;
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.kkc-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: #9aa2a8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.kkc-modal-close:hover { color: #232323; }

.kkc-modal-title {
    font-size: 21px;
    font-weight: 700;
    color: #232323;
    margin: 0 0 22px;
}

/* ── Форм-поля с floating label ─────────────────────────────── */
.kkc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

.kkc-field--full { grid-column: 1 / -1; }

.kkc-field {
    position: relative;
    margin-bottom: 0;
}

.kkc-field input,
.kkc-field select,
.kkc-promo-input {
    width: 100%;
    height: 56px;
    padding: 22px 14px 7px;
    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
    color: #232323;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.kkc-field select { padding-top: 14px; }

.kkc-field input:focus,
.kkc-field select:focus {
    border-color: #004327;
    box-shadow: 0 0 0 3px rgba(0, 67, 39, 0.12);
}

.kkc-field label {
    position: absolute;
    top: 19px;
    left: 15px;
    font-size: 14px;
    color: #9aa2a8;
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}

.kkc-field input:focus ~ label,
.kkc-field input:not(:placeholder-shown) ~ label {
    top: 7px;
    font-size: 11px;
    color: #004327;
}

.kkc-field-note {
    font-size: 12px;
    color: #9aa2a8;
    margin-top: -8px;
    margin-bottom: 16px;
    padding-left: 2px;
}

.kkc-comment-wrap { position: relative; margin-top: 14px; }

.kkc-comment-wrap label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 14px;
    color: #9aa2a8;
    pointer-events: none;
    transition: top 0.15s, font-size 0.15s, color 0.15s;
}

.kkc-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
    padding: 21px 15px 9px;
    color: #232323;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 76px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.kkc-textarea:focus {
    border-color: #004327;
    box-shadow: 0 0 0 3px rgba(0, 67, 39, 0.1);
}

.kkc-textarea:focus ~ label,
.kkc-textarea:not(:placeholder-shown) ~ label {
    top: 6px;
    font-size: 11px;
    color: #004327;
}

/* ── Переключатель Частное лицо / Организация ───────────────── */
.kkc-toggle-tabs {
    display: inline-flex;
    background: #f5f6f7;
    border: 1px solid #e2e5e8;
    border-radius: 40px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.kkc-toggle-tab {
    border: none;
    background: transparent;
    color: #6d767d;
    padding: 9px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.kkc-toggle-tab--active {
    background: #004327;
    color: #fff;
}

/* ── Карточки методов (получение / оплата) ───────────────────*/
.kkc-shipping-methods,
.kkc-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.kkc-method-card {
    display: grid;
    grid-template-columns: 52px 1fr 26px;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1.5px solid #e2e5e8;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    -webkit-user-select: none;
    user-select: none;
}

.kkc-method-card:hover {
    border-color: #c8ccd0;
    background: #f5f6f7;
}

.kkc-method-card--selected {
    border-color: #004327;
    background: rgba(0, 67, 39, 0.04);
    box-shadow: 0 0 0 1px #004327;
}

.kkc-method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa2a8;
}

.kkc-method-card--selected .kkc-method-icon { color: #004327; }

.kkc-method-icon svg { width: 28px; height: 28px; }

.kkc-method-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kkc-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
}

.kkc-method-price {
    font-size: 13px;
    color: #6d767d;
}

.kkc-method-address {
    color: #004327;
    font-weight: 600;
}

.kkc-method-terms {
    font-size: 12px;
    color: #9aa2a8;
}

.kkc-method-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e2e5e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s;
}

.kkc-method-card--selected .kkc-method-check {
    background: #004327;
    border-color: #004327;
    color: #fff;
}

/* Значок способа оплаты — текстовый бейдж (у vautokool нет отдельных
   логотипов платёжных методов, все "mypayment"-варианты и ESTO
   показываются одинаково простым бейджем с кодом/названием) */
.kkc-pay-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #303841;
    background: #f5f6f7;
    border: 1px solid #e2e5e8;
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.kkc-payment-methods .kkc-method-card { grid-template-columns: 70px 1fr 26px; }

.kkc-payment-methods .kkc-method-name {
    white-space: normal;
    word-break: break-word;
}

.kkc-method-icon.kkc-pay-icon {
    width: 62px;
    height: 40px;
    background: #f5f6f7;
    border-radius: 6px;
    border: 1px solid #e2e5e8;
    box-sizing: border-box;
}

.kkc-method-card--selected .kkc-method-icon.kkc-pay-icon {
    box-shadow: 0 0 0 2px #004327;
}

/* ── Загрузчик ──────────────────────────────────────────────── */
.kkc-loading-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9aa2a8;
    font-size: 14px;
    padding: 24px 0;
}

.kkc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e5e8;
    border-top-color: #004327;
    border-radius: 50%;
    animation: kkc-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes kkc-spin { to { transform: rotate(360deg); } }

/* ── Полноэкранный лоадер ─────────────────────────────────── */
.kkc-loader {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.kkc-loader--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kkc-loader-coin {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid rgba(0, 67, 39, 0.15);
    border-top-color: #004327;
    animation: kkc-spin 0.9s linear infinite;
}

/* ── Шаг: Подтверждение ─────────────────────────────────────── */
.kkc-confirm-summary { margin-bottom: 20px; }

.kkc-confirm-block {
    background: #f5f6f7;
    border: 1px solid #e2e5e8;
    border-radius: 10px;
    padding: 8px 16px;
    margin-bottom: 6px;
}

.kkc-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid #e2e5e8;
}

.kkc-confirm-row:last-child { border-bottom: none; }

.kkc-confirm-row span:first-child {
    color: #6d767d;
    flex-shrink: 0;
}

.kkc-confirm-row span:last-child {
    color: #232323;
    font-weight: 500;
    text-align: right;
}

.kkc-confirm-products .kkc-confirm-row span:last-child {
    color: #004327;
    font-weight: 700;
}

.kkc-total-discount span:last-child {
    color: #4cb64c;
    font-weight: 600;
}

.kkc-required-mark {
    color: #f50000;
    font-weight: 700;
    margin-left: 2px;
}

.kkc-newsletter-wrap { margin: 10px 0 0; }
.kkc-agree-wrap { margin: 20px 0 0; }
.kkc-captcha-wrap { margin: 16px 0 0; }
.kkc-captcha-wrap fieldset { border: 0; padding: 0; margin: 0; }
.kkc-captcha-wrap legend { display: none; }
.kkc-captcha-wrap label { display: none; }
.kkc-captcha-wrap .form-group { margin: 0; }
.kkc-captcha-wrap .col-sm-10,
.kkc-captcha-wrap .col-sm-2 { padding: 0; width: auto; float: none; }
.kkc-captcha-wrap .text-danger { color: #f50000; font-size: 13px; margin-top: 6px; }
.kkc-captcha-wrap .g-recaptcha { transform-origin: left top; }
@media (max-width: 400px) {
    .kkc-captcha-wrap .g-recaptcha { transform: scale(0.9); }
}

.kkc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #6d767d;
    line-height: 1.5;
}

.kkc-checkbox { display: none; }

.kkc-checkbox-box {
    width: 19px;
    height: 19px;
    min-width: 19px;
    border: 2px solid #e2e5e8;
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s;
    position: relative;
    top: 1px;
}

.kkc-checkbox:checked + .kkc-checkbox-box {
    background: #004327;
    border-color: #004327;
}

.kkc-checkbox:checked + .kkc-checkbox-box::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}

.kkc-checkbox-label a { color: #277cd9; text-decoration: none; }
.kkc-checkbox-label a:hover { text-decoration: underline; }

.kkc-agree-wrap--error .kkc-checkbox-box {
    border-color: #f50000;
    box-shadow: 0 0 0 2px rgba(245, 0, 0, 0.18);
}

/* ── Заметка о получении (приду сам / email) на шаге подтверждения ── */
.kkc-pickup-note {
    background: rgba(0, 67, 39, 0.05);
    border: 1px solid rgba(0, 67, 39, 0.18);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #232323;
    margin-bottom: 16px;
}

/* ── Мобильная версия ───────────────────────────────────────── */
@media (max-width: 768px) {
    .kkc-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        padding: 0 12px;
    }

    .kkc-sidebar { display: none; }

    .kkc-main {
        grid-column: 1;
        grid-row: 2;
        padding: 20px 16px 32px;
    }

    .kkc-mobile-bar {
        display: block;
        grid-column: 1;
        grid-row: 1;
        padding: 16px 0 12px;
        border-bottom: 1px solid #e2e5e8;
        margin-bottom: 4px;
    }

    .kkc-mobile-steps {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin-bottom: 8px;
    }

    .kkc-mobile-step {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 2px solid #e2e5e8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        color: #9aa2a8;
        flex-shrink: 0;
    }

    .kkc-mobile-step--active {
        background: #004327;
        border-color: #004327;
        color: #fff;
    }

    .kkc-mobile-step--done {
        background: rgba(76, 182, 76, 0.12);
        border-color: #4cb64c;
        color: #4cb64c;
    }

    .kkc-mobile-step--done svg { width: 11px; height: 11px; }

    .kkc-mobile-sep {
        height: 1px;
        width: 18px;
        background: #e2e5e8;
    }

    .kkc-mobile-title {
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: #6d767d;
    }

    .kkc-panel-header h2 { font-size: 20px; }

    .kkc-cart-item { grid-template-columns: 56px 1fr; }
    .kkc-cart-qty { display: none; }
    .kkc-cart-price { grid-column: 2; font-size: 13px; }

    .kkc-form-grid { grid-template-columns: 1fr; }
    .kkc-field--full { grid-column: 1; }

    .kkc-panel-footer { flex-wrap: wrap; }
    .kkc-panel-footer .kkc-btn--primary { flex: 1; }
    .kkc-panel-footer .kkc-btn--ghost { order: -1; }
}

/* =====================================================================
   Страница успеха / неудачи оформления заказа
   ===================================================================== */
.kks-wrap {
    max-width: 720px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.kks-card {
    background: #ffffff;
    border: 1px solid #e2e5e8;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 40px 36px;
    text-align: center;
}

.kks-check-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.kks-check-icon--ok {
    background: rgba(76, 182, 76, 0.12);
    color: #4cb64c;
}

.kks-check-icon--error {
    background: rgba(245, 0, 0, 0.08);
    color: #f50000;
}

.kks-wrap .kkc-panel-header { margin-bottom: 18px; text-align: center; }
.kks-wrap .kkc-panel-header h2 { font-size: 24px; }

.kks-greeting {
    font-size: 17px;
    color: #232323;
    margin: 0 0 6px;
}

.kks-order-number {
    font-size: 14px;
    color: #6d767d;
    margin: 0 0 24px;
}

.kks-thanks {
    font-size: 16px;
    color: #232323;
    margin: 0 0 24px;
}

.kks-section {
    text-align: left;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e5e8;
}

.kks-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #232323;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kks-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kks-item {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #232323;
    padding: 6px 0;
}

.kks-item-name { color: #6d767d; }
.kks-item-total { font-weight: 600; }

.kks-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e5e8;
    font-size: 17px;
    font-weight: 700;
    color: #232323;
}

.kks-total strong { color: #004327; font-size: 20px; }

.kks-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kks-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.kks-step-num {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: #004327;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kks-step-body strong {
    display: block;
    font-size: 15px;
    color: #232323;
    margin-bottom: 2px;
}

.kks-step-body p {
    font-size: 14px;
    color: #6d767d;
    margin: 0;
    line-height: 1.5;
}

.kks-address {
    font-weight: 600;
    color: #004327 !important;
}

.kks-callout {
    background: rgba(0, 67, 39, 0.05);
    border: 1px solid rgba(0, 67, 39, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #232323;
    margin-top: 8px;
}

.kks-message {
    font-size: 15px;
    color: #232323;
    line-height: 1.6;
}

.kks-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.kks-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f5f6f7;
    border: 1px solid #e2e5e8;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.kks-contact-card:hover {
    border-color: #004327;
    background: rgba(0, 67, 39, 0.03);
    text-decoration: none;
}

.kks-contact-icon { font-size: 22px; }

.kks-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kks-contact-label {
    font-size: 12px;
    color: #9aa2a8;
}

.kks-contact-value {
    font-size: 15px;
    font-weight: 600;
    color: #232323;
}

.kks-footer {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.kks-footer-secondary a {
    font-size: 13px;
    color: #6d767d;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .kks-card { padding: 28px 20px; }
    .kks-contact-grid { grid-template-columns: 1fr; }
}
