/* Cookie Consent Banner Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tg-color-white-default);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 30px 0;
    font-family: var(--tg-body-font-family);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--tg-border-2);
}

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

.cookie-consent__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-consent__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-consent__text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent__title {
    font-size: 18px;
    font-weight: var(--tg-fw-bold);
    color: var(--tg-heading-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cookie-consent__description {
    font-size: 14px;
    color: var(--tg-color-gray-11);
    line-height: 1.6;
    margin: 0;
}

.cookie-consent__description a {
    color: var(--tg-theme-primary);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cookie-consent__description a:hover {
    opacity: 0.8;
}

.cookie-consent__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent__btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: var(--tg-fw-semi-bold);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
    white-space: nowrap;
    font-family: var(--tg-body-font-family);
}

.cookie-consent__btn--accept {
    background: var(--tg-theme-primary);
    color: var(--tg-color-white-default);
}

.cookie-consent__btn--accept:hover {
    background: #0038CC;
    color: var(--tg-color-white-default);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 255, 0.4);
}

.cookie-consent__btn--reject {
    background: transparent;
    color: var(--tg-color-gray-11);
    border: 1px solid var(--tg-border-5);
}

.cookie-consent__btn--reject:hover {
    background: var(--tg-color-gray-1);
    border-color: var(--tg-border-7);
    color: var(--tg-body-color);
}

.cookie-consent__btn--settings {
    background: transparent;
    color: var(--tg-theme-primary);
    border: none;
    text-decoration: underline;
    padding: 12px 0;
}

.cookie-consent__btn--settings:hover {
    opacity: 0.8;
}

/* Cookie Settings Modal */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 2, 46, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.cookie-settings.show {
    display: flex;
    opacity: 1;
}

.cookie-settings__modal {
    background: var(--tg-color-white-default);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings.show .cookie-settings__modal {
    transform: scale(1);
}

.cookie-settings__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--tg-color-gray-1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--tg-body-color);
    font-size: 18px;
}

.cookie-settings__close:hover {
    background: var(--tg-color-gray-3);
    transform: rotate(90deg);
}

.cookie-settings__title {
    font-size: 24px;
    font-weight: var(--tg-fw-bold);
    color: var(--tg-heading-color);
    margin-bottom: 20px;
}

.cookie-settings__description {
    font-size: 14px;
    color: var(--tg-body-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.cookie-settings__category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--tg-border-2);
}

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

.cookie-settings__category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cookie-settings__category-title {
    font-size: 16px;
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-heading-color);
    margin: 0;
}

.cookie-settings__toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--tg-color-gray-5);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
    outline: none;
}

.cookie-settings__toggle:focus {
    outline: 2px solid var(--tg-theme-primary);
    outline-offset: 2px;
}

.cookie-settings__toggle:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-settings__toggle.active {
    background: var(--tg-theme-primary);
}

.cookie-settings__toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--tg-color-white-default);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.cookie-settings__toggle.active .cookie-settings__toggle-slider {
    transform: translateX(24px);
}

.cookie-settings__category-description {
    font-size: 13px;
    color: var(--tg-color-gray-11);
    line-height: 1.5;
    margin: 0;
}

.cookie-settings__actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cookie-settings__btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: var(--tg-fw-semi-bold);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
    font-family: var(--tg-body-font-family);
}

.cookie-settings__btn--save {
    background: var(--tg-theme-primary);
    color: var(--tg-color-white-default);
}

.cookie-settings__btn--save:hover {
    background: var(--tg-theme-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 255, 0.3);
}

.cookie-settings__btn--cancel {
    background: transparent;
    color: var(--tg-body-color);
    border: 1px solid var(--tg-border-5);
}

.cookie-settings__btn--cancel:hover {
    background: var(--tg-color-gray-1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 20px 0;
    }

    .cookie-consent__content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-consent__text {
        min-width: auto;
    }

    .cookie-consent__actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent__btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-settings__modal {
        padding: 30px 20px;
        margin: 10px;
    }

    .cookie-settings__title {
        font-size: 20px;
        padding-right: 40px;
    }

    .cookie-settings__actions {
        flex-direction: column;
    }

    .cookie-settings__btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent__title {
        font-size: 16px;
    }

    .cookie-consent__description {
        font-size: 13px;
    }

    .cookie-consent__btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Animation for cookie icon */
@keyframes cookiePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.cookie-consent__icon {
    display: inline-block;
    margin-right: 8px;
    animation: cookiePulse 2s ease-in-out infinite;
}

