.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 16px;
    background: rgba(16, 19, 26, 0.45);
    overflow: auto;
    box-sizing: border-box;
}

.cc-overlay[hidden] {
    display: none !important;
}

.cc-modal {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    width: 504px;
    max-width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E5EA;
    box-shadow: 0px 18px 48px -8px rgba(16, 19, 26, 0.141176);
    border-radius: 18px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #171A21;
    text-align: left;
}

.cc-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.cc-icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #F7F8FA;
    border-radius: 12px;
    flex: none;
}

.cc-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.cc-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.cc-title {
    margin: 0;
    font-family: inherit;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    color: #171A21;
}

.cc-lead {
    margin: 0;
    font-family: inherit;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #626A78;
}

.cc-categories {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.cc-row {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 15px 0;
    border-top: 1px solid #E2E5EA;
}

.cc-row-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.cc-name-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.cc-name {
    font-family: inherit;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #171A21;
}

.cc-badge {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 3px 7px;
    background: #F7F8FA;
    border-radius: 999px;
    font-family: inherit;
    font-style: normal;
    font-weight: 600;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #626A78;
}

.cc-help {
    margin: 0;
    font-family: inherit;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 140%;
    color: #626A78;
}

.cc-switch {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 44px;
    height: 24px;
    padding: 3px;
    border: 0;
    border-radius: 999px;
    background: #C9CED6;
    flex: none;
    cursor: pointer;
}

.cc-switch.is-on {
    justify-content: flex-end;
    background: #3157D5;
}

.cc-switch:disabled {
    justify-content: flex-end;
    background: #AEB4BE;
    opacity: 0.72;
    cursor: default;
}

.cc-switch:focus-visible,
.cc-btn:focus-visible,
.cc-policy-link:focus-visible {
    outline: 2px solid #3157D5;
    outline-offset: 2px;
}

.cc-switch-knob {
    width: 18px;
    height: 18px;
    background: #FFFFFF;
    border-radius: 50%;
    flex: none;
}

.cc-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.cc-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #E2E5EA;
    background: #FFFFFF;
    font-family: inherit;
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 16px;
    color: #171A21;
    cursor: pointer;
}

.cc-btn-save {
    background: #F7F8FA;
}

.cc-btn-accept {
    background: #3157D5;
    border-color: #3157D5;
    color: #FFFFFF;
}

.cc-btn-decline:hover {
    background: #F7F8FA;
}

.cc-btn-save:hover {
    background: #EEF0F3;
}

.cc-btn-accept:hover {
    background: #2849C0;
    border-color: #2849C0;
}

.cc-policy {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    margin: 0;
    font-family: inherit;
    font-size: 12px;
    line-height: 15px;
}

.cc-policy-prefix {
    font-weight: 400;
    color: #626A78;
}

.cc-policy-link {
    font-weight: 600;
    line-height: 15px;
    text-decoration: underline;
    color: #3157D5;
}

.cc-policy-link:hover {
    color: #2849C0;
}

html.cc-lock,
html.cc-lock body {
    overflow: hidden;
}

@media (max-width: 540px) {
    .cc-overlay {
        padding: 16px;
        align-items: stretch;
    }

    .cc-modal {
        width: 100%;
    }

    .cc-actions {
        flex-direction: column;
    }

    .cc-btn {
        flex: none;
        width: 100%;
    }
}
