/* ===== «Фишки» (inc/extras.php) ===== */

/* --- Страница модели: убираем мусор демо-шаблона --- */
.single-product .elementor-element-f47d1c6,   /* Guaranteed Safe Checkout */
.single-product .elementor-element-87f1350,   /* картинка с картами */
.single-product .elementor-element-9886208,   /* разделители */
.single-product .elementor-element-2035c43,
.single-product .elementor-element-7c5ae2c,   /* пустой «Features & Compatibility» */
.single-product .elementor-element-d6836c6 {
    display: none !important;
}

/* --- Блок под таблицей цен --- */
.twc-pcta {
    margin: 4px 0 10px;
    font-family: var(--wd-text-font);
}

.twc-pcta__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
}

.twc-pcta__trust li {
    --c: #2e6bc6;
    --t: rgba(46, 107, 198, .1);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 12px 14px;
    border: 1px solid rgba(16, 24, 40, .06);
    border-radius: 16px;
    background: #fff;
    color: #5b6472;
    font-size: 12.5px;
    line-height: 1.35;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.twc-pcta__trust li:hover {
    border-color: var(--t);
    box-shadow: 0 14px 30px -18px var(--c);
    transform: translateY(-2px);
}

.twc-pcta__trust li::before {
    display: none !important;
}

.twc-pcta__trust .is-diag   { --c: #1e9e57; --t: rgba(30, 158, 87, .12); }
.twc-pcta__trust .is-night  { --c: #6d5bd0; --t: rgba(109, 91, 208, .14); }
.twc-pcta__trust .is-part   { --c: #2e6bc6; --t: rgba(46, 107, 198, .12); }
.twc-pcta__trust .is-master { --c: #d97706; --t: rgba(217, 119, 6, .13); }

/* «Iki 22:00» — ночной акцент */
.twc-pcta__trust .is-night {
    border-color: transparent;
    background: linear-gradient(135deg, #1d2459 0%, #2b2370 100%);
    color: rgba(255, 255, 255, .75);
}

.twc-pcta__trust .is-night b {
    color: #ffd27a !important;
}

.twc-pcta__ico {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--t);
    color: var(--c);
}

.twc-pcta__trust .is-night .twc-pcta__ico {
    background: rgba(255, 210, 122, .16);
    color: #ffd27a;
}

.twc-pcta__trust b {
    display: block;
    color: #14181f;
    font-size: 14px;
    line-height: 1.25;
}

.twc-pcta__actions {
    display: flex;
    gap: 10px;
}

.twc-pcta .twc-pcta__btn,
.twc-pcta .twc-pcta__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    margin: 0;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.twc-pcta .twc-pcta__btn {
    flex: 1;
    border: 0;
    background: var(--wd-primary-color, #2e6bc6);
    box-shadow: 0 14px 30px -14px rgba(46, 107, 198, .8);
    color: #fff;
}

.twc-pcta .twc-pcta__btn:hover {
    background: var(--wd-primary-color, #2e6bc6);
    color: #fff;
    transform: translateY(-2px);
}

.twc-pcta .twc-pcta__call {
    border: 1.5px solid #c9ecd7;
    background: #e5f6ec;
    color: #1e7a3e;
    white-space: nowrap;
}

.twc-pcta .twc-pcta__call:hover {
    color: #1e7a3e;
    transform: translateY(-2px);
}

/* --- Нижняя панель на телефоне --- */
.twc-mbar {
    display: none;
}

@media (max-width: 768px) {
    .twc-mbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9990;
        display: flex;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(16, 24, 40, .08);
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(12px);
        box-shadow: 0 -10px 30px -12px rgba(16, 24, 40, .2);
        transition: transform .25s ease;
    }

    .twc-mbar.is-hidden,
    html.twc-modal-open .twc-mbar {
        transform: translateY(110%);
    }

    body.has-twc-mbar {
        padding-bottom: 76px;
    }

    .twc-mbar .twc-mbar__call,
    .twc-mbar .twc-mbar__lead {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 52px;
        margin: 0;
        padding: 0 12px;
        border: 0;
        border-radius: 14px;
        box-shadow: none;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        text-transform: none;
        letter-spacing: 0;
        text-decoration: none;
    }

    .twc-mbar .twc-mbar__call {
        background: #1e9e57;
        color: #fff;
    }

    .twc-mbar .twc-mbar__lead {
        background: var(--wd-primary-color, #2e6bc6);
        color: #fff;
    }

    .twc-pcta__trust {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .twc-pcta__trust li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .twc-pcta__actions {
        flex-direction: column;
    }

    /* «Наверх» темы не должен перекрывать панель */
    .scrollToTop {
        bottom: 90px !important;
    }
}

/* --- Плавное появление --- */
.twc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease var(--twc-delay, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--twc-delay, 0ms);
}

.twc-reveal.is-in {
    opacity: 1;
    transform: none;
}


/* «Registruojantis internetu — nuolaida iki 15 %» под прайсом модели */
.twc-price-promo {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 14px 0 0;
    padding: 14px 18px;
    border: 1px solid rgba(22, 163, 74, .25);
    border-radius: 16px;
    background: linear-gradient(100deg, #ecfdf3, #f0fdf4 60%, #fff);
    color: #14532d;
    font: inherit;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.twc-price-promo:hover {
    border-color: #16a34a;
    box-shadow: 0 14px 30px -18px rgba(22, 163, 74, .6);
    transform: translateY(-1px);
}

.twc-price-promo__tag {
    flex-shrink: 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    transform: rotate(-4deg);
}

.twc-price-promo b {
    display: block;
    color: #14532d;
    font-size: 15px;
    line-height: 1.3;
}

.twc-price-promo small {
    display: block;
    margin-top: 2px;
    color: #3f6f52;
    font-size: 13px;
    line-height: 1.4;
}

.twc-price-promo__go {
    margin-left: auto;
    color: #16a34a;
    font-size: 20px;
    font-weight: 700;
}

.twc-modal__promo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #ecfdf3;
    color: #14532d;
    font-size: 13px;
    font-weight: 600;
}

.twc-modal__promo span {
    padding: 3px 7px;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    font-weight: 800;
}
