#ccm-root {
    --ccm-radius: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ============ באנר תחתון ============ */
#ccm-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 999999;
    background: var(--ccm-dark, #1a2744);
    color: #fff;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
    animation: ccm-slide-up 0.4s ease-out;
}

@keyframes ccm-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.ccm-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.ccm-banner-text h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--ccm-primary, #DDB913);
}

.ccm-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e4e8f0;
    max-width: 640px;
}

.ccm-banner-text p a {
    color: var(--ccm-secondary, #6EC1E4);
    text-decoration: underline;
    margin-inline-start: 6px;
}

.ccm-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ============ כפתורים ============ */
.ccm-btn {
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.ccm-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ccm-btn-solid {
    background: var(--ccm-primary, #DDB913);
    color: #1a2744;
}

.ccm-btn-outline {
    background: transparent;
    border-color: var(--ccm-secondary, #6EC1E4);
    color: #fff;
}

/* ============ מודל הגדרות ============ */
#ccm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: transparent;
}

#ccm-modal-overlay[hidden] {
    display: none;
}

#ccm-modal {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #fff;
    color: #1a2744;
    width: calc(100% - 40px);
    max-width: 360px;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: var(--ccm-radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    animation: ccm-pop-in 0.2s ease-out;
}

@keyframes ccm-pop-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ccm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: var(--ccm-dark, #1a2744);
    border-radius: var(--ccm-radius) var(--ccm-radius) 0 0;
}

.ccm-modal-header h3 {
    margin: 0;
    color: var(--ccm-primary, #DDB913);
    font-size: 18px;
}

.ccm-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
}

.ccm-modal-body {
    padding: 8px 24px;
}

.ccm-category {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

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

.ccm-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.ccm-category p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.ccm-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 18px 24px;
    border-top: 1px solid #eee;
}

.ccm-modal-footer .ccm-btn-outline {
    border-color: var(--ccm-dark, #1a2744);
    color: var(--ccm-dark, #1a2744);
}

/* ============ מתג (switch) ============ */
.ccm-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.ccm-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.2s;
}

.ccm-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    inset-inline-start: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.ccm-switch input:checked + .ccm-slider {
    background-color: var(--ccm-secondary, #6EC1E4);
}

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

.ccm-switch-disabled .ccm-slider {
    background-color: var(--ccm-primary, #DDB913);
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============ קישור חוזר לפוטר (שורטקוד [ccm_cookie_settings]) ============ */
.ccm-reopen-link {
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .ccm-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: right;
    }
    .ccm-banner-actions {
        justify-content: stretch;
    }
    .ccm-banner-actions .ccm-btn {
        flex: 1;
    }
}
