/* ═══════════════════════════════════════════
   GDPR Cookie Consent — Styles
   Prefix: cc- (cookie consent)
   ═══════════════════════════════════════════ */

/* ── Banner ── */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    font-family: inherit;
}
.cc-banner.cc-visible {
    transform: translateY(0);
}
.cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cc-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: .92rem;
    line-height: 1.6;
}
.cc-banner-text a {
    color: #20c997;
    text-decoration: underline;
}
.cc-banner-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ── Buttons ── */
.cc-btn {
    border: none;
    border-radius: 6px;
    padding: .55rem 1.2rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.cc-btn-accept {
    background: #198754;
    color: #fff;
}
.cc-btn-accept:hover {
    background: #157347;
}
.cc-btn-reject {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
}
.cc-btn-reject:hover {
    background: rgba(255, 255, 255, .06);
    border-color: #999;
    color: #fff;
}
.cc-btn-manage {
    background: transparent;
    color: #20c997;
    border: 1px solid #20c997;
}
.cc-btn-manage:hover {
    background: rgba(32, 201, 151, .1);
}

/* ── Modal Overlay ── */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    padding: 1rem;
}
.cc-modal-overlay.cc-visible {
    opacity: 1;
    visibility: visible;
}

/* ── Modal ── */
.cc-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
    transform: scale(.95);
    transition: transform .3s;
}
.cc-modal-overlay.cc-visible .cc-modal {
    transform: scale(1);
}
.cc-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cc-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
}
.cc-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.cc-modal-close:hover {
    color: #333;
}
.cc-modal-body {
    padding: 1.5rem;
}
.cc-modal-intro {
    font-size: .9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ── Category Cards ── */
.cc-category {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    transition: border-color .2s;
}
.cc-category:hover {
    border-color: #ccc;
}
.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cc-category-info {
    flex: 1;
}
.cc-category-name {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.cc-category-desc {
    font-size: .82rem;
    color: #888;
    margin: .25rem 0 0;
    line-height: 1.4;
}
.cc-always-on {
    font-size: .75rem;
    color: #198754;
    font-weight: 600;
    background: rgba(25, 135, 84, .08);
    padding: .2rem .6rem;
    border-radius: 20px;
}

/* ── Toggle Switch ── */
.cc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background .3s;
}
.cc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    transition: transform .3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.cc-toggle input:checked + .cc-toggle-slider {
    background: #198754;
}
.cc-toggle input:checked + .cc-toggle-slider::before {
    transform: translateX(20px);
}

/* ── Modal Footer ── */
.cc-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
}
.cc-btn-save {
    background: #198754;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .55rem 1.4rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.cc-btn-save:hover {
    background: #157347;
}
.cc-btn-cancel {
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 6px;
    padding: .55rem 1.2rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.cc-btn-cancel:hover {
    background: #e0e0e0;
}

/* ── Footer Link ── */
.cc-footer-link {
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}
.cc-footer-link:hover {
    color: #198754;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .cc-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .cc-banner-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .cc-btn {
        width: 100%;
        white-space: normal;
    }
    .cc-modal {
        max-height: 90vh;
    }
}
