/* TASK-047: overlay readability panels + cashback CTA contrast for v1_electron_1 homepage */

:root {
    --smarty-overlay-panel-strong: rgba(255, 255, 255, 0.60);
    --smarty-overlay-panel: rgba(255, 255, 255, 0.34);
    --smarty-overlay-panel-soft: rgba(255, 255, 255, 0.18);
    --smarty-overlay-border: rgba(255, 255, 255, 0.38);
    --smarty-overlay-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --smarty-cta-accent: #0b8aa7;
}

#tvmain-slider .owl-item,
.tvcmssliderofferbanners .tvbanner-hover-wrapper,
.tvcmsleftsideofferbanners-one .tvbanner1,
.tvcmsofferbanners-one .tvbanner-hover-wrapper,
.tvcmssingle-block-wrappr .tvcmssingle-block {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Hero slide 1: soften the busy area behind the rasterized title + CTA without touching the JPG. */
#tvmain-slider .owl-item.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 52%,
        rgba(255, 255, 255, 0.16) 66%,
        rgba(255, 255, 255, 0.42) 84%,
        var(--smarty-overlay-panel-strong) 100%
    );
    pointer-events: none;
}

#tvmain-slider .owl-item.active::before {
    content: "";
    position: absolute;
    inset: 11% 4% 14% 59%;
    border-radius: 24px;
    background: linear-gradient(
        180deg,
        var(--smarty-overlay-panel) 0%,
        rgba(255, 255, 255, 0.20) 56%,
        var(--smarty-overlay-panel) 100%
    );
    border: 1px solid var(--smarty-overlay-border);
    backdrop-filter: saturate(1.03);
    -webkit-backdrop-filter: saturate(1.03);
    box-shadow: var(--smarty-overlay-shadow);
    pointer-events: none;
}

/* Slider side cards: calm the title zone only. */
.tvcmssliderofferbanners .tvbanner-hover-wrapper::after {
    content: "";
    position: absolute;
    left: 11%;
    right: 11%;
    top: 6%;
    height: 31%;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        var(--smarty-overlay-panel) 0%,
        var(--smarty-overlay-panel-soft) 100%
    );
    border: 1px solid var(--smarty-overlay-border);
    backdrop-filter: saturate(1.03);
    -webkit-backdrop-filter: saturate(1.03);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    pointer-events: none;
}

/* Left headphones banner: reinforce the top title zone. */
.tvcmsleftsideofferbanners-one .tvbanner1::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 5%;
    height: 23%;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.32) 0%,
        rgba(255, 255, 255, 0.14) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.30);
    backdrop-filter: saturate(1.03);
    -webkit-backdrop-filter: saturate(1.03);
    pointer-events: none;
}

/* Bottom TV / soundbar banner: keep the copy area readable while leaving the product side untouched. */
.tvcmsofferbanners-one .tvbanner-hover-wrapper::after {
    content: "";
    position: absolute;
    inset: 12% 49% 14% 4.5%;
    border-radius: 24px;
    background: linear-gradient(
        180deg,
        var(--smarty-overlay-panel) 0%,
        rgba(255, 255, 255, 0.16) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: saturate(1.03);
    -webkit-backdrop-filter: saturate(1.03);
    box-shadow: var(--smarty-overlay-shadow);
    pointer-events: none;
}

/* Cashback block: actual HTML content, so we can improve the panel and CTA directly. */
.tvcmssingle-block-wrappr .tvcmssingle-block::before {
    content: "";
    position: absolute;
    inset: 12px 18px;
    border-radius: 26px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.90) 0%,
        rgba(255, 255, 255, 0.90) 63%,
        rgba(255, 255, 255, 0) 63%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.tv-singleblock-content-one,
.tv-singleblock-content-two,
.tvsingle-block-btn-link-wrapper {
    position: relative;
    z-index: 1;
}

.tvsingle-bolck-btn-link.tvsingle-bolck-btn,
.tvmain-slider-contant .tvmain-slider-button {
    background: var(--smarty-cta-accent);
    border-color: var(--smarty-cta-accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 22px rgba(11, 138, 167, 0.28);
}

.tvsingle-bolck-btn-link.tvsingle-bolck-btn:hover,
.tvmain-slider-contant .tvmain-slider-button:hover {
    background: #087791;
    border-color: #087791;
    color: #fff;
}

@media (max-width: 767px) {
    #tvmain-slider .owl-item.active::before {
        inset: 12% 5% 16% 57%;
        border-radius: 16px;
    }

    .tvcmssliderofferbanners .tvbanner-hover-wrapper::after {
        left: 8%;
        right: 8%;
        top: 6%;
        height: 30%;
        border-radius: 14px;
    }

    .tvcmsleftsideofferbanners-one .tvbanner1::after {
        left: 7%;
        right: 7%;
        top: 5%;
        height: 22%;
        border-radius: 14px;
    }

    .tvcmsofferbanners-one .tvbanner-hover-wrapper::after {
        inset: 10% 47% 12% 4%;
        border-radius: 16px;
    }

    .tvcmssingle-block-wrappr .tvcmssingle-block::before {
        inset: 10px 12px;
        border-radius: 18px;
    }

    .tvsingle-bolck-btn-link.tvsingle-bolck-btn,
    .tvmain-slider-contant .tvmain-slider-button {
        padding: 10px 18px;
        font-size: 13px;
    }
}
