.eci-fixed-banner {
    position: fixed;
    z-index: 2147482000;
    left: 50%;
    bottom: 14px;
    width: min(var(--eci-banner-width), calc(100vw - 40px));
    transform: translate3d(-50%, 0, 0);
    opacity: 1;
    visibility: visible;
    transition: transform .24s ease, opacity .2s ease, visibility .2s ease;
}


.eci-fixed-banner.is-geo-pending {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.eci-fixed-banner.is-hidden {
    transform: translate3d(-50%, calc(100% + 48px), 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.eci-fixed-banner__frame {
    position: relative;
    width: 100%;
    aspect-ratio: var(--eci-banner-ratio);
    max-height: var(--eci-banner-height);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 8px;
    box-shadow: 0 10px 34px rgba(17, 24, 39, .22), 0 2px 8px rgba(17, 24, 39, .08);
}

.eci-fixed-banner__link {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.eci-fixed-banner__frame img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    background: #fff;
}

.eci-fixed-banner__close,
.eci-fixed-banner-restore {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    cursor: pointer;
}

.eci-fixed-banner__close {
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    color: #1f2937;
    background: rgba(255,255,255,.94);
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
    transition: transform .15s ease, background .15s ease;
}

.eci-fixed-banner__close:hover,
.eci-fixed-banner__close:focus-visible {
    transform: scale(1.06);
    background: #fff;
}

.eci-fixed-banner__close svg,
.eci-fixed-banner-restore svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/*
 * Pestaña estilo AdSense: cuando el banner se cierra no desaparece del todo.
 * Queda una flecha pegada al borde inferior para volver a abrirlo.
 */
.eci-fixed-banner-restore {
    position: fixed;
    z-index: 2147482001;
    left: 50%;
    bottom: 0;
    display: none;
    place-items: center;
    width: 52px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, .16);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    color: #374151;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -3px 12px rgba(17, 24, 39, .14);
    transform: translateX(-50%);
    transition: height .15s ease, background .15s ease, box-shadow .15s ease;
}

.eci-fixed-banner-restore.is-visible {
    display: grid;
}

.eci-fixed-banner-restore:hover,
.eci-fixed-banner-restore:focus-visible {
    height: 32px;
    background: #fff;
    box-shadow: 0 -5px 16px rgba(17, 24, 39, .18);
}

.eci-fixed-banner-restore svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 782px) {
    .eci-fixed-banner {
        bottom: 10px;
        width: calc(100vw - 20px);
    }

    .eci-fixed-banner__frame {
        border-radius: 7px;
    }

    .eci-fixed-banner__close {
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
    }

    .eci-fixed-banner-restore {
        width: 50px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eci-fixed-banner,
    .eci-fixed-banner__close,
    .eci-fixed-banner-restore {
        transition: none;
    }
}

/* La zona transparente permite copiar sin alterar la creatividad. */
.eci-fixed-banner__frame .eci-fixed-banner__coupon {
    position: absolute; z-index: 1; display: block; box-sizing: border-box;
    margin: 0; padding: 0; border: 0; border-radius: 5px;
    background: transparent; box-shadow: none; cursor: copy;
    min-width: 0; min-height: 0; transform: none;
}
.eci-fixed-banner__frame .eci-fixed-banner__coupon:hover { background: rgba(255,255,255,.08); }
.eci-fixed-banner__frame .eci-fixed-banner__coupon:focus-visible { outline: 3px solid #ffd900; outline-offset: -3px; }
.eci-fixed-banner__toast {
    position: absolute; z-index: 3; bottom: 8px; left: 50%; transform: translateX(-50%);
    max-width: 90%; width: max-content; padding: 8px 14px; border-radius: 6px;
    background: #111; color: #fff; font: 600 14px/1.4 Arial, sans-serif;
    opacity: 0; visibility: hidden; pointer-events: none; text-align: center;
}
.eci-fixed-banner__toast.is-visible { opacity: 1; visibility: visible; }
