#ccp-popup.ccp-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 24px;
    box-sizing: border-box;
}

#ccp-popup.ccp-open {
    display: flex;
}

#ccp-popup .ccp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(2px);
}

.ccp-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(640px, calc(100vw - 32px));
    max-height: min(88vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.ccp-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.ccp-heading {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ccp-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #2c3338;
}

.ccp-message p {
    margin: 0 0 10px;
}

.ccp-message p:last-child {
    margin-bottom: 0;
}

.ccp-categories {
    display: grid;
    gap: 12px;
}

.ccp-category {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
}

.ccp-category-locked {
    background: rgba(0, 0, 0, 0.055);
}

.ccp-category-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ccp-category-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.ccp-category-copy strong {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ccp-category-desc {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.92;
}

.ccp-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

.ccp-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.ccp-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 22px;
}

.ccp-button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.ccp-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.ccp-button:active {
    transform: translateY(0);
}

.ccp-terms {
    margin-top: 16px;
    text-align: center;
}

.ccp-terms-link {
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.ccp-terms-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    #ccp-popup.ccp-popup {
        padding: 12px;
        align-items: center;
    }

    .ccp-content {
        width: min(360px, calc(100vw - 40px));
        max-height: 80vh;
        padding: 14px;
        border-radius: 14px;
    }

    .ccp-header {
        gap: 7px;
        margin-bottom: 12px;
    }

    .ccp-heading {
        font-size: 21px;
        line-height: 1.1;
    }

    .ccp-message {
        font-size: 13px;
        line-height: 1.45;
    }

    .ccp-message p {
        margin-bottom: 6px;
    }

    .ccp-categories {
        gap: 7px;
    }

    .ccp-category {
        border-radius: 10px;
        padding: 9px 10px;
    }

    .ccp-category-row {
        gap: 10px;
    }

    .ccp-category-copy strong {
        margin-bottom: 3px;
        font-size: 13px;
    }

    .ccp-category-desc {
        font-size: 12px;
        line-height: 1.35;
    }

    .ccp-toggle input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .ccp-buttons {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 12px;
    }

    .ccp-button {
        width: 100%;
        min-height: 38px;
        padding: 8px 11px;
        border-radius: 9px;
        font-size: 13px;
    }

    .ccp-terms {
        margin-top: 9px;
    }

    .ccp-terms-link {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .ccp-content {
        width: calc(100vw - 24px);
        max-height: 86vh;
        padding: 12px;
    }
}
