.ss-cmv2-root,
.ss-cmv2-root * {
    box-sizing: border-box;
}

.ss-cmv2-root {
    --ss-cmv2-brand: #b173a0;
    --ss-cmv2-brand-light: #d484be;
    --ss-cmv2-title: #30373b;
    --ss-cmv2-text: #5f6368;
    --ss-cmv2-border: #eadbe4;
    --ss-cmv2-bg: #ffffff;
    --ss-cmv2-shadow: 0 24px 58px rgba(42, 23, 35, 0.25);
    font-family: 'Lato', sans-serif;
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}

.ss-cmv2-root [hidden] {
    display: none !important;
}

.ss-cmv2-root[data-state='open'] {
    pointer-events: auto;
}

.ss-cmv2-overlay,
.ss-cmv2-panel,
.ss-cmv2-manage {
    pointer-events: auto;
}

.ss-cmv2-overlay {
    position: fixed;
    inset: 0;
    background: rgba(48, 55, 59, 0.52);
    z-index: 99998;
}

.ss-cmv2-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(616px, calc(100% - 20px));
    height: auto;
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: var(--ss-cmv2-bg);
    border: 1px solid var(--ss-cmv2-border);
    border-radius: 14px;
    box-shadow: var(--ss-cmv2-shadow);
    z-index: 99999;
    padding: 20px 20px 18px;
}

.ss-cmv2-brand {
    margin-bottom: 12px;
}

.ss-cmv2-brand img {
    display: block;
    width: auto;
    max-width: 168px;
    height: auto;
}

.ss-cmv2-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ss-cmv2-panel h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ss-cmv2-title);
}

.ss-cmv2-panel p {
    margin: 0 0 14px;
    color: var(--ss-cmv2-text);
    line-height: 1.6;
    font-size: 15px;
}

.ss-cmv2-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1e5eb;
    padding-bottom: 10px;
}

.ss-cmv2-tab {
    border: 1px solid #d9c3d1;
    background: #fff;
    color: #5f6368;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.ss-cmv2-tab:hover,
.ss-cmv2-tab:focus {
    background: #f8f1f6;
}

.ss-cmv2-tab.is-active {
    background: #f4e5ef;
    color: #3f2a38;
    border-color: #caa7bb;
}

.ss-cmv2-tab-panel {
    min-height: 0;
}

.ss-cmv2-panel-intro {
    margin-bottom: 16px;
}

.ss-cmv2-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #f1e5eb;
}

.ss-cmv2-row strong {
    display: block;
    color: var(--ss-cmv2-title);
    margin-bottom: 6px;
    font-size: 17px;
}

.ss-cmv2-row p {
    margin-bottom: 0;
    font-size: 14px;
}

.ss-cmv2-row code {
    color: #8d4d7a;
    background: #f8eef4;
    border-radius: 4px;
    padding: 2px 4px;
}

.ss-cmv2-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 108px;
    justify-content: flex-end;
    color: #4b5055;
    font-size: 13px;
    font-weight: 700;
}

.ss-cmv2-toggle input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--ss-cmv2-brand);
}

.ss-cmv2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ss-cmv2-panel-actions {
    margin-top: 18px;
}

.ss-cmv2-actions--triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ss-cmv2-btn {
    border: 0;
    border-radius: 4px;
    min-height: 44px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.ss-cmv2-actions--triple .ss-cmv2-btn {
    width: 100%;
}

.ss-cmv2-btn-primary {
    color: #fff;
    background: #5c3d70;
    box-shadow: 0 8px 18px rgba(92, 61, 112, 0.3);
}

.ss-cmv2-btn-primary:hover,
.ss-cmv2-btn-primary:focus {
    color: #fff;
    background: #4a305a;
}

.ss-cmv2-btn-secondary {
    color: var(--ss-cmv2-title);
    background: #fff;
    border: 1px solid #d9c3d1;
}

.ss-cmv2-btn-secondary:hover,
.ss-cmv2-btn-secondary:focus {
    background: #f8f1f6;
}

.ss-cmv2-close {
    border: 0;
    background: transparent;
    color: #7b7f83;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.ss-cmv2-close:hover,
.ss-cmv2-close:focus {
    color: var(--ss-cmv2-brand);
}

.ss-cmv2-note {
    margin-top: 12px;
    font-size: 14px;
}

.ss-cmv2-note a {
    color: var(--ss-cmv2-brand);
    text-decoration: underline;
}

.ss-cmv2-manage {
    position: fixed;
    left: 12px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ss-cmv2-brand);
    box-shadow: 0 14px 28px rgba(177, 115, 160, 0.34);
    cursor: pointer;
    z-index: 99999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ss-cmv2-manage:hover,
.ss-cmv2-manage:focus {
    background: #8d4d7a;
    transform: translateY(-1px);
}

.ss-cmv2-cookie-icon {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
}

.ss-cmv2-cookie-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ss-cmv2-brand);
    box-shadow: 8px 3px 0 var(--ss-cmv2-brand), 4px 10px 0 var(--ss-cmv2-brand);
}

.ss-cmv2-cookie-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    right: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ss-cmv2-brand);
}

.ss-cmv2-cookie-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 700px) {
    .ss-cmv2-panel {
        width: calc(100% - 12px);
        min-height: 0;
        max-height: calc(100vh - 12px);
        padding: 16px;
    }

    .ss-cmv2-panel h3 {
        font-size: 18px;
    }

    .ss-cmv2-tabs {
        flex-wrap: wrap;
    }

    .ss-cmv2-row {
        flex-direction: column;
        gap: 8px;
    }

    .ss-cmv2-toggle {
        justify-content: flex-start;
        min-width: 0;
    }

    .ss-cmv2-btn {
        flex: 1 1 auto;
    }

    .ss-cmv2-actions--triple {
        grid-template-columns: 1fr;
    }

    .ss-cmv2-manage {
        left: 10px;
        bottom: 10px;
    }
}
