/* ============================================================
   COOKIE CONSENT BANNER — consent-banner.css
   Modular file — only styles the banner injected by analytics.js
   Matches the site's liquid-glass / white-glass aesthetic.
   ============================================================ */

/* ── Banner container ── */
#ikhConsentBanner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: min(560px, calc(100vw - 32px));
    z-index: 999990;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity   0.35s ease;
    opacity: 0;
}

#ikhConsentBanner.ikb-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

#ikhConsentBanner.ikb-hidden {
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
}

/* ── Inner card ── */
.ikb-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(200%) blur(28px);
    -webkit-backdrop-filter: saturate(200%) blur(28px);
    border: 1.5px solid rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ── Cookie emoji ── */
.ikb-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Body text ── */
.ikb-body {
    flex: 1;
    min-width: 0;
}

.ikb-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1A1D20;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.ikb-desc {
    font-size: 0.78rem;
    color: #6C757D;
    line-height: 1.55;
    margin: 0;
}

.ikb-desc strong {
    color: #F58220;
    font-weight: 700;
}

/* ── Buttons ── */
.ikb-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    justify-content: center;
    align-self: center;
}

.ikb-btn {
    border: none;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: 0.02em;
    min-width: 100px;
}

.ikb-accept {
    background: linear-gradient(135deg, #F58220, #ff9f4d);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 130, 32, 0.35);
}

.ikb-accept:hover {
    background: linear-gradient(135deg, #e5720f, #F58220);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 130, 32, 0.45);
}

.ikb-decline {
    background: rgba(0, 0, 0, 0.05);
    color: #6C757D;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.ikb-decline:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #1A1D20;
    border-color: rgba(0, 0, 0, 0.15);
}

/* ── Toast notification (shown after toggle in Settings) ── */
.ikb-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: rgba(26, 29, 32, 0.92);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    z-index: 999995;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity   0.3s ease;
    pointer-events: none;
}

.ikb-toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.ikb-toast-success {
    border-left: 4px solid #22c55e;
}

.ikb-toast-info {
    border-left: 4px solid #56C4F8;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    #ikhConsentBanner {
        bottom: 12px;
    }

    .ikb-inner {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .ikb-actions {
        flex-direction: row;
        width: 100%;
    }

    .ikb-btn {
        flex: 1;
        text-align: center;
    }

    .ikb-icon {
        display: none;
    }

    .ikb-toast {
        width: calc(100vw - 32px);
        white-space: normal;
        text-align: center;
        border-radius: 14px;
    }
}
