/* Cookie Consent Banner & Modal Styles */

/* Cookie Banner (Initial Notification) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner__content {
    flex: 1;
}

.cookie-banner__title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.cookie-banner__text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__text a {
    color: #0069ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.cookie-banner__text a:hover {
    border-bottom-color: #0069ff;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__button {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-banner__button--primary {
    background: #0069ff;
    color: #fff;
}

.cookie-banner__button--primary:hover {
    background: #0056cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 105, 255, 0.3);
}

.cookie-banner__button--secondary {
    background: #f4f4f4;
    color: #333;
}

.cookie-banner__button--secondary:hover {
    background: #e5e5e5;
}

.cookie-banner__button--tertiary {
    background: transparent;
    color: #666;
    padding: 12px 16px;
}

.cookie-banner__button--tertiary:hover {
    color: #0069ff;
    background: #f4f4f4;
}

/* Cookie Modal (Detailed Settings) */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cookie-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal__header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-modal__title {
    font-size: 26px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.cookie-modal__subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.cookie-modal__close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f4f4f4;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
    font-size: 20px;
}

.cookie-modal__close:hover {
    background: #e5e5e5;
    color: #333;
    transform: rotate(90deg);
}

.cookie-modal__body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-category__title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category__badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e5e5e5;
    color: #666;
}

.cookie-category__badge--required {
    background: #e3f2fd;
    color: #1976d2;
}

.cookie-category__description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle__slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked+.cookie-toggle__slider {
    background-color: #0069ff;
}

.cookie-toggle input:checked+.cookie-toggle__slider:before {
    transform: translateX(22px);
}

.cookie-toggle input:disabled+.cookie-toggle__slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal__footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-modal__button {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-modal__button--primary {
    background: #0069ff;
    color: #fff;
}

.cookie-modal__button--primary:hover {
    background: #0056cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 105, 255, 0.3);
}

.cookie-modal__button--secondary {
    background: #f4f4f4;
    color: #333;
}

.cookie-modal__button--secondary:hover {
    background: #e5e5e5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cookie-banner__actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner__button {
        width: 100%;
        text-align: center;
    }

    .cookie-modal__content {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }

    .cookie-modal__header {
        padding: 25px 20px 15px;
    }

    .cookie-modal__title {
        font-size: 22px;
        padding-right: 30px;
    }

    .cookie-modal__close {
        top: 20px;
        right: 20px;
    }

    .cookie-modal__body {
        padding: 20px;
    }

    .cookie-modal__footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
    }

    .cookie-modal__button {
        width: 100%;
    }
}

/* Body Scroll Lock */
body.cookie-modal-open {
    overflow: hidden;
}