html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #0b0c10;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    color: inherit;
    text-decoration: none;
}

#descolou-banner-root {
    flex: 0 0 auto;
    transform-origin: center center;
    will-change: transform;
}

.descolou-banner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #ffffff;
    background: #12161c;
    border: 0;
    border-radius: 0;
}

.descolou-banner[data-theme="theme1"] {
    background: #12161c;
}

.descolou-banner[data-theme="theme1"] .offer-card {
    background: rgba(8, 12, 17, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.descolou-banner[data-theme="theme1"] .cta-button {
    background: linear-gradient(135deg, #27c48f 0%, #18a66f 100%);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(24, 166, 111, 0.24);
}

.descolou-banner[data-theme="theme1"] .offer-discount,
.descolou-banner[data-theme="theme1"] .banner-dot.is-active {
    background: #18a66f;
}

.descolou-banner[data-theme="theme2"] {
    background: #201218;
}

.descolou-banner[data-theme="theme2"] .offer-card {
    background: rgba(22, 11, 16, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.descolou-banner[data-theme="theme2"] .cta-button {
    background: linear-gradient(135deg, #18a66f 0%, #0f7b53 100%);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 123, 83, 0.24);
}

.descolou-banner[data-theme="theme2"] .offer-discount,
.descolou-banner[data-theme="theme2"] .banner-dot.is-active {
    background: #ff5a7d;
}

.descolou-banner::before {
    content: none;
}

.banner-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 4px;
    height: 100%;
    padding: 4px;
}

.banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.brand-logo {
    display: block;
    width: 78px;
    height: auto;
    object-fit: contain;
}

.brand-caption {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.format-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.66);
    font-size: 9px;
    font-weight: 700;
}

.banner-copy {
    display: grid;
    gap: 1px;
}

.banner-headline {
    margin: 0;
    font-size: 12px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.banner-subheadline {
    margin: 0;
    font-size: 9px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.62);
}

.banner-stage {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.banner-stage.is-entering {
    animation: bannerSlideIn 420ms ease;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(var(--banner-cols, 1), minmax(0, 1fr));
    grid-template-rows: repeat(var(--banner-rows, 1), minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    height: 100%;
}

.offers-grid.is-focus-grid {
    gap: 4px;
}

.offer-card {
    display: grid;
    grid-template-columns: var(--media-size, 64px) minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    padding: 6px;
    border-radius: 12px;
    background: rgba(8, 12, 17, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
}

.descolou-banner .offer-card.is-focus-only {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.offer-media {
    position: relative;
    width: var(--media-size, 64px);
    min-width: var(--media-size, 64px);
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.offer-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.offer-card.is-focus-only .offer-media {
    width: 100%;
    min-width: 0;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    background: #ffffff;
}

.offer-card.is-focus-only .offer-media img {
    padding: 0;
    object-fit: contain;
}

.offer-discount {
    position: absolute;
    top: 5px;
    left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.94);
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.offer-discount.is-focus-discount {
    top: 8px;
    left: 8px;
    bottom: auto;
    min-height: 22px;
    padding: 0 9px;
    font-size: 11px;
    z-index: 1;
    transform: none;
}

.callout-banner {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 18px;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 22%),
        linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
}

.descolou-banner[data-theme="theme1"] .callout-banner {
    background:
        radial-gradient(circle at top right, rgba(255, 231, 153, 0.24), transparent 22%),
        linear-gradient(135deg, #4c1d95 0%, #ea580c 55%, #f59e0b 100%);
}

.descolou-banner[data-theme="theme2"] .callout-banner {
    background:
        radial-gradient(circle at top right, rgba(255, 191, 206, 0.26), transparent 22%),
        linear-gradient(135deg, #831843 0%, #be123c 48%, #fb7185 100%);
}

.callout-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
    gap: 10px;
    max-width: 78%;
    animation: calloutRise 520ms ease;
}

.callout-logo {
    width: 104px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.callout-title {
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.callout-subtitle {
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

.callout-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    animation: ctaPulse 2.8s ease-in-out infinite;
}

.callout-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.9;
    animation: calloutFloat 8s ease-in-out infinite;
}

.callout-orb-1 {
    top: -18px;
    right: -10px;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.22);
}

.callout-orb-2 {
    bottom: 24px;
    right: 22px;
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.18);
    animation-delay: 1.2s;
}

.callout-orb-3 {
    bottom: -12px;
    left: -16px;
    width: 94px;
    height: 94px;
    background: rgba(255, 255, 255, 0.14);
    animation-delay: 2s;
}

.offer-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    align-content: start;
    min-height: 0;
}

.offer-store {
    font-size: 8px;
    font-weight: 800;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.offer-title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 900;
}

.offer-prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.offer-price {
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.offer-old-price {
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    text-decoration: line-through;
}

.offer-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.offer-bottom.is-hidden {
    display: none;
}

.offer-prices.has-inline-cta {
    justify-content: space-between;
    flex-wrap: nowrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #27c48f 0%, #18a66f 100%);
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(24, 166, 111, 0.24);
    animation: ctaPulse 2.8s ease-in-out infinite;
}

.banner-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.banner-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.banner-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.banner-dot.is-active {
    width: 14px;
    background: #ffb400;
}

.banner-empty {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
}

.banner-empty-logo {
    display: block;
    width: 104px;
    height: auto;
    margin: 0 auto 10px;
}

.banner-empty strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.banner-empty span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
}

body[data-format="300x250"] .brand-logo,
body[data-format="336x280"] .brand-logo {
    width: 74px;
}

body[data-format="300x250"] .banner-headline,
body[data-format="336x280"] .banner-headline {
    font-size: 11px;
}

body[data-format="300x250"] .banner-subheadline,
body[data-format="336x280"] .banner-subheadline {
    display: none;
}

body[data-format="728x90"] .banner-shell,
body[data-format="320x100"] .banner-shell {
    grid-template-rows: auto 1fr;
    padding: 6px;
    gap: 5px;
}

body[data-format="728x90"] .banner-shell {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
}

body[data-format="728x90"] .banner-header {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
}

body[data-format="728x90"] .banner-copy {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    gap: 1px;
    align-content: center;
    min-width: 0;
}

body[data-format="728x90"] .banner-stage {
    grid-column: 1 / -1;
    grid-row: 2;
}

body[data-format="728x90"] .brand-logo,
body[data-format="320x100"] .brand-logo {
    width: 72px;
}

body[data-format="728x90"] .banner-headline {
    font-size: 11px;
    line-height: 1.02;
}

body[data-format="728x90"] .banner-subheadline {
    display: none;
}

body[data-format="728x90"] .brand-caption,
body[data-format="320x100"] .brand-caption,
body[data-format="728x90"] .format-pill,
body[data-format="320x100"] .format-pill,
body[data-format="320x100"] .banner-copy,
body[data-format="728x90"] .banner-footer,
body[data-format="320x100"] .banner-footer {
    display: none;
}

body[data-format="728x90"] .offer-card,
body[data-format="320x100"] .offer-card {
    --media-size: 44px;
    align-items: center;
    padding: 5px;
    gap: 5px;
    border-radius: 10px;
}

body[data-format="728x90"] .offer-card.is-focus-only,
body[data-format="320x100"] .offer-card.is-focus-only {
    padding: 0;
}

body[data-format="728x90"] .offer-title,
body[data-format="320x100"] .offer-title {
    font-size: 9px;
}

body[data-format="728x90"] .offer-price,
body[data-format="320x100"] .offer-price {
    font-size: 11px;
}

body[data-format="728x90"] .offer-prices.has-inline-cta,
body[data-format="320x100"] .offer-prices.has-inline-cta {
    gap: 4px;
}

body[data-format="728x90"] .offer-old-price,
body[data-format="320x100"] .offer-old-price {
    display: none;
}

body[data-format="728x90"] .cta-button,
body[data-format="320x100"] .cta-button {
    min-height: 18px;
    padding: 0 6px;
    font-size: 8px;
    flex: 0 0 auto;
}

body[data-format="970x250"] .offer-card {
    --media-size: 64px;
}

body[data-format="970x250"] .offer-media,
body[data-format="336x280"] .offer-media,
body[data-format="300x250"] .offer-media,
body[data-format="728x90"] .offer-media,
body[data-format="320x100"] .offer-media {
    aspect-ratio: auto;
}

body[data-format="970x250"] .offer-title {
    font-size: 11px;
}

body[data-format="970x250"] .offer-price {
    font-size: 14px;
}

body[data-format="160x600"] .banner-shell,
body[data-format="300x600"] .banner-shell {
    padding: 8px;
}

body[data-format="160x600"] .brand-logo {
    width: 70px;
}

body[data-format="160x600"] .brand-caption,
body[data-format="160x600"] .format-pill,
body[data-format="300x600"] .format-pill {
    display: none;
}

body[data-format="160x600"] .banner-headline {
    font-size: 11px;
}

body[data-format="160x600"] .banner-subheadline,
body[data-format="160x600"] .banner-footer {
    display: none;
}

body[data-format="160x600"] .offer-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    padding: 6px;
    gap: 6px;
}

body[data-format="160x600"] .offer-media {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1 / 1;
}

body[data-format="160x600"] .offer-title {
    font-size: 10px;
}

body[data-format="160x600"] .offer-price {
    font-size: 12px;
}

body[data-format="160x600"] .offer-old-price {
    display: none;
}

body[data-format="160x600"] .cta-button {
    min-height: 20px;
    font-size: 8px;
    padding: 0 7px;
}

body[data-format="300x600"] .offer-card {
    --media-size: 84px;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    padding: 7px;
    gap: 7px;
}

body[data-format="300x600"] .offer-media {
    width: 84px;
    min-width: 84px;
    height: 100%;
    aspect-ratio: auto;
}

body[data-format="300x600"] .offer-copy {
    gap: 4px;
    align-content: center;
}

body[data-format="300x600"] .offer-store {
    font-size: 8px;
}

body[data-format="300x600"] .offer-title {
    font-size: 11px;
    line-height: 1.1;
}

body[data-format="300x600"] .offer-price {
    font-size: 14px;
}

body[data-format="300x600"] .offer-old-price {
    font-size: 9px;
}

body[data-format="300x600"] .cta-button {
    min-height: 22px;
    padding: 0 8px;
    font-size: 9px;
}

body[data-format="300x250"] .callout-title,
body[data-format="336x280"] .callout-title {
    font-size: 20px;
}

body[data-format="728x90"] .callout-banner,
body[data-format="320x100"] .callout-banner {
    padding: 10px 12px;
}

body[data-format="728x90"] .callout-content,
body[data-format="320x100"] .callout-content {
    max-width: 100%;
    gap: 4px;
}

body[data-format="728x90"] .callout-logo,
body[data-format="320x100"] .callout-logo {
    width: 72px;
}

body[data-format="728x90"] .callout-title,
body[data-format="320x100"] .callout-title {
    font-size: 12px;
}

body[data-format="728x90"] .callout-subtitle,
body[data-format="320x100"] .callout-subtitle {
    font-size: 8px;
    line-height: 1.2;
}

body[data-format="728x90"] .callout-cta,
body[data-format="320x100"] .callout-cta {
    min-height: 20px;
    padding: 0 8px;
    font-size: 8px;
}

body[data-format="160x600"] .callout-content {
    max-width: 100%;
}

body[data-format="160x600"] .callout-title {
    font-size: 18px;
}

body[data-format="300x600"] .callout-title {
    font-size: 24px;
}

@keyframes ctaPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 16px rgba(50, 255, 0, 0.22);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 20px rgba(50, 255, 0, 0.34);
    }
}

@keyframes calloutFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -8px, 0) scale(1.04);
    }
}

@keyframes calloutRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
