:root {
    --cm-accent: #28696e;
    --cm-accent-hover: #1f5256;
    --cm-text: #373636;
    --cm-text-muted: #646464;
    --cm-border: #d4d4d4;
    --cm-bg-panel: #f5f5f5;
    --cm-white: #ffffff;
    --cm-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --cm-radius-lg: 16px;
    --cm-radius-md: 8px;
    --cm-radius-sm: 6px;
}

.cm-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10050;
    display: none;
}

.cm-consent-overlay.is-visible {
    display: block;
}

.cm-consent-banner,
.cm-consent-panel {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10051;
    background: var(--cm-white);
    color: var(--cm-text);
    font-family: 'Montserrat', sans-serif;
    box-shadow: var(--cm-shadow);
    border-radius: var(--cm-radius-lg);
}

.cm-consent-banner {
    bottom: 24px;
    width: calc(100% - 32px);
    max-width: 960px;
    padding: 28px 32px;
    display: none;
}

.cm-consent-banner.is-visible {
    display: block;
}

.cm-consent-banner__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.cm-consent-banner__text {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cm-text-muted);
}

.cm-consent-banner__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cm-consent-banner__actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cm-consent-btn {
    appearance: none;
    border-radius: var(--cm-radius-sm);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.cm-consent-btn:focus-visible {
    outline: 2px solid var(--cm-accent);
    outline-offset: 2px;
}

.cm-consent-btn--outline {
    background: var(--cm-white);
    border: 1px solid var(--cm-text);
    color: var(--cm-text);
}

.cm-consent-btn--outline:hover {
    border-color: var(--cm-accent);
    color: var(--cm-accent);
}

.cm-consent-btn--outline-accent {
    background: var(--cm-white);
    border: 1px solid var(--cm-accent);
    color: var(--cm-accent);
}

.cm-consent-btn--outline-accent:hover {
    background: rgba(40, 105, 110, 0.06);
}

.cm-consent-btn--primary {
    background: var(--cm-accent);
    border: 1px solid var(--cm-accent);
    color: var(--cm-white);
}

.cm-consent-btn--primary:hover {
    background: var(--cm-accent-hover);
    border-color: var(--cm-accent-hover);
}

.cm-consent-panel {
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 720px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 32px;
    display: none;
}

.cm-consent-panel.is-visible {
    display: block;
}

.cm-consent-panel__header {
    position: relative;
    padding-right: 40px;
    margin-bottom: 24px;
}

.cm-consent-panel__title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.cm-consent-panel__subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cm-text-muted);
}

.cm-consent-panel__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--cm-border);
    border-radius: 50%;
    background: var(--cm-white);
    color: var(--cm-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.cm-consent-panel__close:focus-visible {
    outline: 2px solid var(--cm-accent);
    outline-offset: 2px;
}

.cm-consent-categories {
    background: var(--cm-bg-panel);
    border-radius: var(--cm-radius-md);
    overflow: hidden;
}

.cm-consent-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--cm-border);
}

.cm-consent-category:last-child {
    border-bottom: none;
}

.cm-consent-category__content {
    flex: 1;
    min-width: 0;
}

.cm-consent-category__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.cm-consent-category__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.cm-consent-category__badge {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--cm-accent);
    border-radius: 999px;
    color: var(--cm-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.cm-consent-category__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cm-text-muted);
}

.cm-consent-category__control {
    flex-shrink: 0;
    padding-top: 4px;
}

.cm-consent-checkmark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cm-accent);
    color: var(--cm-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.cm-consent-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.cm-consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cm-consent-switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #c8c8c8;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.cm-consent-switch__slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--cm-white);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cm-consent-switch input:checked + .cm-consent-switch__slider {
    background: var(--cm-accent);
}

.cm-consent-switch input:checked + .cm-consent-switch__slider::before {
    transform: translateX(20px);
}

.cm-consent-switch input:focus-visible + .cm-consent-switch__slider {
    outline: 2px solid var(--cm-accent);
    outline-offset: 2px;
}

.cm-consent-panel__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 16px;
    padding-top: 12px;
}

.footer__legal-links a,
.footer__legal-links button {
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.footer__legal-links a:hover,
.footer__legal-links button:hover {
    text-decoration: underline;
    /* color: var(--cm-accent, #28696e); */
}

.privacy-policy {
    padding: 40px 0 80px;
    font-family: 'Montserrat', sans-serif;
    color: var(--cm-text);
    line-height: 1.7;
}

.privacy-policy h1 {
    font-size: 32px;
    margin-bottom: 24px;
}

.privacy-policy h2 {
    font-size: 22px;
    margin: 32px 0 12px;
}

.privacy-policy p,
.privacy-policy li {
    font-size: 15px;
    color: var(--cm-text-muted);
}

.privacy-policy table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.privacy-policy th,
.privacy-policy td {
    border: 1px solid var(--cm-border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.privacy-policy th {
    background: var(--cm-bg-panel);
}

@media (max-width: 768px) {
    .cm-consent-banner,
    .cm-consent-panel {
        width: calc(100% - 24px);
        padding: 20px;
    }

    .cm-consent-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-consent-banner__actions-right {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-consent-btn {
        width: 100%;
        text-align: center;
    }

    .cm-consent-category {
        flex-direction: column;
        gap: 12px;
    }

    .cm-consent-category__control {
        align-self: flex-end;
    }

    .cm-consent-panel__footer .cm-consent-btn {
        width: 100%;
    }
}
