/**
 * SIMPLE Cookie Consent - Clean Tiles Design
 * No fancy designs, just works!
 */

/* Simple popup - bottom right */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    max-width: 400px;
}

/* Simple white box */
.cookie-consent-modal {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Header */
.cookie-consent-header {
    background: #0ea5e9;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent-header h2 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Close button */
.cookie-consent-close {
    background: white;
    border: none;
    color: #0ea5e9;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.cookie-consent-close:hover {
    background: #f0f9ff;
}

/* Body */
.cookie-consent-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cookie-consent-body p {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* PDPA Badge */
.pdpa-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Category tiles */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.cookie-category {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.cookie-category label {
    display: flex;
    gap: 12px;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-category-content {
    flex: 1;
}

.cookie-category-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.cookie-category-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.required-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.cookie-category.disabled {
    opacity: 0.7;
}

.cookie-category.disabled input {
    cursor: not-allowed;
}

/* Footer buttons */
.cookie-consent-footer {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-consent-footer button,
.cookie-consent-footer a {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-accept-all {
    background: #10b981;
    color: white;
    flex: 1;
}

.btn-accept-all:hover {
    background: #059669;
}

.btn-accept-selected {
    background: #0ea5e9;
    color: white;
    flex: 1;
}

.btn-accept-selected:hover {
    background: #0284c7;
}

.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-reject:hover {
    background: #dc2626;
}

.btn-learn-more {
    background: white;
    color: #0ea5e9;
    border: 1px solid #e5e7eb;
}

.btn-learn-more:hover {
    background: #f0f9ff;
}

/* Simple cookie button */
.cookie-settings-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    background: #0ea5e9;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cookie-settings-btn:hover {
    background: #0284c7;
    transform: scale(1.05);
}

/* Mobile */
@media (max-width: 640px) {
    .cookie-consent-banner {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
    
    .cookie-consent-footer {
        flex-direction: column;
    }
    
    .cookie-consent-footer button,
    .cookie-consent-footer a {
        width: 100%;
    }
}

/* Slide in animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-banner {
    animation: slideInUp 0.3s ease-out;
}

/* Slide out animation */
@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.cookie-consent-banner.hiding {
    animation: slideOutDown 0.3s ease-out forwards;
}


