/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform var(--transition-default);
    padding: 0;
    margin: 0;
}

.cookie-consent-banner--visible {
    transform: translateY(0);
}

.cookie-consent-banner__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-consent-banner__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .cookie-consent-banner__content {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

.cookie-consent-banner__text {
    flex: 1;
}

.cookie-consent-banner__title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark-blue);
    margin-bottom: 0.5rem;
}

.cookie-consent-banner__description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

.cookie-consent-banner__link {
    color: var(--color-accent-orange);
    text-decoration: underline;
    transition: color var(--transition-default);
}

.cookie-consent-banner__link:hover {
    color: var(--color-primary-dark-blue);
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-consent-banner__btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-default);
    white-space: nowrap;
}

.cookie-consent-banner__btn--primary {
    background: var(--color-accent-orange);
    color: var(--color-white);
}

.cookie-consent-banner__btn--primary:hover {
    background: #e0991f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 168, 37, 0.3);
}

.cookie-consent-banner__btn--secondary {
    background: var(--color-white);
    color: var(--color-primary-dark-blue);
    border: 2px solid var(--color-primary-dark-blue);
}

.cookie-consent-banner__btn--secondary:hover {
    background: var(--color-primary-dark-blue);
    color: var(--color-white);
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-default);
}

.cookie-preferences-modal--visible {
    opacity: 1;
}

.cookie-preferences-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-preferences-modal__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-white);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform var(--transition-default);
}

.cookie-preferences-modal--visible .cookie-preferences-modal__container {
    transform: scale(1);
}

.cookie-preferences-modal__content {
    padding: 2rem;
}

.cookie-preferences-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-grey-light);
}

.cookie-preferences-modal__title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark-blue);
    margin: 0;
}

.cookie-preferences-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-dark);
    padding: 0.5rem;
    transition: color var(--transition-default);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-preferences-modal__close:hover {
    color: var(--color-accent-orange);
}

.cookie-preferences-modal__intro {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}

.cookie-preferences-modal__categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cookie-category {
    padding: 1.5rem;
    background: var(--color-grey-light);
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: all var(--transition-default);
}

.cookie-category:hover {
    border-color: var(--color-primary-dark-blue);
}

.cookie-category__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-category__info {
    flex: 1;
}

.cookie-category__title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-dark-blue);
    margin-bottom: 0.5rem;
}

.cookie-category__description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

.cookie-category__toggle {
    flex-shrink: 0;
}

.cookie-category__status {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-grey-text);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle Switch */
.cookie-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.cookie-toggle__slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 9999px;
    transition: background-color var(--transition-default);
}

.cookie-toggle__slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform var(--transition-default);
}

.cookie-toggle:checked + .cookie-toggle__label .cookie-toggle__slider {
    background-color: var(--color-accent-orange);
}

.cookie-toggle:checked + .cookie-toggle__label .cookie-toggle__slider:before {
    transform: translateX(22px);
}

.cookie-toggle:disabled + .cookie-toggle__label {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-preferences-modal__footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-grey-light);
}

.cookie-preferences-modal__btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-default);
}

.cookie-preferences-modal__btn--primary {
    background: var(--color-accent-orange);
    color: var(--color-white);
}

.cookie-preferences-modal__btn--primary:hover {
    background: #e0991f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 168, 37, 0.3);
}

.cookie-preferences-modal__btn--secondary {
    background: var(--color-white);
    color: var(--color-primary-dark-blue);
    border: 2px solid var(--color-primary-dark-blue);
}

.cookie-preferences-modal__btn--secondary:hover {
    background: var(--color-primary-dark-blue);
    color: var(--color-white);
}

@media (max-width: 767px) {
    .cookie-consent-banner__container {
        padding: 1rem;
    }
    
    .cookie-consent-banner__actions {
        width: 100%;
    }
    
    .cookie-consent-banner__btn {
        flex: 1;
        min-width: 0;
    }
    
    .cookie-preferences-modal__content {
        padding: 1.5rem;
    }
    
    .cookie-preferences-modal__footer {
        flex-direction: column;
    }
    
    .cookie-preferences-modal__btn {
        width: 100%;
    }
}

