/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--navy, #0B1221);
    color: var(--white, #FFFFFF);
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

/* Hide cookie banner when accept or reject is checked */
#accept-all-cookies:checked ~ .cookie-banner,
#reject-cookies:checked ~ .cookie-banner {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide checkboxes */
.cookie-checkbox {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-accept {
    background-color: var(--mint, #34D399);
    color: var(--white, #FFFFFF);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.cookie-accept:hover {
    background-color: #10B981;
}

.cookie-reject {
    background-color: transparent;
    color: var(--gray-300, #D1D5DB);
    border: 1px solid var(--gray-600, #4B5563);
    padding: 7px 15px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cookie-reject:hover {
    background-color: var(--gray-800, #1F2937);
    color: var(--white, #FFFFFF);
}

.cookie-customize {
    background-color: transparent;
    color: var(--blue, #2563EB);
    border: 1px solid var(--blue, #2563EB);
    padding: 7px 15px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cookie-customize:hover {
    background-color: var(--blue, #2563EB);
    color: var(--white, #FFFFFF);
}

.cookie-link {
    color: var(--gray-300, #D1D5DB);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: var(--white, #FFFFFF);
    text-decoration: underline;
}

/* Cookie Customizer Modal */
.cookie-customizer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show customizer when customize checkbox is checked */
#customize-cookies:checked ~ #cookie-customizer {
    display: flex;
    opacity: 1;
}

/* Hide customizer when save or cancel is clicked */
#save-preferences:checked ~ #cookie-customizer,
#cancel-customizer:checked ~ #cookie-customizer {
    display: none !important;
    opacity: 0 !important;
}

.customizer-content {
    background-color: var(--white, #FFFFFF);
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#customize-cookies:checked ~ #cookie-customizer .customizer-content {
    transform: scale(1);
}

.customizer-content h3 {
    color: var(--navy, #0B1221);
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200, #E5E7EB);
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy, #0B1221);
    margin-bottom: 8px;
}

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

.cookie-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-600, #4B5563);
    line-height: 1.4;
    margin-left: 30px;
}

.customizer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200, #E5E7EB);
}

.cookie-save {
    background-color: var(--blue, #2563EB);
    color: var(--white, #FFFFFF);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.cookie-save:hover {
    background-color: #1D4ED8;
}

.cookie-cancel {
    background-color: transparent;
    color: var(--gray-600, #4B5563);
    border: 1px solid var(--gray-300, #D1D5DB);
    padding: 9px 19px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cookie-cancel:hover {
    background-color: var(--gray-50, #F9FAFB);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .customizer-content {
        padding: 24px;
        margin: 10px;
    }
    
    .customizer-actions {
        flex-direction: column;
    }
    
    .cookie-save,
    .cookie-cancel {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-accept,
    .cookie-reject,
    .cookie-customize {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }
    
    .customizer-content {
        padding: 20px;
    }
    
    .cookie-category label {
        align-items: center;
    }
}