.tp-banner-slot {
    position: relative;
    z-index: 30;
    width: 100%;
    max-width: none;
    margin: 65px 0 0;
    display: none;
    overflow: hidden;
    pointer-events: auto;
}

.tp-banner-slot.has-banner {
    display: block;
}

body.loja-body .tp-banner-slot {
    margin-top: 65px;
    margin-bottom: -70px;
}

body.client-home-body .tp-banner-slot {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 14px;
    margin-bottom: 18px;
}

.tp-banner-slider,
.tp-banner-track,
.tp-banner-slide,
.tp-public-banner {
    pointer-events: auto;
}

.tp-banner-slider {
    width: 100%;
    overflow: hidden;
    background: var(--creme-escuro);
}

.tp-banner-track {
    display: flex;
    width: 100%;
    transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.tp-banner-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.tp-public-banner {
    position: relative;
    width: 100%;
    height: clamp(140px, 18.75vw, 210px);
    min-height: 140px;
    overflow: hidden;
    background: var(--creme-escuro);
    border-top: 1px solid rgba(92, 48, 32, 0.1);
    border-bottom: 1px solid rgba(92, 48, 32, 0.1);
    box-shadow: 0 12px 28px rgba(92, 48, 32, 0.12);
}

.tp-public-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
}

.tp-banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(44, 24, 16, 0.58), rgba(44, 24, 16, 0.08) 55%, rgba(44, 24, 16, 0.22));
    pointer-events: none;
}

.tp-banner-action,
.tp-popup-action,
.tp-public-countdown {
    position: absolute;
    z-index: 2;
    border-radius: var(--radius-full);
    color: var(--creme-claro);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
}

.tp-banner-action,
.tp-popup-action {
    z-index: 3;
    min-height: 42px;
    padding: 10px 18px;
    max-width: calc(100% - 32px);
    transition: transform var(--transicao-normal);
    pointer-events: auto;
    animation: tpAdHeartbeat 3.8s ease-in-out infinite;
    transform-origin: center;
    scale: 1;
}

@keyframes tpAdHeartbeat {
    0%, 100% {
        scale: 1;
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    }
    14% {
        scale: 1.035;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    }
    26% {
        scale: 1;
    }
    38% {
        scale: 1.025;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }
    52% {
        scale: 1;
    }
}

.tp-popup-action {
    min-width: min(260px, calc(100% - 32px));
}

.tp-public-countdown {
    min-height: 34px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    font-size: 0.84rem;
    letter-spacing: 0.01em;
    pointer-events: none;
}

.tp-public-countdown.is-hidden {
    display: none;
}

.tp-public-countdown.pos-custom {
    left: var(--countdown-x, 84%);
    top: var(--countdown-y, 14%);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.pos-top-left {
    top: clamp(12px, 3vw, 20px);
    left: clamp(12px, 3vw, 20px);
    right: auto;
    bottom: auto;
}

.pos-top-center {
    top: clamp(12px, 3vw, 20px);
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
}

.pos-top-right {
    top: clamp(12px, 3vw, 20px);
    right: clamp(12px, 3vw, 20px);
    left: auto;
    bottom: auto;
}

.pos-bottom-left {
    bottom: clamp(12px, 3vw, 20px);
    left: clamp(12px, 3vw, 20px);
    right: auto;
    top: auto;
}

.pos-bottom-center {
    bottom: clamp(12px, 3vw, 20px);
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
}

.pos-bottom-right {
    bottom: clamp(12px, 3vw, 20px);
    right: clamp(12px, 3vw, 20px);
    left: auto;
    top: auto;
}

.tp-banner-action:hover,
.tp-popup-action:hover {
    transform: translateY(-2px);
}

.tp-banner-action.pos-top-center:hover,
.tp-banner-action.pos-bottom-center:hover,
.tp-popup-action.pos-top-center:hover,
.tp-popup-action.pos-bottom-center:hover {
    transform: translateX(-50%) translateY(-2px);
}

.tp-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(44, 24, 16, 0.42);
    backdrop-filter: blur(13px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.tp-popup-overlay.show {
    display: flex;
    animation: tpPopupFadeIn 0.2s ease both;
}

@keyframes tpPopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tp-popup-fireworks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tp-popup-burst {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: tpFireworkBurst 2.8s ease-out infinite;
    animation-delay: var(--delay, 0s);
}

.tp-popup-burst::before,
.tp-popup-burst::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.18);
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 -34px 0 0 var(--tp-accent, rgba(92, 48, 32, 0.85)),
        24px -24px 0 0 var(--tp-accent, rgba(92, 48, 32, 0.85)),
        34px 0 0 0 var(--tp-accent, rgba(92, 48, 32, 0.85)),
        24px 24px 0 0 var(--tp-accent, rgba(92, 48, 32, 0.85)),
        0 34px 0 0 var(--tp-accent, rgba(92, 48, 32, 0.85)),
        -24px 24px 0 0 var(--tp-accent, rgba(92, 48, 32, 0.85)),
        -34px 0 0 0 var(--tp-accent, rgba(92, 48, 32, 0.85)),
        -24px -24px 0 0 var(--tp-accent, rgba(92, 48, 32, 0.85)),
        0 -52px 0 -2px rgba(255,255,255,0.9),
        37px -37px 0 -2px rgba(255,255,255,0.9),
        52px 0 0 -2px rgba(255,255,255,0.9),
        37px 37px 0 -2px rgba(255,255,255,0.9),
        0 52px 0 -2px rgba(255,255,255,0.9),
        -37px 37px 0 -2px rgba(255,255,255,0.9),
        -52px 0 0 -2px rgba(255,255,255,0.9),
        -37px -37px 0 -2px rgba(255,255,255,0.9);
    filter: drop-shadow(0 0 12px var(--tp-accent, rgba(92,48,32,0.85)));
    opacity: 0;
}

.tp-popup-burst::after {
    width: 8px;
    height: 8px;
    animation: tpFireworkSecondary 2.8s ease-out infinite;
    animation-delay: calc(var(--delay, 0s) + 0.14s);
}

.tp-popup-burst::before {
    animation: tpFireworkPrimary 2.8s ease-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes tpFireworkPrimary {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.12);
    }
    10% {
        opacity: 1;
    }
    32% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.28);
    }
}

@keyframes tpFireworkSecondary {
    0%, 8% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.1);
    }
    22% {
        opacity: 0.95;
    }
    46% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.72);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.18);
    }
}

@keyframes tpFireworkBurst {
    0%, 100% {
        opacity: 0;
    }
    8%, 40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.tp-popup-shell {
    position: relative;
    z-index: 1;
    width: min(430px, calc(100% - 36px));
}

.tp-popup-card {
    position: relative;
    width: 100%;
    border-radius: 32px;
    background: var(--creme-claro);
    border: 1px solid rgba(92, 48, 32, 0.16);
    box-shadow: 0 30px 80px rgba(44, 24, 16, 0.35);
    overflow: hidden;
    animation: tpPopupCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tpPopupCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tp-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 4;
    width: 42px;
    height: 42px;
    margin-top: 0;
    border-radius: 50%;
    border: 0;
    background: rgba(253, 248, 244, 0.96);
    color: var(--marrom);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    transition: transform var(--transicao-normal), box-shadow var(--transicao-normal);
}

.tp-popup-close:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28);
}

.tp-popup-image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--creme-escuro);
}

.tp-popup-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--creme-escuro);
}
@media (max-width: 600px) {
    .tp-banner-slot {
        width: 100%;
    }

    body.loja-body .tp-banner-slot {
        margin-top: 65px;
        margin-bottom: -66px;
    }

    .tp-public-banner {
        height: clamp(140px, 42.5vw, 188px);
        min-height: 140px;
    }

    .tp-banner-action,
    .tp-popup-action {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 0.86rem;
    }

    .tp-public-countdown {
        min-height: 30px;
        padding: 7px 10px;
        font-size: 0.76rem;
    }

    .tp-popup-overlay {
        padding: 16px 12px;
    }

    .tp-popup-shell {
        width: min(360px, calc(100% - 34px));
    }

    .tp-popup-card {
        width: 100%;
        border-radius: 26px;
    }

    .tp-popup-close {
        top: -13px;
        right: -13px;
        width: 38px;
        height: 38px;
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-banner-action,
    .tp-popup-action,
    .tp-popup-burst,
    .tp-popup-burst::before,
    .tp-popup-burst::after {
        animation: none;
    }
}

.tp-banner-action,
.tp-popup-action {
    min-height: calc(42px * var(--ad-btn-scale, 1));
    padding: calc(10px * var(--ad-btn-scale, 1)) calc(18px * var(--ad-btn-scale, 1));
    font-size: calc(0.92rem * var(--ad-btn-scale, 1));
}

.tp-banner-action.pos-custom,
.tp-popup-action.pos-custom {
    left: var(--button-x, 16%);
    top: var(--button-y, 86%);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.tp-banner-action.pos-custom:hover,
.tp-popup-action.pos-custom:hover {
    transform: translate(-50%, -50%) translateY(-2px);
}

.tp-public-countdown {
    min-height: calc(34px * var(--ad-countdown-scale, 1));
    padding: calc(8px * var(--ad-countdown-scale, 1)) calc(12px * var(--ad-countdown-scale, 1));
    font-size: calc(0.84rem * var(--ad-countdown-scale, 1));
}

@media (max-width: 600px) {
    .tp-banner-action,
    .tp-popup-action {
        min-height: calc(38px * var(--ad-btn-scale, 1));
        padding: calc(8px * var(--ad-btn-scale, 1)) calc(14px * var(--ad-btn-scale, 1));
        font-size: calc(0.86rem * var(--ad-btn-scale, 1));
    }

    .tp-public-countdown {
        min-height: calc(30px * var(--ad-countdown-scale, 1));
        padding: calc(7px * var(--ad-countdown-scale, 1)) calc(10px * var(--ad-countdown-scale, 1));
        font-size: calc(0.76rem * var(--ad-countdown-scale, 1));
    }
}

.tp-popup-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tp-popup-action.tp-popup-action-fixed {
    position: relative;
    inset: auto;
    transform: none;
    width: min(320px, 100%);
    margin: 12px auto 0;
    text-align: center;
}

.tp-popup-action.tp-popup-action-fixed:hover {
    transform: translateY(-2px);
}

.tp-popup-shell {
    transform-origin: center;
    animation: tpPopupZoomIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tp-popup-card {
    animation: none;
}

@keyframes tpPopupZoomIn {
    from {
        opacity: 0;
        transform: scale(0.72);
    }
    72% {
        opacity: 1;
        transform: scale(1.035);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
