/* TNL Addons Pro — Cookie Consent Bar */

.tnl-cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 14px 20px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.18);
    transform: translateY(0);
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: .88rem;
    line-height: 1.5;
}

.tnl-cookie-bottom { bottom: 0; box-shadow: 0 -4px 24px rgba(0,0,0,.18); }
.tnl-cookie-top    { top: 0;    box-shadow: 0  4px 24px rgba(0,0,0,.18); }

/* Estado oculto */
.tnl-cookie-bar.tnl-cookie-hidden {
    opacity: 0;
    pointer-events: none;
}
.tnl-cookie-bottom.tnl-cookie-hidden { transform: translateY(100%); }
.tnl-cookie-top.tnl-cookie-hidden    { transform: translateY(-100%); }

/* Layout interno */
.tnl-cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tnl-cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.tnl-cookie-text {
    flex: 1;
    min-width: 200px;
}
.tnl-cookie-text p {
    margin: 0;
    opacity: .92;
}
.tnl-cookie-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Acciones */
.tnl-cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.tnl-cookie-countdown {
    font-size: .8rem;
    opacity: .7;
    white-space: nowrap;
}
.tnl-cookie-countdown strong {
    font-variant-numeric: tabular-nums;
    min-width: 1ch;
    display: inline-block;
}

/* Botón */
.tnl-cookie-btn {
    background: var(--tnl-btn-bg, #ffffff);
    color: var(--tnl-btn-color, #0a192f);
    border: none;
    border-radius: 30px;
    padding: 9px 22px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.tnl-cookie-btn:hover  { opacity: .88; }
.tnl-cookie-btn:active { transform: scale(.97); }

/* Responsive */
@media (max-width: 600px) {
    .tnl-cookie-bar { padding: 14px 14px 16px; }

    .tnl-cookie-inner {
        gap: 10px;
    }
    .tnl-cookie-icon { display: none; } /* limpio en móvil */

    .tnl-cookie-actions {
        width: 100%;
        justify-content: space-between;
    }
    .tnl-cookie-btn {
        flex: 1;
        text-align: center;
        padding: 10px 14px;
    }
}

@media (max-width: 360px) {
    .tnl-cookie-bar { font-size: .82rem; }
}
