/* catalog/view/stylesheet/kullake.catalog.css
   Кастомные стили Kullake для интернет-магазина.
   Подключается глобально через kullake_catalog.ocmod.xml.
   НЕ переопределяет нативные стили Journal3/OC3/Bootstrap.

   Структура:
     A. CSS-переменные (цвета бренда)
     B. Строки таблиц (статусы заказов)
     C. Статус-бейджи
     D. AJAX-лоадер
     E. Toast-уведомления
     F. Inline-сообщения
     G. Валидация форм
*/


/* ==============================================================
   A. CSS-ПЕРЕМЕННЫЕ
   ============================================================== */
:root {
    /* Цвета бренда */
    --primary-color: #D4A93C;
    --secondary-color: #000;
    --highlight-color: #1e91cf;
    --danger-color: #f00;
    --green-color: #4cb64c;
    --inactive-color: #A9A9A9;

    /* Текст на цветном фоне */
    --status-text-dark: #1a1a1a;
    --status-text-light: #ffffff;

    /* Успех */
    --status-success-bg: #e8f5e9;
    --status-success-text: #1b5e20;
    --status-success-border: #4cb64c;

    /* Ошибка */
    --status-error-bg: #fdf0ef;
    --status-error-text: #7b1a10;
    --status-error-border: #f00;

    /* Предупреждение */
    --status-warning-bg: #fff8e1;
    --status-warning-text: #6d4c41;
    --status-warning-border: #D4A93C;

    /* Инфо */
    --status-info-bg: #e3f2fd;
    --status-info-text: #0d47a1;
    --status-info-border: #1e91cf;

    /* Ссылки на цветном фоне */
    --status-link-light: #ffffff;
    --status-link-light-hover: #f0f0f0;
    --status-link-dark: #1a1a1a;
    --status-link-dark-hover: #000000;

    --item-hover: rgba(0, 0, 0, .05);
    --ring: 0 0 0 3px rgba(30, 145, 207, .25);
}


/* ==============================================================
   B. СТРОКИ ТАБЛИЦ — СТАТУСЫ ЗАКАЗОВ / ТОВАРОВ
   ============================================================== */
.row--warning,
.row--danger,
.row--success {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.row--warning {
    background-color: var(--primary-color);
    color: var(--status-text-dark);
}

.row--warning a {
    color: var(--status-link-dark);
    font-weight: 600;
    text-decoration: none;
}

.row--warning a:hover {
    color: var(--status-link-dark-hover);
    text-decoration: underline;
}

.row--danger {
    background-color: var(--danger-color);
    color: var(--status-text-light);
}

.row--danger a {
    color: var(--status-link-light);
    font-weight: 600;
    text-decoration: none;
}

.row--danger a:hover {
    color: var(--status-link-light-hover);
    text-decoration: underline;
}

.row--success {
    background-color: var(--green-color);
    color: var(--status-text-light);
}

.row--success a {
    color: var(--status-link-light);
    font-weight: 600;
    text-decoration: none;
}

.row--success a:hover {
    color: var(--status-link-light-hover);
    text-decoration: underline;
}


/* ==============================================================
   C. СТАТУС-БЕЙДЖИ (toggle-badge)
   Для статусов товаров, наличия, состояния заказа.
   ============================================================== */
.toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.toggle-badge--active {
    background: rgba(76, 182, 76, 0.18);
    color: var(--green-color);
}

.toggle-badge--inactive {
    background: rgba(169, 169, 169, 0.22);
    color: var(--inactive-color);
}

.toggle-badge:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.toggle-badge.toggle-badge--active:hover {
    background: rgba(76, 182, 76, 0.24);
}

.toggle-badge.toggle-badge--inactive:hover {
    background: rgba(169, 169, 169, 0.28);
}

.toggle-badge:active {
    transform: translateY(0);
    box-shadow: none;
}

.toggle-badge--readonly {
    cursor: default;
    pointer-events: none;
}


/* ==============================================================
   D. AJAX-ЛОАДЕР
   ============================================================== */

/* Тонкая полоса прогресса вверху страницы (loading.js) */
#kk-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
}

/* Спиннер внутри кнопки при загрузке (kkBtnLoading) */
.kk-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kk-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes kk-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* ==============================================================
   E. TOAST-УВЕДОМЛЕНИЯ
   Готовая база для будущего messages.js каталога.
   ============================================================== */
#messageContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 360px;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}

.notif-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 14px 20px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: transform .35s cubic-bezier(.34, 1.2, .64, 1), opacity .3s ease;
}

.notif-toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.notif-toast--leaving {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: transform .3s ease-in, opacity .25s ease-in;
}

.notif-toast--success {
    background: var(--status-success-bg);
    color: var(--status-success-text);
    border-left-color: var(--status-success-border);
}

.notif-toast--error {
    background: var(--status-error-bg);
    color: var(--status-error-text);
    border-left-color: var(--status-error-border);
}

.notif-toast--warning {
    background: var(--status-warning-bg);
    color: var(--status-warning-text);
    border-left-color: var(--status-warning-border);
}

.notif-icon {
    flex-shrink: 0;
    font-size: 20px;
    margin-top: 1px;
    opacity: .85;
}

.notif-body {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
}

.notif-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    color: inherit;
    opacity: .45;
    font-size: 13px;
    line-height: 1;
    transition: opacity .15s;
    margin-top: 1px;
}

.notif-close:hover {
    opacity: 1;
}

.notif-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, .08);
}

.notif-progress-bar {
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .2);
    transform-origin: left center;
    animation: notif-shrink linear 1 forwards;
}

@keyframes notif-shrink {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}


/* ==============================================================
   F. INLINE-СООБЩЕНИЯ
   ============================================================== */
.status-message {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.status-message.success {
    color: var(--status-success-text);
    background-color: var(--status-success-bg);
}

.status-message.error {
    color: var(--status-error-text);
    background-color: var(--status-error-bg);
}

.status-message.warning {
    color: var(--status-warning-text);
    background-color: var(--status-warning-bg);
}


/* ==============================================================
   G. ВАЛИДАЦИЯ ФОРМ
   ============================================================== */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5) !important;
}


/* ==============================================================
   H. МЕТОДЫ ОПЛАТЫ — ИКОНКИ НА CHECKOUT
   Левый блок (иконки) — единая ширина для всех методов,
   чтобы radio-кнопки выстроились по одной вертикальной линии.
   ============================================================== */

.section-payment .radio label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Иконка — единая ширина для всех методов */
.section-payment .radio label::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 300px;
    height: 44px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 36px;
    border-radius: 8px;
    filter:
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.26)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.14)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.62));
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* --- Маппинг иконок --- */

/*
    LinkPay: 2 строки иконок в ширине 300px.
    background-size: одно значение — применяется ко всем 11 слоям циклически
    Шаг строки 1: 40px → x: 0, 40, 80, 120, 160, 200
    Шаг строки 2: 48px → x: 0, 48, 96, 144, 192
*/
.section-payment .radio label:has(input[value="lhvpaymentgateway"])::before {
    height: 82px;
    background-repeat: no-repeat;
    background-image:
        url('/image/catalog/payment/linkpay/swedbank.png'),
        url('/image/catalog/payment/linkpay/seb.png'),
        url('/image/catalog/payment/linkpay/lhv.png'),
        url('/image/catalog/payment/linkpay/coop.png'),
        url('/image/catalog/payment/linkpay/citadele.png'),
        url('/image/catalog/payment/linkpay/luminor.png'),
        url('/image/catalog/payment/linkpay/revolut.png'),
        url('/image/catalog/payment/linkpay/visa.png'),
        url('/image/catalog/payment/linkpay/mastercard.png'),
        url('/image/catalog/payment/linkpay/googlepay.png'),
        url('/image/catalog/payment/linkpay/applepay.png');
    background-size: auto 28px;
    background-position:
        0px 6px, 40px 6px, 80px 6px, 120px 6px, 160px 6px, 200px 6px,
        0px 48px, 48px 48px, 96px 48px, 144px 48px, 192px 48px;
}

.section-payment .radio label:has(input[value="esto"])::before {
    background-image: url('/image/catalog/payment/svg/esto.svg');
}

.section-payment .radio label:has(input[value="estocc"])::before {
    background-image: url('/image/catalog/payment/svg/estocc.svg');
}

.section-payment .radio label:has(input[value="estopay"])::before {
    background-image: url('/image/catalog/payment/bank.png');
}

.section-payment .radio label:has(input[value="estopaylater"])::before {
    background-image: url('/image/catalog/payment/svg/estopaylater.svg');
}

.section-payment .radio label:has(input[value="estox"])::before {
    background-image: url('/image/catalog/payment/svg/estox.svg');
}

/* COD — без логотипа, но место сохраняем для выравнивания */
.section-payment .radio label:has(input[value="cod"])::before {
    visibility: hidden;
}

/* --- Hover --- */
.section-payment .radio label:hover::before {
    transform: scale(1.05);
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.42)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.22)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.74));
}

/* --- Активный --- */
.section-payment .radio input[type="radio"]:checked+span {
    font-weight: 600;
}

.section-payment .radio label:has(input:checked)::before {
    transform: scale(1.08);
    filter:
        drop-shadow(0 0 14px rgba(255, 255, 255, 0.62)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.30)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.82));
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-payment .radio label::before {
        width: 200px;
        height: 42px;
    }

    /* Шаг строки 1: 27px → x: 0, 27, 54, 81, 108, 135
       Шаг строки 2: 32px → x: 0, 32, 64, 96, 128 */
    .section-payment .radio label:has(input[value="lhvpaymentgateway"])::before {
        height: 62px;
        background-size: auto 18px;
        background-position:
            0px 4px, 27px 4px, 54px 4px, 81px 4px, 108px 4px, 135px 4px,
            0px 40px, 32px 40px, 64px 40px, 96px 40px, 128px 40px;
    }
}

@media (max-width: 480px) {
    .section-payment .radio label::before {
        width: 150px;
        height: 36px;
    }

    /* Шаг строки 1: 20px → x: 0, 20, 40, 60, 80, 100
       Шаг строки 2: 24px → x: 0, 24, 48, 72, 96 */
    .section-payment .radio label:has(input[value="lhvpaymentgateway"])::before {
        height: 50px;
        background-size: auto 14px;
        background-position:
            0px 3px, 20px 3px, 40px 3px, 60px 3px, 80px 3px, 100px 3px,
            0px 33px, 24px 33px, 48px 33px, 72px 33px, 96px 33px;
    }
}


/* ==============================================================
   I. ШРИФТ МЕТОДОВ ОПЛАТЫ И ДОСТАВКИ
   ============================================================== */

.shippings .shipping-quote-title,
.section-payment .section-title {
    font-size: 20px;
    font-weight: 600;
}

.shippings .xshippingpro-desc,
.section-payment .radio>label>span {
    font-size: 16px;
}


/* ==============================================================
   J. БЕГУЩАЯ СТРОКА ЦЕН НА МЕТАЛЛЫ (футер, все страницы)
   ============================================================== */

:root {
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f7ef8a 100%);
    --silver-gradient: linear-gradient(135deg, #bdc3c7 0%, #ecf0f1 100%);
    --background-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --ticker-height: 80px;
    --card-width: 100px;
    --border-radius: 12px;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --base-font-size: 20px;
}

.metal-ticker-container {
    position: relative;
    width: 100%;
    height: var(--ticker-height);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metal-ticker-container::before,
.metal-ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.metal-ticker-container::before {
    left: 0;
    background: linear-gradient(90deg,
            rgba(212, 175, 55, 0.15) 0%,
            rgba(212, 175, 55, 0.05) 30%,
            transparent 100%);
}

.metal-ticker-container::after {
    right: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.05) 70%,
            rgba(212, 175, 55, 0.15) 100%);
}

.metal-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    gap: 15px;
    padding: 0 20px;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.metal-item {
    position: relative;
    min-width: var(--card-width);
    height: 60px;
    padding: 0 9px;
    background: var(--background-card);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    overflow: hidden;
    font-size: var(--base-font-size);
}

.metal-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.metal-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.metal-indicator-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.metal-item[data-metal="gold"] .metal-indicator,
.metal-item[data-metal="gold"] .metal-indicator-left {
    background: var(--gold-gradient);
}

.metal-item[data-metal="silver"] .metal-indicator,
.metal-item[data-metal="silver"] .metal-indicator-left {
    background: var(--silver-gradient);
}

.metal-label {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    transition: var(--transition-smooth);
}

.metal-item[data-metal="gold"] .metal-label {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metal-item[data-metal="silver"] .metal-label {
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metal-price {
    display: flex;
    align-items: baseline;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.price-eur {
    font-size: 1.3em;
    line-height: 1;
}

.price-cent {
    font-size: 0.85em;
    opacity: 0.9;
    margin-left: 1px;
}

.price-unit {
    font-size: 0.7em;
    color: var(--text-secondary);
    margin-left: 4px;
    font-weight: 500;
}

.update-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.6em;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition-smooth);
    z-index: 3;
}

.updating .update-indicator {
    animation: pulse 1s infinite;
    color: #4CAF50;
}

.price-updating {
    animation: price-update 0.3s ease-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes price-update {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 1024px) {
    :root {
        --ticker-height: 70px;
        --card-width: 130px;
        --base-font-size: 15px;
    }

    .metal-ticker-container::before,
    .metal-ticker-container::after {
        width: 60px;
    }

    .metal-ticker-track {
        gap: 12px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    :root {
        --ticker-height: 65px;
        --card-width: 115px;
        --base-font-size: 14px;
    }

    .metal-ticker-container::before,
    .metal-ticker-container::after {
        width: 50px;
    }

    .metal-ticker-track {
        gap: 10px;
        padding: 0 8px;
    }

    .metal-item {
        padding: 0 6px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    :root {
        --ticker-height: 60px;
        --card-width: 105px;
        --base-font-size: 13px;
    }

    .metal-ticker-container::before,
    .metal-ticker-container::after {
        width: 40px;
    }

    .metal-ticker-track {
        gap: 8px;
        padding: 0 8px;
    }

    .metal-item {
        padding: 0 8px;
        height: 50px;
    }

    .metal-label {
        font-size: 0.75em;
    }

    .price-eur {
        font-size: 1.2em;
    }
}

/* ── ID товара под заголовком страницы товара ────────────────────────── */
.product-id-label {
    text-align: center;
    font-size: 0.8em;
    color: #888;
    margin-top: -8px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

/* ── Логотип бренда на странице товара ───────────────────────────────── */
.brand-image.product-manufacturer img {
    width: 300px;
    height: auto;
}

/* ── Лейбл "Kontrollitud" (#31) — золотой бейдж в левом верхнем углу ── */
.product-thumb .product-labels .product-label-31 {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 4 !important;
    order: -1 !important;
    align-self: flex-start !important;
}

.product-thumb .product-labels .product-label-31 strong {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background-color: #D4A93C !important;
    padding: 5px 10px !important;
    border-radius: 0 0 6px 0 !important;
    font-size: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* Иконка щита с галочкой */
.product-thumb .product-labels .product-label-31 strong::before {
    content: "";
    display: inline-block !important;
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L4 5v6c0 5.25 3.5 10.15 8 11.35C16.5 21.15 20 16.25 20 11V5L12 2z' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

/* Текст */
.product-thumb .product-labels .product-label-31 strong::after {
    content: "Kontrollitud" !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    line-height: 1 !important;
}

/* ── Надстрочные центы в ценах Journal3 ──────────────────────────────── */
/* Обёртка: точка остаётся на базовой линии, центы прижаты к верху */
.price-normal .kk-price-frac,
.product-price .kk-price-frac {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
}

.price-normal .kk-price-cents,
.product-price .kk-price-cents {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.48em;
    line-height: 1;
    white-space: nowrap;
}


/* ── Корзина: по умолчанию скрываем заголовки и колонку цены за штуку.
      JS покажет оба элемента, если в корзине есть товар с qty > 1. ── */
#checkout-cart thead,
#checkout-cart .td-price {
    display: none;
}


/* ── Корзина: строки товаров — glass-карточки как в чекауте ─────────── */
#checkout-cart .table-responsive {
    padding-bottom: 16px;
}

#checkout-cart .table.table-bordered {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    border: none !important;
    margin-top: -8px;
}

#checkout-cart tbody tr {
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#checkout-cart tbody tr td {
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13) !important;
    vertical-align: middle !important;
    padding: 14px 16px !important;
}

#checkout-cart tbody tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 12px 0 0 12px !important;
}

#checkout-cart tbody tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 0 12px 12px 0 !important;
}


/* ==============================================================
   K. ФОРМА ЗАЯВКИ (.module-form-1148)
   ============================================================== */

.module-form-1148 .module-body {
    width: 100%;
    box-sizing: border-box;
}

.module-form-1148 .module-body fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.module-form-1148 .module-body .form-group {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    margin: 0 !important;
    padding: 0;
    box-sizing: border-box;
}

.module-form-1148 .module-body .form-group .col-sm-10 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.module-form-1148 input,
.module-form-1148 textarea,
.module-form-1148 select {
    width: 100%;
    height: 50px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.module-form-1148 .upload-btn {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 50px;
    padding: 10px;
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-form-1148 .upload-btn:hover {
    background-color: #000;
    color: #fff;
}

.module-form-1148 .buttons {
    width: 100%;
    margin-top: 15px;
}

.module-form-1148 .buttons .btn-primary {
    display: block;
    width: 100%;
    height: 50px;
    padding: 10px;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-form-1148 .buttons .btn-primary:hover {
    background-color: #222;
}

/* Journal3 рисует * через ::before/::after у required label */
.module-form-1148 .form-group.required label::before,
.module-form-1148 .form-group.required label::after {
    content: none !important;
    display: none !important;
}

.module-form-1148 .form-group.required label span,
.module-form-1148 .form-group.required label .text-danger {
    display: none !important;
}

@media (max-width: 768px) {
    .module-form-1148 .module-body .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .module-form-1148 input,
    .module-form-1148 .upload-btn,
    .module-form-1148 .buttons .btn-primary {
        height: 46px;
        font-size: 0.9rem;
    }
}


/* ==============================================================
   L. ТАБЛИЦА ЦЕН НА МЕТАЛЛЫ (страница goldprices)
   ============================================================== */

.metal-price-table {
    background: #000;
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 16px;
    width: 400px;
    margin: auto;
}

.metal-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    white-space: nowrap;
}

.metal-price-probe {
    font-weight: 600;
}

.metal-price-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
}

.metal-price-value {
    font-weight: 700;
    color: #f5c542;
}

.metal-price-table[data-metal="silver"] .metal-price-value {
    color: #cfd8dc;
}

.metal-price-note {
    margin-top: 6px;
    font-size: 14px;
    color: #ccc;
}


/* ==============================================================
   H. КНОПКА КОРЗИНЫ — ТОВАР УЖЕ В КОРЗИНЕ (МАКСИМУМ)
   ============================================================== */

.kk-cart-full {
    opacity: 0.6 !important;
    pointer-events: none !important;
    cursor: default !important;
}


/* ==============================================================
   M. ЦЕНЫ НА ЗОЛОТО — БЛОК В МАГАЗИНЕ (store-gold-prices)
   ============================================================== */

.store-gold-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.store-gold-price {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 20px;
    color: #eaeaea;
    transition: background-color 0.2s ease;
    cursor: default;
}

.store-gold-price:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.store-gold-price span:first-child {
    white-space: nowrap;
}

.store-dots {
    flex: 1;
    margin: 0 10px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    height: 0;
}

.store-price {
    white-space: nowrap;
    font-weight: 600;
    color: #ffffff;
    font-size: 24px;
}

.store-gold-skeleton {
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.store-gold-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.14) 50%,
            transparent 100%);
    transform: translateX(-100%);
    animation: store-shimmer 1.4s ease-in-out infinite;
}

@keyframes store-shimmer {
    to {
        transform: translateX(200%);
    }
}


/* ==============================================================
   N. KULLAKE CHECKOUT — TELIA-STYLE WIZARD
   ============================================================== */

/* ── Обёртка: сетка сайдбар + контент ──────────────────────── */
.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: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.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: 12px;
    cursor: default;
    transition: background 0.2s;
}

.kkc-step-item--done {
    cursor: pointer;
}

.kkc-step-item--done:hover {
    background: rgba(255, 255, 255, 0.06);
}

.kkc-step-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.25s;
}

.kkc-step-item--active .kkc-step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 0 5px rgba(212, 169, 60, 0.22), 0 2px 12px rgba(212, 169, 60, 0.4);
}

.kkc-step-item--done .kkc-step-circle {
    background: rgba(76, 182, 76, 0.18);
    border-color: #4cb64c;
    color: #4cb64c;
    box-shadow: 0 0 0 3px rgba(76, 182, 76, 0.12);
}

.kkc-step-item--done .kkc-step-circle svg {
    width: 17px;
    height: 17px;
}

.kkc-step-texts {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 7px;
}

.kkc-step-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.25s;
    line-height: 1.25;
}

.kkc-step-item--active .kkc-step-name {
    color: #f0f0f0;
    font-weight: 700;
    font-size: 16px;
}

.kkc-step-item--done .kkc-step-name {
    color: rgba(255, 255, 255, 0.7);
}

.kkc-step-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    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 rgba(255, 255, 255, 0.08);
}

.kkc-back-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    width: 100%;
}

.kkc-back-divider::before,
.kkc-back-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.kkc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(212, 169, 60, 0.75);
    border: 1px solid rgba(212, 169, 60, 0.3);
    border-radius: 50px;
    text-decoration: none;
    background: rgba(212, 169, 60, 0.05);
    transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.kkc-back-link::before {
    content: '🛍';
    font-size: 15px;
}

.kkc-back-link:hover {
    color: var(--primary-color);
    border-color: rgba(212, 169, 60, 0.65);
    background: rgba(212, 169, 60, 0.1);
    box-shadow: 0 0 16px rgba(212, 169, 60, 0.15);
    text-decoration: none;
}

/* ── Основной контент — карточка ────────────────────────────── */
.kkc-main {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 36px 40px;
    min-height: 500px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);    
        font-family: serif;
}

/* ── Панели шагов ───────────────────────────────────────────── */
.kkc-panel {
    display: none;
}

.kkc-panel--active {
    display: block;
    animation: kkc-in 0.28s ease;
}

@keyframes kkc-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kkc-panel-header {
    margin-bottom: 32px;
}

.kkc-panel-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #f8f8f8;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(212, 169, 60, 0.12);
}

.kkc-panel-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Кнопки ─────────────────────────────────────────────────── */
.kkc-btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 40px;
    padding: 5px 70px;
    font-size: 25px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(212, 169, 60, 0.3);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.kkc-btn-primary:hover {
    opacity: 0.92;
    box-shadow: 0 6px 22px rgba(212, 169, 60, 0.42);
    transform: translateY(-1px);
}

.kkc-btn-primary:active {
    transform: scale(0.97) translateY(0);
}

.kkc-btn-primary:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}

.kkc-btn-primary.kkc-btn-gold {
    background: var(--primary-color);
}

.kkc-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.kkc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
}

/* ── Комбобокс выбора терминала ──────────────────────────── */
.kkc-combo {
    position: relative;
    width: 100%;
}

.kkc-combo-field {
    position: relative;
    display: flex;
    align-items: center;
}

.kkc-combo-input {
    width: 100%;
    min-width: 500px;
    height: 72px;
    padding: 20px 86px 20px 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #f0f0f0;
    font-size: 22px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.kkc-combo-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.kkc-combo-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(212, 169, 60, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.15);
    cursor: text;
}

.kkc-combo-chevron {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 28px;
    pointer-events: none;
    transition: transform 0.2s;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.kkc-combo--open .kkc-combo-chevron {
    transform: translateY(-50%) rotate(180deg);
}

.kkc-combo-clear {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}

.kkc-combo-clear:hover {
    color: #fff;
}

.kkc-combo-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1a1a2a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 200;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.kkc-combo-dropdown::-webkit-scrollbar {
    width: 5px;
}

.kkc-combo-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.kkc-combo-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.kkc-combo-city {
    padding: 14px 20px 5px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    -webkit-user-select: none;
    user-select: none;
    position: sticky;
    top: 0;
    background: #1a1a2a;
}

.kkc-combo-city-count {
    font-weight: 400;
    opacity: 0.75;
}

.kkc-combo-item {
    padding: 7px 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.kkc-combo-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.kkc-combo-item--selected {
    color: var(--primary-color);
    background: rgba(212, 169, 60, 0.08);
}

.kkc-combo-item--selected:hover {
    background: rgba(212, 169, 60, 0.13);
}

.kkc-combo-empty {
    padding: 28px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.32);
    font-size: 17px;
}

/* Фильтр по городу над комбобоксом терминала */
.kkc-city-filter {
    margin-bottom: 10px;
}

/* Обёртка — она отвечает за border/background/shadow, как .kkc-combo-field */
.kkc-city-wrap {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.kkc-city-wrap:focus-within {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(212, 169, 60, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Сам select — прозрачный, без рамки */
.kkc-city-select {
    width: 100%;
    height: 48px;
    padding: 0 52px 0 20px;
    font-size: 18px !important;
    font-family: inherit !important;
    color: #f0f0f0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 14px;
    cursor: pointer;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
    box-sizing: border-box;
    outline: none !important;
}

.kkc-city-select option {
    background: #1e1e1e;
    color: #e0d8cc;
}

/* Шеврон — идентичен .kkc-combo-chevron */
.kkc-city-chevron {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

/* Подсказка под полем выбора терминала (город после выбора) */
.kkc-terminal-info {
    margin-top: 6px;
    padding-left: 4px;
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0.85;
    min-height: 18px;
}

/* DPD карта: ссылка и индикатор выбранного терминала */
.kkc-map-picker {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.kkc-map-selected {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.kkc-map-selected strong {
    color: #fff;
}

#kkcDpdOpenMap {
    background: transparent;
    border: none;
    color: var(--highlight-color, #1e91cf);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: opacity 0.15s;
}

#kkcDpdOpenMap:hover {
    opacity: 0.75;
}

.kkc-btn-back {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 14px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.kkc-btn-back:hover {
    color: rgba(255, 255, 255, 0.8);
}

.kkc-btn-confirm {
    padding: 16px 55px;
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Сообщения об ошибках ───────────────────────────────────── */
.kkc-error {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff8080;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 12px;
}

.kkc-error-msg {
    color: rgba(255, 255, 255, 0.45);
    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: 88px 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.kkc-cart-img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.kkc-cart-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kkc-cart-name {
    font-size: 26px;
    font-weight: 200;
    color: #ebebeb;
    font-family: serif;
}

.kkc-cart-opt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.kkc-cart-qty {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.kkc-cart-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Один товар — крупный план */
.kkc-cart-items--single .kkc-cart-item {
    grid-template-columns: 130px 1fr auto auto;
    gap: 22px;
    padding: 22px;
}

.kkc-cart-items--single .kkc-cart-img {
    width: 130px;
    height: 130px;
    border-radius: 10px;
}

.kkc-cart-items--single .kkc-cart-name {
    font-size: 19px;
    font-weight: 700;
}

.kkc-cart-items--single .kkc-cart-price {
    font-size: 20px;
}

/* Промокод */
.kkc-promo-wrap {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.kkc-promo-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.kkc-promo-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
}

.kkc-promo-arrow {
    font-size: 20px;
    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: 4px 18px 16px;
}

.kkc-promo-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

.kkc-promo-msg {
    padding: 6px 18px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.kkc-promo-msg--ok {
    color: #4cb64c;
}

.kkc-promo-msg--error {
    color: #ff8080;
}

/* Применённые коды */
.kkc-applied-code {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(76, 182, 76, 0.08);
    border: 1px solid rgba(76, 182, 76, 0.25);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.kkc-applied-icon {
    font-size: 16px;
}

.kkc-applied-label {
    flex: 1;
}

.kkc-applied-label strong {
    color: #4cb64c;
}

.kkc-applied-remove {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    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: #ff8080;
    background: rgba(255, 80, 80, 0.08);
}

/* Итог корзины */
.kkc-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.kkc-cart-total strong {
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(212, 169, 60, 0.3);
}

/* ── Авторизация (шаг 0) ────────────────────────────────────── */
.kkc-auth {
    margin-top: 4px;
}

.kkc-auth-logged {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kkc-greeting {
    font-size: 18px;
    color: #e0e0e0;
}

.kkc-auth-btns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
}

.kkc-btn-login {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.kkc-btn-login:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
}

.kkc-auth-btns .kkc-btn-primary {
    flex: 1;
    text-align: center;
}

.kkc-auth-link-wrap {
    margin-top: 12px;
}

.kkc-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
}

.kkc-link:hover {
    text-decoration: underline;
}

/* ── Модалка входа ────────────────────────────────────────── */
.kkc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: kkc-fade-in 0.2s ease;
}

@keyframes kkc-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.kkc-modal {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: kkc-modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes kkc-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.kkc-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.kkc-modal-close:hover {
    color: rgba(255, 255, 255, 0.85);
}

.kkc-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 24px;
}

/* ── Форм-поля с 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: 62px;
    padding: 24px 16px 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #f0f0f0;
    font-size: 28px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.kkc-field select {
    padding-top: 16px;
}

.kkc-field input:focus,
.kkc-field select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(212, 169, 60, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.kkc-field label {
    position: absolute;
    top: 21px;
    left: 17px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    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: 9px;
    font-size: 15px;
    color: var(--primary-color);
}

.kkc-field-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: -8px;
    margin-bottom: 16px;
    padding-left: 2px;
}

.kkc-comment-wrap {
    position: relative;
    margin-top: 14px;
}

.kkc-comment-wrap label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: top 0.15s, font-size 0.15s, color 0.15s;
}

.kkc-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 22px 16px 10px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.kkc-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 169, 60, 0.12);
}

.kkc-textarea:focus~label,
.kkc-textarea:not(:placeholder-shown)~label {
    top: 7px;
    font-size: 11px;
    color: var(--primary-color);
}

/* ── Переключатель Eraklient / Ettevõte ─────────────────────── */
.kkc-toggle-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.kkc-toggle-tab {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 28px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.kkc-toggle-tab--active {
    background: var(--primary-color);
    color: #000;
}

/* ── Карточки методов (доставка / оплата) ─────────────────────*/
.kkc-shipping-methods,
.kkc-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.kkc-method-card {
    display: grid;
    grid-template-columns: 56px 1fr 30px;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    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: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.kkc-method-card--selected {
    border-color: var(--primary-color);
    background: rgba(212, 169, 60, 0.08);
    box-shadow: 0 0 0 1px rgba(212, 169, 60, 0.3), 0 4px 16px rgba(212, 169, 60, 0.15);
}

.kkc-method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.kkc-method-card--selected .kkc-method-icon {
    color: var(--primary-color);
}

.kkc-method-icon svg {
    width: 32px;
    height: 32px;
}

.kkc-method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kkc-method-name {
    font-size: 22px;
    font-weight: 600;
    color: #ebebeb;
}

.kkc-method-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.kkc-method-terms {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.kkc-method-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: transparent;
    transition: all 0.2s;
}

.kkc-method-card--selected .kkc-method-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

/* Значок платёжного метода */
.kkc-pay-badge {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 10px;
    border-radius: 7px;
    white-space: nowrap;
}

.kkc-pay-icon svg {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Иконки платёжных методов (новый чекаут) ───────────────────────────────
   Те же URL изображений, что в .section-payment (старый чекаут),
   но в другом дизайне — белая карточка на тёмном фоне.
   Старые правила .section-payment не тронуты. ────────────────────────────── */

/* Платёжные карточки — расширяем первую колонку под логотипы */
.kkc-payment-methods .kkc-method-card {
    grid-template-columns: 88px 1fr 30px;
    align-items: center;
}

.kkc-payment-methods .kkc-method-name {
    white-space: normal;
    word-break: break-word;
}

/* Белая карточка иконки платёжного метода */
.kkc-method-icon.kkc-pay-icon {
    width: 80px;
    height: 48px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-color: rgba(255, 255, 255, 0.94);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.kkc-method-card--selected .kkc-method-icon.kkc-pay-icon {
    box-shadow: 0 0 0 2px var(--primary-color), 0 0 10px rgba(212, 169, 60, 0.2);
}

/* --- Маппинг: те же URL что в .section-payment (лишь дизайн другой) --- */
.kkc-pay-icon[data-code="lhvpaymentgateway"] {
    background-image: url('/image/catalog/payment/linkpay/linkpay.png');
}

.kkc-pay-icon[data-code="esto"] {
    background-image: url('/image/catalog/payment/svg/esto.svg');
}

.kkc-pay-icon[data-code="estocc"] {
    background-image: url('/image/catalog/payment/svg/estocc.svg');
}

.kkc-pay-icon[data-code="estopay"] {
    background-image: url('/image/catalog/payment/bank.png');
}

.kkc-pay-icon[data-code="estopaylater"] {
    background-image: url('/image/catalog/payment/svg/estopaylater.svg');
}

.kkc-pay-icon[data-code="estox"] {
    background-image: url('/image/catalog/payment/svg/estox.svg');
}
.kkc-pay-icon[data-code="hoovi"] {
    background-image: url('/image/catalog/payment/hoovi.png');
}
.kkc-pay-icon[data-code="cod"] {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* --- Мини-иконки банков под названием LHV-метода (в текстовой части карточки) --- */
.kkc-pay-banks {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
}

.kkc-bank-icon {
    display: inline-block;
    width: 26px;
    height: 17px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.9);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.kkc-bank-icon[data-bank="swedbank"] {
    background-image: url('/image/catalog/payment/linkpay/swedbank.png');
}

.kkc-bank-icon[data-bank="seb"] {
    background-image: url('/image/catalog/payment/linkpay/seb.png');
}

.kkc-bank-icon[data-bank="lhv"] {
    background-image: url('/image/catalog/payment/linkpay/lhv.png');
}

.kkc-bank-icon[data-bank="coop"] {
    background-image: url('/image/catalog/payment/linkpay/coop.png');
}

.kkc-bank-icon[data-bank="citadele"] {
    background-image: url('/image/catalog/payment/linkpay/citadele.png');
}

.kkc-bank-icon[data-bank="luminor"] {
    background-image: url('/image/catalog/payment/linkpay/luminor.png');
}

.kkc-bank-icon[data-bank="revolut"] {
    background-image: url('/image/catalog/payment/linkpay/revolut.png');
}

.kkc-bank-icon[data-bank="visa"] {
    background-image: url('/image/catalog/payment/linkpay/visa.png');
}

.kkc-bank-icon[data-bank="mastercard"] {
    background-image: url('/image/catalog/payment/linkpay/mastercard.png');
}

.kkc-bank-icon[data-bank="googlepay"] {
    background-image: url('/image/catalog/payment/linkpay/googlepay.png');
}

.kkc-bank-icon[data-bank="applepay"] {
    background-image: url('/image/catalog/payment/linkpay/applepay.png');
}

/* ── Загрузчик ──────────────────────────────────────────────── */
.kkc-loading-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    padding: 24px 0;
}

.kkc-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    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(8, 6, 3, 0.72);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    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: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, #fae98c, #d4a93c 52%, #8c5a08);
    border: 3px solid rgba(250, 225, 120, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 900;
    color: rgba(28, 13, 0, 0.82);
    box-shadow:
        0 0 55px rgba(212, 169, 60, 0.55),
        0 10px 32px rgba(0, 0, 0, 0.55),
        inset 0 -6px 14px rgba(0, 0, 0, 0.22),
        inset 0 6px 14px rgba(255, 245, 180, 0.22);
    animation: kkc-coin-flip 1.5s linear infinite;
}

@keyframes kkc-coin-flip {
    0%   { transform: perspective(600px) rotateY(0deg); }
    100% { transform: perspective(600px) rotateY(360deg); }
}

/* ── Шаг 5: Kinnita ─────────────────────────────────────────── */
.kkc-confirm-summary {
    margin-bottom: 20px;
}

.kkc-confirm-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.kkc-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 5px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kkc-confirm-row:last-child {
    border-bottom: none;
}

.kkc-confirm-row span:first-child {
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.kkc-confirm-row span:last-child {
    color: #ebebeb;
    font-weight: 500;
    text-align: right;
}

.kkc-confirm-products .kkc-confirm-row span:last-child {
    color: var(--primary-color);
    font-weight: 700;
}

.kkc-total-discount span:first-child {
    color: rgba(255, 255, 255, 0.55);
}

.kkc-total-discount span:last-child {
    color: #7ecf7e;
    font-weight: 600;
}

/* Обязательная отметка */
.kkc-required-mark {
    color: var(--danger-color);
    font-weight: 700;
    margin-left: 2px;
}

/* Подписка на новости (шаг 1) */
.kkc-newsletter-wrap {
    margin: 10px 0 0;
}

/* Чекбокс согласия */
.kkc-agree-wrap {
    margin: 20px 0 0;
}

.kkc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.kkc-checkbox {
    display: none;
}

.kkc-checkbox-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
    position: relative;
    top: 1px;
}

.kkc-checkbox:checked+.kkc-checkbox-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.kkc-checkbox:checked+.kkc-checkbox-box::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000;
    font-weight: 700;
}

.kkc-checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.kkc-checkbox-label a:hover {
    text-decoration: underline;
}

.kkc-agree-wrap--error .kkc-checkbox-box {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.25);
}

/* ── Мобильная версия ───────────────────────────────────────── */
@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;
        gap: 0;
    }

    .kkc-mobile-bar {
        display: block;
        grid-column: 1;
        grid-row: 1;
        padding: 16px 0 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        margin-bottom: 4px;
    }

    .kkc-mobile-steps {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin-bottom: 8px;
    }

    .kkc-mobile-step {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.3);
        flex-shrink: 0;
    }

    .kkc-mobile-step--active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: #000;
    }

    .kkc-mobile-step--done {
        background: rgba(76, 182, 76, 0.15);
        border-color: #4cb64c;
        color: #4cb64c;
    }

    .kkc-mobile-step--done svg {
        width: 12px;
        height: 12px;
    }

    .kkc-mobile-sep {
        height: 1px;
        width: 20px;
        background: rgba(255, 255, 255, 0.12);
    }

    .kkc-mobile-title {
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.55);
    }

    .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-auth-cols {
        grid-template-columns: 1fr;
    }

    .kkc-auth-sep-vert {
        flex-direction: row;
        padding: 0;
        margin: 8px 0;
    }

    .kkc-auth-sep-vert::before,
    .kkc-auth-sep-vert::after {
        width: 40px;
        height: 1px;
    }

    .kkc-form-grid {
        grid-template-columns: 1fr;
    }

    .kkc-field--full {
        grid-column: 1;
    }

    .kkc-panel-footer {
        flex-wrap: wrap;
    }

    .kkc-btn-primary {
        flex: 1;
        text-align: center;
    }

    .kkc-btn-back {
        order: -1;
    }
}

/* ==============================================================
   O. KULLAKE CHECKOUT SUCCESS — страница подтверждения оплаты
   ============================================================== */
.kks-wrap {
    max-width: 760px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.kks-card {
    padding: 40px 44px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: center;
}

.kks-check-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 34px;
    font-weight: 700;
}

.kks-check-icon--ok {
    background: rgba(76, 182, 76, 0.15);
    border: 2px solid #4cb64c;
    color: #4cb64c;
    box-shadow: 0 0 0 6px rgba(76, 182, 76, 0.1);
}

.kks-check-icon--error {
    background: rgba(255, 80, 80, 0.12);
    border: 2px solid #ff5050;
    color: #ff8080;
    box-shadow: 0 0 0 6px rgba(255, 80, 80, 0.08);
}

.kks-card .kkc-panel-header {
    margin-bottom: 20px;
}

.kks-greeting {
    font-size: 23px;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 8px;
    line-height: 1.4;
}

.kks-thanks {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 10px;
}

.kks-order-number {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 30px;
}

.kks-section {
    text-align: left;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kks-section h3 {
    font-size: 19px;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 16px;
}

.kks-section p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 10px;
}

.kks-message ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.kks-message li {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 4px;
}

.kks-message a {
    color: var(--primary-color);
}

.kks-footer-secondary {
    margin-top: 14px;
}

.kks-footer-secondary a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}

.kks-footer-secondary a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.kks-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.kks-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.kks-item-name {
    font-size: 16px;
    color: #ebebeb;
}

.kks-item-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.kks-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 0;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.kks-total strong {
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(212, 169, 60, 0.3);
}

.kks-steps {
    display: flex;
    flex-direction: column;
}

.kks-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kks-step--last {
    border-bottom: none;
}

.kks-step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.kks-step-body strong {
    display: block;
    color: #f0f0f0;
    font-size: 17px;
    margin-bottom: 5px;
}

.kks-step-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.kks-callout {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(212, 169, 60, 0.08);
    border: 1px solid rgba(212, 169, 60, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.5;
}

.kks-address {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.kks-contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 18px;
}

.kks-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 220px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.kks-contact-card:hover {
    background: rgba(212, 169, 60, 0.08);
    border-color: rgba(212, 169, 60, 0.35);
}

.kks-contact-icon {
    font-size: 24px;
    line-height: 1;
}

.kks-contact-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kks-contact-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
}

.kks-contact-value {
    font-size: 17px;
    font-weight: 700;
    color: #f0f0f0;
    transition: color 0.2s;
}

.kks-contact-card:hover .kks-contact-value {
    color: var(--primary-color);
}

.kks-footer {
    margin-top: 34px;
    text-align: center;
}

.kks-footer .kkc-btn-primary {
    display: inline-block;
    text-decoration: none;
}

/* ── Планшет ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .kks-wrap {
        margin: 20px auto 40px;
        padding: 0 16px;
    }
}

/* ── Телефон ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .kks-wrap {
        margin: 14px auto 32px;
        padding: 0 12px;
    }

    .kks-card {
        padding: 26px 18px;
        border-radius: 14px;
    }

    .kks-check-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .kks-greeting {
        font-size: 19px;
    }

    .kks-thanks {
        font-size: 15px;
    }

    .kks-section {
        margin-top: 24px;
        padding-top: 20px;
    }

    .kks-section h3 {
        font-size: 17px;
    }

    .kks-section p {
        font-size: 15px;
    }

    .kks-item {
        flex-wrap: wrap;
        gap: 4px;
        padding: 12px 14px;
    }

    .kks-item-name,
    .kks-item-total {
        font-size: 15px;
    }

    .kks-total {
        font-size: 18px;
    }

    .kks-step {
        gap: 12px;
    }

    .kks-step-num {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 13px;
    }

    .kks-step-body strong {
        font-size: 16px;
    }

    .kks-step-body p {
        font-size: 14px;
    }

    .kks-contact-grid {
        flex-direction: column;
    }

    .kks-contact-card {
        width: 100%;
        min-width: 0;
    }
}

/* ── Совсем маленькие экраны ────────────────────────────────── */
@media (max-width: 380px) {
    .kks-card {
        padding: 22px 14px;
    }

    .kks-card .kkc-panel-header h2 {
        font-size: 18px;
    }

    .kks-greeting {
        font-size: 17px;
    }
}