/*
 * XPANDSIA Cookie Consent Banner
 * Compliance: GDPR + UU PDP Indonesia + PDPA Malaysia
 * Position: bottom-center, non-blocking, brand-styled.
 * Renders only on first visit (then localStorage persists choice).
 */

.cookie-consent {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    max-width: 720px;
    background: rgba(26, 26, 26, 0.97);
    color: #fff;
    border: 1px solid rgba(255, 212, 0, 0.25);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    padding: 16px 18px;
    z-index: 1500; /* above WhatsApp + chatbot float */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; /* JS removes when needed */
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.5;
}

.cookie-consent.is-visible {
    display: flex !important;
    animation: cookieIn 0.3s ease-out;
}

@keyframes cookieIn {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to   { transform: translate(-50%, 0);    opacity: 1; }
}

.cookie-consent-text {
    flex: 1 1 240px;
    min-width: 0;
}

.cookie-consent-text a {
    color: #FFD400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-btn-accept {
    background: #FFD400;
    color: #000;
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
    .cookie-consent {
        bottom: 12px;
        padding: 14px;
        font-size: 13px;
    }
    .cookie-consent-actions {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
    }
}
