.ua-user-agreement {
    background: var(--bg-main, #F1F5F9);
    width: 100%;
    box-sizing: border-box;
    padding: 100px 136px;
}

.ua-user-agreement__wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.ua-user-agreement__heading {
    color: var(--text-primary, #000);
    font-family: "Daikon", sans-serif;
    font-style: normal;
    font-weight: 500;
    line-height: 110%;
    margin: 0;
}

.ua-user-agreement__heading--main {
    font-size: var(--text-h2, 34px);
    margin-bottom: 40px;
}

.ua-user-agreement__heading--section {
    font-size: 24px;
    margin-bottom: 24px;
}

.ua-user-agreement__section {
    margin-bottom: 40px;
}

.ua-user-agreement__section:last-child {
    margin-bottom: 0;
}

.ua-user-agreement__card {
    display: flex;
    padding: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-radius: var(--border-radius-card, 18px);
    background: var(--bg-content, #FFF);
    box-shadow: 2px 4px 12px 0 rgba(119, 119, 119, 0.11);
    width: 100%;
    box-sizing: border-box;
}

.ua-user-agreement__text {
    color: var(--text-primary, #000);
    font-family: Daikon, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.ua-user-agreement__text strong {
    font-weight: 500;
    color: var(--text-primary, #000);
}

.ua-user-agreement__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.ua-user-agreement__list li {
    color: var(--text-primary, #000);
    font-family: Daikon, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding-left: 24px;
    position: relative;
}

.ua-user-agreement__button {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1279px) {
    .ua-user-agreement {
        padding: 64px 24px;
    }
}

@media (max-width: 599px) {
    .ua-user-agreement {
        padding: 42px 14px;
    }

    .ua-user-agreement__heading--main {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .ua-user-agreement__heading--section {
        font-size: 20px;
    }

    .ua-user-agreement__card {
        padding: 24px;
        border-radius: 12px;
    }
}

.ua-cookie-modal .ua-modal-wrapper {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.ua-cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}

.ua-cookie-modal-actions-wrapper {
    display: flex;
    gap: 12px;
}

.ua-cookie-modal .ua-modal-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.ua-cookie-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.ua-cookie-tab {
    margin-top: 16px;
    border-bottom: 1px solid var(--border-color-divider, #e2e8f0);
}

.ua-cookie-tab:last-child {
    border-bottom: none;
}

.ua-cookie-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ua-cookie-tab-title {
    font-family: Daikon, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary, #000000);
    margin: 0;
    flex-grow: 1;
}

.ua-cookie-tab-description {
    font-family: Daikon, sans-serif;
    font-size: 14px;
    color: var(--text-secondary, #475569);
    line-height: 140%;
    margin: 12px 0 0 0;
}

.ua-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.ua-cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-disabled, #CBD5E1);
    transition: 0.3s;
    border-radius: 24px;
}

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

.ua-cookie-toggle input:checked + .ua-cookie-toggle-slider {
    background-color: var(--accent-primary, #0350A5);
}

.ua-cookie-toggle input:checked + .ua-cookie-toggle-slider:before {
    transform: translateX(20px);
}

.ua-cookie-toggle--disabled {
    cursor: not-allowed;
}

.ua-cookie-toggle--disabled .ua-cookie-toggle-slider {
    cursor: not-allowed;
    background-color: var(--accent-primary, #0350A5);
    opacity: 0.6;
}

.ua-cookie-toggle--disabled input {
    cursor: not-allowed;
}

.ua-cookie-toggle-wrapper.disabled {
    cursor: not-allowed;
}

.ua-cookie-tab-header .ua-tooltip-wrapper .ua-tooltip {
    bottom: calc(100% - 85px);
}

@media (max-width: 768px) {
    .ua-cookie-modal .ua-modal-wrapper {
        width: 95%;
        max-height: 85vh;
    }

    .ua-cookie-modal-actions {
        flex-direction: column-reverse;
    }

    .ua-cookie-modal-actions-wrapper {
        flex-direction: column;
    }

    .ua-cookie-modal-actions .ua-btn {
        width: 100%;
    }

    .ua-cookie-tab-header {
        flex-wrap: wrap;
    }
    
    .ua-modal-wrapper {
        padding: 20px 16px;
    }
}

@media (max-width: 450px) {
    .ua-cookie-tab-header {
        flex-direction: column;
        align-items: flex-start;
    }
}