.tf-cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 10800;
    background: rgba(10, 12, 18, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

@media (min-width: 768px) {
    .tf-cc-overlay {
        align-items: center;
    }
}

.tf-cc-panel {
    width: min(640px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: #fff;
    color: #1a1d24;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 1.25rem 1.5rem;
}

.tf-cc-title {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

.tf-cc-intro {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tf-cc-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tf-cc-cat {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    cursor: pointer;
}

.tf-cc-cat input {
    margin-top: 0.2rem;
}

.tf-cc-cat-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tf-cc-cat-desc {
    display: block;
    color: #5c6473;
    font-weight: 400;
}

.tf-cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.tf-cc-btn {
    font-size: 0.9rem;
}

.tf-cc-foot {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.tf-cc-reopen {
    position: fixed;
    z-index: 10790;
    left: 12px;
    bottom: 12px;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.tf-cc-root[hidden] {
    display: none;
}
