.agreement-cookie-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 99999;
}

.agreement-cookie-modal {
    background: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999999;
    max-height: 90vh;
    overflow-y: auto;
}

.agreement-cookie-modal-block {
    font-family: Arial, sans-serif;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.agreement-cookie-title {
    width: 260px;
    margin-right: 20px;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.agreement-cookie-content {
    height: auto;
    width: 625px;
    font-weight: 400;
    color: #1a1a1a;
    transition: all .2s ease-out;
    font-size: 14px;
    line-height: 20px;
    flex-shrink: 0;
}

.agreement-cookie-content-text {
    margin-bottom: 8px;
}

.agreement-cookie-content-buttons {
    display: flex;
    justify-content: space-between;
    margin: 32px 0px 0px 0px;
    gap: 8px;
}

.agreement-cookie-content-reject-btn {
    border: 1px solid #e6e8eb;
    border-radius: 4px;
    background-color: #fff;
    height: 48px;
    min-width: 124px;
    min-height: 48px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
}

.agreement-cookie-content-reject-btn:hover {
    background-color: #f7f8fa;
}

.agreement-cookie-content-reject-btn:active {
    background-color: #ebedf0;
}

.agreement-cookie-content-accept-btn {
    border: 1px solid #07c;
    border-radius: 4px;
    background-color: #07c;
    height: 48px;
    min-width: 124px;
    min-height: 48px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
}

.agreement-cookie-content-accept-btn:hover {
    border: 1px solid #006ebd;
    background-color: #006ebd;
}

.agreement-cookie-content-accept-btn:active {
    border: 1px solid #006ebd;
    background-color: #0068b2;
}

.agreement-cookie-settings-link {
    color: #1a1a1a;
    text-decoration: underline;
}

.agreement-cookie-settings-link:hover {
    color: #e52e6b;
    text-decoration: underline;
}

.agreement-cookie-settings-link:active {
    color: #cc215a;
    text-decoration: underline;
}

.agreement-cookie-policy-link {
    color: #1a1a1a;
    text-decoration: underline;
}

.agreement-cookie-policy-link:hover {
    color: #07c;
    text-decoration: underline;
}

.agreement-cookie-policy-link:active {
    color: #1a1a1a;
    text-decoration: underline;
}

/*
2-nd window starts here
*/

.settings-cookie-option{
    border-bottom: 1px solid #e6e8eb;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.option-cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.option-cookie-title {
    width: 260px;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.option-cookie-toggle {
    width: 35px;
    height: 20px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
    margin-top: 2px;
}

.option-cookie-toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 2px;
    transition: transform 0.3s;
}

.option-cookie-toggle.active {
    background: #007bff;
}

.option-cookie-toggle.active::after {
    transform: translateX(16px);
}

.option-cookie-description {
    margin: 15px 0px 15px 0px;
    font-size: 14px;
    line-height: 1.4;
}

.settings-cookie-info {
    color: rgb(160, 161, 163);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    margin-top: 20px;
}

.settings-cookie-policy-link {
    color: rgb(160, 161, 163);
    text-decoration: underline;
}

.settings-cookie-policy-link:hover {
    color: rgb(0, 119, 204);
    text-decoration: underline;
}

.settings-cookie-buttons {
    margin-top: 32px;
    display: flex;
    gap: 8px;
}

.settings-cookie-buttons .agreement-cookie-content-reject-btn,
.settings-cookie-buttons .agreement-cookie-content-accept-btn {
    flex: 1;
    min-width: 120px;
}


@media (max-width: 1024px) {
    .agreement-cookie-modal{
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }

    .agreement-cookie-modal-block{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 25px 20px;
    }

    .agreement-cookie-title {
        align-self: center;
        text-align: center;
        margin: 0 0 20px 0;
        width: 100%;
        max-width: 400px;
    }

    .agreement-cookie-content {
        width: 100%;
        max-width: 500px;
    }

    .agreement-cookie-content-buttons{
        flex-direction: column-reverse;
        width: 100%;
        margin-top: 24px;
    }

    .agreement-cookie-content-reject-btn,
    .agreement-cookie-content-accept-btn{
        width: 100%;
        margin-top: 8px;
    }

    .settings-cookie-buttons {
        flex-direction: row;
        width: 100%;
    }

    .settings-cookie-buttons .agreement-cookie-content-reject-btn,
    .settings-cookie-buttons .agreement-cookie-content-accept-btn {
        width: 100%;
    }

    .option-cookie-header {
        flex-direction: column;
        gap: 10px;
    }

    .option-cookie-title {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .agreement-cookie-modal-block {
        padding: 20px 15px;
    }

    .agreement-cookie-title {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .agreement-cookie-content {
        font-size: 13px;
        line-height: 1.4;
    }

    .agreement-cookie-content-text {
        margin-bottom: 12px;
    }

    .agreement-cookie-content-buttons {
        margin-top: 20px;
    }

    .agreement-cookie-content-reject-btn,
    .agreement-cookie-content-accept-btn {
        height: 44px;
        font-size: 13px;
    }

    .settings-cookie-option {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .option-cookie-title {
        font-size: 15px;
        line-height: 1.3;
    }

    .option-cookie-description {
        font-size: 13px;
        line-height: 1.4;
        margin: 10px 0;
    }

    .settings-cookie-buttons {
        margin-top: 25px;
    }
}


@media (max-width: 480px) {
    .agreement-cookie-modal {
        max-height: 85vh;
    }

    .agreement-cookie-modal-block {
        padding: 15px 12px;
    }

    .agreement-cookie-title {
        font-size: 18px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .agreement-cookie-content {
        font-size: 14px;
    }

    .agreement-cookie-content-buttons {
        margin-top: 15px;
    }

    .agreement-cookie-content-reject-btn,
    .agreement-cookie-content-accept-btn {
        height: 42px;
        font-size: 12px;
    }

    .option-cookie-toggle {
        width: 32px;
        height: 18px;
    }

    .option-cookie-toggle::after {
        width: 12px;
        height: 12px;
        top: 3px;
        left: 2px;
    }

    .option-cookie-toggle.active::after {
        transform: translateX(14px);
    }
}


@media (max-width: 896px) and (max-height: 500px) and (orientation: landscape) {
    .agreement-cookie-modal {
        max-height: 80vh;
        overflow-y: auto;
    }

    .agreement-cookie-modal-block {
        padding: 15px;
    }

    .agreement-cookie-title {
        margin-bottom: 10px;
    }

    .agreement-cookie-content-text {
        margin-bottom: 6px;
    }

    .agreement-cookie-content-buttons {
        margin-top: 15px;
    }
}