/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    padding: 16px;
    background: rgba(26, 35, 50, 0.97);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(110%);
    transition: transform 0.35s ease;
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

.cookie-consent__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent__content {
    flex: 1;
    min-width: 0;
}

.cookie-consent__content p {
    color: #d7d7d7;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 8px;
}

.cookie-consent__content p:last-child {
    margin-bottom: 0;
}

.cookie-consent__content strong {
    color: #ffffff;
}

.cookie-consent__link {
    color: #da2c46;
    text-decoration: underline;
}

.cookie-consent__link:hover {
    color: #ff4d66;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent__btn {
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cookie-consent__btn--settings {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.cookie-consent__btn--settings:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.cookie-consent__btn--reject {
    background: transparent;
    border-color: #da2c46;
    color: #da2c46;
}

.cookie-consent__btn--reject:hover {
    background: rgba(218, 44, 70, 0.12);
}

.cookie-consent__btn--accept {
    background: #da2c46;
    color: #ffffff;
}

.cookie-consent__btn--accept:hover {
    background: #c02039;
}

/* Settings Modal */
.cookie-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-settings-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-settings-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.cookie-settings-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #ececec;
}

.cookie-settings-modal__header h3 {
    margin: 0;
    font-size: 20px;
    color: #1a2332;
}

.cookie-settings-modal__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
}

.cookie-settings-modal__close:hover {
    color: #da2c46;
}

.cookie-settings-modal__body {
    padding: 20px 22px;
}

.cookie-settings-modal__intro {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-setting-item:last-child {
    border-bottom: 0;
}

.cookie-setting-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-setting-item__info strong {
    color: #1a2332;
    font-size: 15px;
}

.cookie-setting-item__info span {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.25s;
}

.cookie-switch__slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
}

.cookie-switch input:checked + .cookie-switch__slider {
    background: #da2c46;
}

.cookie-switch input:checked + .cookie-switch__slider:before {
    transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-switch__slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-settings-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid #ececec;
    background: #fafafa;
}

body.cookie-settings-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .cookie-consent {
        padding: 14px;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-settings-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-settings-modal__footer .cookie-consent__btn {
        width: 100%;
    }
}
