/* Cookie Consent Banner Styles */

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid var(--buttonColor, #F98A07);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    font-family: var(--bodyText, 'Barlow', sans-serif);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner-text h3 {
    color: var(--darkColor, #1D1A31);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-banner-text p {
    color: var(--textColor, #000000);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.cookie-banner-text a {
    color: var(--buttonColor, #F98A07);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--darkOrange, #FA581C);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--bodyText, 'Barlow', sans-serif);
    min-width: 120px;
}

.cookie-btn-primary {
    background-color: var(--buttonColor, #F98A07);
    color: white;
}

.cookie-btn-primary:hover {
    background-color: var(--darkOrange, #FA581C);
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: var(--darkColor, #1D1A31);
    border: 1px solid var(--darkColor, #1D1A31);
}

.cookie-btn-secondary:hover {
    background-color: var(--darkColor, #1D1A31);
    color: white;
}

/* Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--borderColor, #eee);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    color: var(--darkColor, #1D1A31);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--darkGreyColor, #979797);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background-color: var(--greyColor, #f7f7f7);
    color: var(--darkColor, #1D1A31);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--borderColor, #eee);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header h4 {
    color: var(--darkColor, #1D1A31);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-category-header p {
    color: var(--textColor, #000000);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-category-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-category-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--buttonColor, #F98A07);
}

.cookie-category-toggle label {
    color: var(--darkColor, #1D1A31);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.cookie-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--borderColor, #eee);
    display: flex;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 1rem;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Footer Button */
.footer-links {
    display: flex;
    align-items: center;
}

.footer-link-btn {
    background: none;
    border: none;
    color: var(--textColorWhite, #ffffff);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    font-weight: 400;
    text-underline-offset: 0.3rem;
    /* transition: color 0.2s ease; */
}

.footer-link-btn:hover {
    /* color: var(--buttonColor, #F98A07); */
    background-color: transparent;
}

.footer-links a {
    color: var(--textColorWhite, #ffffff);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.25rem 0.5rem;
    text-underline-offset: 0.3rem;
}

/* Animation */
.cookie-banner {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-modal {
    animation: fadeIn 0.2s ease-out;
}

.cookie-modal-content {
    animation: scaleIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
