/* --- Banner Styles --- */
.ccm-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--ccm-bg-color, #ffffff);
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    z-index: 999990; 
    font-family: var(--ccm-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.ccm-inner {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ccm-inner p {
    margin: 0;
    color: var(--ccm-text-color, #333);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 250px;
}

.ccm-buttons {
    display: flex;
    gap: 10px;
}

.ccm-btn-primary, .ccm-btn-link {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-weight: 500;
}

.ccm-btn-link {
    background: transparent;
    color: #666;
    text-decoration: underline;
}

.ccm-btn-link:hover {
    color: #333;
}

.ccm-btn-primary {
    background-color: var(--ccm-primary-color, #0073aa);
    color: #fff;
}

.ccm-btn-primary:hover {
    opacity: 0.9;
}

/* --- Revisit Button (NIEUW) --- */
.ccm-revisit-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    z-index: 999980; /* Onder de modal, boven de content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--ccm-primary-color, #0073aa);
}

.ccm-revisit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.ccm-revisit-btn svg {
    width: 24px;
    height: 24px;
}

/* --- Modal Styles --- */
.ccm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ccm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.ccm-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.ccm-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ccm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.ccm-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.ccm-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.ccm-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* --- Categorie Toggle Items --- */
.ccm-category {
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.ccm-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ccm-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.ccm-cat-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.ccm-cat-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* --- Toggle Switch CSS --- */
.ccm-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.ccm-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.ccm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.ccm-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .ccm-slider {
    background-color: var(--ccm-primary-color, #0073aa);
}

input:focus + .ccm-slider {
    box-shadow: 0 0 1px var(--ccm-primary-color, #0073aa);
}

input:checked + .ccm-slider:before {
    transform: translateX(26px);
}

input:disabled + .ccm-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .ccm-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .ccm-buttons {
        width: 100%;
        justify-content: space-between;
    }
    .ccm-btn-primary, .ccm-btn-link {
        flex: 1;
        text-align: center;
    }
}