/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 25px 30px;
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease-out;
    max-width: 500px;
}

.cookie-consent-banner.show {
    display: block;
}

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

.cookie-consent-banner__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-banner__title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.cookie-consent-banner__text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.cookie-consent-banner__text a {
    color: #0d6efd;
    text-decoration: underline;
}

.cookie-consent-banner__text a:hover {
    color: #0a58ca;
}

.cookie-consent-banner__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-banner__button {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.cookie-consent-banner__button--accept {
    background: #198754;
    color: #ffffff;
}

.cookie-consent-banner__button--accept:hover {
    background: #157347;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.cookie-consent-banner__button--decline {
    background: #6c757d;
    color: #ffffff;
}

.cookie-consent-banner__button--decline:hover {
    background: #5c636a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.cookie-consent-banner__button--settings {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.cookie-consent-banner__button--settings:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Close Button */
.cookie-consent-banner__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cookie-consent-banner__close:hover {
    color: #333;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

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

.cookie-settings-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.cookie-settings-modal__header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.cookie-settings-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding-right: 30px;
}

.cookie-settings-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cookie-settings-modal__close:hover {
    color: #333;
}

.cookie-settings-modal__body {
    padding: 25px 30px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}

.cookie-settings-modal__intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cookie-category {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: #ccc;
}

.cookie-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
}

.cookie-category__info {
    flex: 1;
}

.cookie-category__name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.cookie-category__status {
    font-size: 12px;
    color: #198754;
    font-weight: 500;
}

.cookie-category__status--disabled {
    color: #6c757d;
}

.cookie-category__status--always {
    color: #0d6efd;
}

.cookie-category__toggle {
    margin-left: 15px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-switch__slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-switch__slider {
    background-color: #198754;
}

.toggle-switch input:checked + .toggle-switch__slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-switch__slider {
    background-color: #0d6efd;
    cursor: not-allowed;
    opacity: 0.7;
}

.toggle-switch__slider:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.cookie-category__body {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #ffffff;
    display: none;
}

.cookie-category__body.show {
    display: block;
}

.cookie-category__description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.cookie-category__expand {
    margin-left: 10px;
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
}

.cookie-category__expand.rotated {
    transform: rotate(180deg);
}

.cookie-settings-modal__footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
    flex-shrink: 0;
}

.cookie-settings-modal__footer .cookie-consent-banner__button {
    min-width: 140px;
}

/* Responsive Design */
@media (max-width: 576px) {
    .cookie-consent-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
        padding: 20px;
        max-width: 100%;
    }

    .cookie-consent-banner__title {
        font-size: 16px;
    }

    .cookie-consent-banner__text {
        font-size: 13px;
    }

    .cookie-consent-banner__button {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 100px;
    }

    .cookie-consent-banner__buttons {
        flex-direction: column;
    }

    .cookie-consent-banner__button {
        flex: none;
        width: 100%;
    }
}

/* Responsive for modal */
@media (max-width: 768px) {
    .cookie-settings-modal__content {
        max-height: 75vh;
        border-radius: 12px;
    }

    .cookie-settings-modal__header {
        padding: 20px;
    }

    .cookie-settings-modal__title {
        font-size: 18px;
    }

    .cookie-settings-modal__body {
        padding: 20px;
    }

    .cookie-category__header {
        padding: 15px;
    }

    .cookie-category__name {
        font-size: 15px;
    }

    .cookie-settings-modal__footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .cookie-settings-modal__footer .cookie-consent-banner__button {
        width: 100%;
    }
}
