/*
 * Estilos del banner - se inyectan como inline CSS en la mayoría de casos.
 * Este archivo existe como fallback y para referencia.
 * El CSS principal se genera en ANP_Banner::get_inline_css().
 */

#anp-promo-banner {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 12px 20px;
    text-align: center;
    z-index: 99999;
    box-sizing: border-box;
}

.anp-banner-pos-top {
    position: relative;
    width: 100%;
}

.anp-banner-pos-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.anp-promo-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.anp-promo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.anp-promo-headline {
    font-size: 16px;
    font-weight: 700;
}

.anp-promo-sub {
    font-size: 13px;
    opacity: 0.9;
}

.anp-promo-countdown {
    display: flex;
    gap: 6px;
}

.anp-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 8px;
    border-radius: 5px;
    min-width: 40px;
}

.anp-cd-num {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.anp-cd-lbl {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 2px;
}

.anp-promo-prices {
    display: flex;
    align-items: center;
    gap: 6px;
}

.anp-promo-old {
    font-size: 14px;
    opacity: 0.7;
}

.anp-promo-new {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.anp-promo-cta {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: opacity 0.2s;
}

.anp-promo-cta:hover {
    opacity: 0.85;
    color: #000;
}

@media (max-width: 600px) {
    .anp-promo-inner {
        flex-direction: column;
        gap: 10px;
    }

    .anp-promo-headline {
        font-size: 14px;
    }

    .anp-cd-num {
        font-size: 16px;
    }

    .anp-promo-new {
        font-size: 20px;
    }
}

/* El componente conserva el diseño y los controles del banner original.
 * Los selectores están limitados al banner para no alterar Divi ni la administración. */
.anp-offer-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: 14px 20px;
    color: #fff;
    line-height: 1.4;
    position: relative;
    z-index: 9999;
}
.anp-offer-root *, .anp-offer-root *::before, .anp-offer-root *::after { box-sizing: border-box; }
.anp-offer-mode-auto.anp-offer-pos-top:not(.anp-offer-preview) { position: sticky; top: 0; }
.anp-offer-mode-auto.anp-offer-pos-bottom:not(.anp-offer-preview) {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .2);
}
.anp-offer-preview { z-index: auto; }
.anp-offer-preview:has(.anp-offer-cta-has-icon) {
    padding-top: 36px;
    padding-right: 36px;
    overflow: visible;
}
.anp-offer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.anp-offer-root:has(.anp-offer-cta-has-icon),
.anp-offer-inner:has(.anp-offer-cta-has-icon) {
    overflow: visible;
}
.anp-offer-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.anp-offer-headline, .anp-offer-sub { overflow-wrap: anywhere; }
.anp-offer-sub { opacity: .9; }
.anp-offer-countdown-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.anp-offer-countdown { display: flex; gap: 6px; }
.anp-offer-cd-unit { display: flex; flex-direction: column; align-items: center; padding: 6px 8px; border-radius: 5px; min-width: 40px; }
.anp-offer-cd-num { line-height: 1; font-variant-numeric: tabular-nums; }
.anp-offer-cd-lbl { text-transform: uppercase; opacity: .85; margin-top: 2px; }
.anp-offer-cd-label { line-height: 1.4; }
.anp-offer-promo { white-space: nowrap; }
.anp-offer-enddate { opacity: .85; margin-top: 1px; }
.anp-offer-prices { display: flex; align-items: center; gap: 6px; }
.anp-offer-old { opacity: .7; }
.anp-offer-new { text-decoration: none; background: none; }
.anp-offer-root .anp-offer-cta, .anp-purchase-wrap .anp-offer-cta {
    display: inline-block;
    padding: 8px 20px;
    margin: 0;
    border-radius: 5px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    line-height: 1.4;
    font-family: inherit;
    box-shadow: none;
    transition: opacity .2s;
    box-sizing: border-box;
}
.anp-offer-root .anp-offer-cta-info.anp-offer-cta-has-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 8px calc(18px + var(--anp-wa-size, 36px) * 0.32) 8px 20px;
    margin: calc(var(--anp-wa-size, 36px) * 0.55) calc(var(--anp-wa-size, 36px) * 0.55) 4px 0;
    vertical-align: middle;
    z-index: 2;
}
.anp-offer-root .anp-offer-cta-label {
    position: relative;
    z-index: 1;
    display: inline-block;
}
.anp-offer-root .anp-offer-cta-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--anp-wa-size, 36px);
    height: var(--anp-wa-size, 36px);
    transform: translate(50%, -50%);
    pointer-events: none;
    line-height: 0;
    z-index: 3;
    overflow: visible;
    flex-shrink: 0;
    box-sizing: border-box;
}
.anp-offer-root .anp-offer-cta-icon-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}
.anp-offer-root .anp-offer-cta-icon-custom {
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
    background: #fff;
}
.anp-offer-root .anp-offer-cta-icon-whatsapp svg {
    display: block;
    width: 72%;
    height: 72%;
    overflow: visible;
    fill: currentColor !important;
    stroke: none !important;
}
.anp-offer-root .anp-offer-cta-icon-whatsapp path {
    fill: currentColor !important;
    stroke: none !important;
    stroke-width: 0 !important;
}
.anp-offer-root .anp-offer-cta-icon-custom img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 600px) {
    .anp-offer-root .anp-offer-cta-info.anp-offer-cta-has-icon {
        margin: calc(var(--anp-wa-size, 36px) * 0.5) calc(var(--anp-wa-size, 36px) * 0.5) 4px 0;
    }
}
.anp-offer-root .anp-offer-cta:hover, .anp-purchase-wrap .anp-offer-cta:hover { opacity: .85; text-decoration: none; }
.anp-offer-root .anp-offer-cta-info.anp-offer-cta-has-icon:hover { opacity: 1; }
.anp-offer-root .anp-offer-cta-info.anp-offer-cta-has-icon:hover .anp-offer-cta-label { opacity: .85; }
.anp-offer-root .anp-offer-cta:focus-visible, .anp-purchase-wrap .anp-offer-cta:focus-visible, .anp-offer-root .anp-offer-close:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.anp-offer-root .anp-offer-close {
    position: absolute;
    top: 4px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: .85;
    padding: 4px 10px;
    margin: 0;
    line-height: 1;
    font-weight: 300;
    font-family: inherit;
    box-shadow: none;
}
.anp-offer-root .anp-offer-close:hover { opacity: 1; }
.anp-offer-preview .anp-offer-close { cursor: default; }
.anp-offer-preview-mobile .anp-offer-inner { flex-direction: column; gap: 10px; }
.anp-test-bar {
    position: sticky;
    top: 0;
    z-index: 100000;
    background: #1d2327;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.anp-test-bar details { display: inline; }
.anp-test-bar-note { opacity: .8; }
.anp-test-bar-exit {
    margin-left: auto;
    background: #fff;
    color: #1d2327;
    border: 0;
    padding: 4px 10px;
    cursor: pointer;
}
.anp-purchase-wrap { display: inline-block; }
@media (max-width: 600px) {
    .anp-offer-inner { flex-direction: column; gap: 10px; }
}
