/* DPDP Act 2023 Compliant Cookie Consent & Privacy Manager */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(74, 143, 115, 0.2);
    z-index: 999999;
    padding: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: cookieSlideUp 0.4s ease-out forwards;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-banner-header .cookie-icon {
    width: 38px;
    height: 38px;
    background: rgba(74, 143, 115, 0.12);
    color: var(--prayag-teal, #4a8f73);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.cookie-banner-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.cookie-banner-body p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 16px;
}

.cookie-banner-body a {
    color: var(--prayag-teal, #4a8f73);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-preferences-panel {
    display: none;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.cookie-pref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.cookie-pref-item:last-child {
    border-bottom: none;
}

.cookie-pref-info {
    max-width: 80%;
}

.cookie-pref-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-pref-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin: 2px 0 0;
}

.cookie-pref-badge {
    font-size: 0.65rem;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-cookie-accept {
    background: var(--prayag-teal, #4a8f73);
    color: #ffffff;
    flex: 1;
}

.btn-cookie-accept:hover {
    background: #39745d;
    color: #ffffff;
}

.btn-cookie-reject {
    background: #f1f5f9;
    color: #334155;
}

.btn-cookie-reject:hover {
    background: #e2e8f0;
}

.btn-cookie-pref {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.btn-cookie-pref:hover {
    background: #f8fafc;
    color: #334155;
}

/* Floating Privacy & Cookie Button */
.privacy-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: var(--prayag-teal, #4a8f73);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99998;
    border: 1px solid rgba(74, 143, 115, 0.2);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.privacy-floating-btn:hover {
    transform: scale(1.08);
    background: var(--prayag-teal, #4a8f73);
    color: #ffffff;
}

@media (max-width: 576px) {
    .cookie-banner-wrapper {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }
    .cookie-actions {
        flex-direction: column;
    }
    .btn-cookie {
        width: 100%;
    }
    .privacy-floating-btn {
        bottom: 14px;
        left: 14px;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}
