/* ============================================================
   Tooo Cookie Consent — shared widget for all sites
   GDPR + CCPA + Google Consent Mode v2 compliant
   ============================================================ */
#cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    color: #1a1a1a;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    animation: cc-slide-up 0.3s ease-out;
}
@keyframes cc-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.cc-banner-text {
    flex: 1 1 320px;
    min-width: 250px;
}
.cc-banner-text strong {
    display: block;
    font-size: 15px;
    color: #111827;
    margin-bottom: 4px;
}
.cc-banner-text p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
}
.cc-banner-text a {
    color: #1d4ed8;
    text-decoration: underline;
}
.cc-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cc-btn {
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    line-height: 1;
    transition: opacity .15s, background .15s, transform .1s;
    white-space: nowrap;
}
.cc-btn:hover { opacity: 0.88; }
.cc-btn:active { transform: translateY(1px); }
.cc-btn-primary {
    background: #1d4ed8;
    color: #ffffff;
}
.cc-btn-secondary {
    background: #ffffff;
    color: #1f2937;
    border-color: #d1d5db;
}
.cc-btn-secondary:hover { background: #f9fafb; }

/* ===== Modal ===== */
#cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.cc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    animation: cc-fade 0.2s ease-out;
}
@keyframes cc-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cc-modal-inner {
    position: relative;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 28px 28px 20px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: cc-fade 0.2s ease-out;
}
.cc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background .15s;
}
.cc-modal-close:hover { background: #f3f4f6; color: #111827; }
.cc-modal-inner h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #111827;
    padding-right: 32px;
}
.cc-modal-inner > p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}
.cc-category {
    border-top: 1px solid #e5e7eb;
    padding: 14px 0;
}
.cc-category label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    color: #111827;
}
.cc-category label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1d4ed8;
    cursor: pointer;
    flex-shrink: 0;
}
.cc-category label input[disabled] { cursor: not-allowed; opacity: 0.5; }
.cc-category small {
    display: block;
    color: #6b7280;
    margin-top: 6px;
    margin-left: 28px;
    font-size: 12px;
    line-height: 1.6;
}
.cc-modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.cc-modal-actions .cc-btn {
    flex: 1;
    min-width: 100px;
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
    #cc-banner { padding: 14px 16px; }
    .cc-banner-actions { width: 100%; }
    .cc-banner-actions .cc-btn { flex: 1; min-width: 80px; padding: 10px 12px; font-size: 12px; }
    .cc-modal-inner { padding: 22px 20px 16px; }
    .cc-modal-actions { flex-direction: column; }
    .cc-modal-actions .cc-btn { width: 100%; }
}

/* ===== Dark mode safety: banner stays light on dark sites ===== */
#cc-banner, #cc-modal { color-scheme: light; }
