/* ============================================================
   Cookie Consent WP — Cookie Declaration Styles
   ============================================================ */

.ccw-declaration {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    max-width: 100%;
}

/* ── Intro tekst ─────────────────────────────────────────── */
.ccw-declaration-intro {
    color: #6b7280;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 3px solid var(--ccw-accent, #2563eb);
    border-radius: 0 6px 6px 0;
}

/* ── Groep container ─────────────────────────────────────── */
.ccw-decl-group {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ── Groep header ────────────────────────────────────────── */
.ccw-decl-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ccw-decl-group-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ccw-decl-icon {
    font-size: 22px;
    line-height: 1.3;
    flex-shrink: 0;
}

.ccw-decl-group-title h3 {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.ccw-decl-group-title p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* ── Status badge ────────────────────────────────────────── */
.ccw-decl-badge,
.ccw-decl-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ccw-decl-badge-required {
    background: #dcfce7;
    color: #166534;
}

.ccw-decl-status {
    background: #f3f4f6;
    color: #6b7280;
}

/* Status dot */
.ccw-decl-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
    transition: background .3s;
}

.ccw-decl-dot-active   { background: #22c55e; }
.ccw-decl-dot-inactive { background: #f87171; }
.ccw-decl-dot-unknown  { background: #fbbf24; }

/* ── Tabel ───────────────────────────────────────────────── */
.ccw-decl-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ccw-decl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ccw-decl-table thead tr {
    background: #f3f4f6;
}

.ccw-decl-table th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
}

.ccw-decl-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    vertical-align: top;
}

.ccw-decl-table tbody tr:last-child td {
    border-bottom: none;
}

.ccw-decl-table tbody tr:hover td {
    background: #fafafa;
}

.ccw-decl-table code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #1f2937;
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
}

/* ── Lege categorie ──────────────────────────────────────── */
.ccw-decl-empty {
    padding: 16px 20px;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* ── Groep footer (toestemming knoppen) ──────────────────── */
.ccw-decl-group-footer {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.ccw-decl-consent-btn {
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    transition: opacity .18s;
}

.ccw-decl-consent-btn:hover { opacity: .82; }

.ccw-decl-btn-accept {
    background: var(--ccw-accent, #2563eb);
    border-color: var(--ccw-accent, #2563eb);
    color: #ffffff;
}

.ccw-decl-btn-reject {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

/* ── Flash feedback melding ──────────────────────────────── */
.ccw-decl-flash {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    border-top: 1px solid rgba(0,0,0,.06);
    animation: ccwFadeOut 2.5s ease forwards;
}

@keyframes ccwFadeOut {
    0%   { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ── Footer ──────────────────────────────────────────────── */
.ccw-declaration-updated {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 16px;
    text-align: right;
}

.ccw-declaration-updated a {
    color: var(--ccw-accent, #2563eb);
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .ccw-decl-group-header { flex-direction: column; align-items: flex-start; }
    .ccw-decl-table th:nth-child(3),
    .ccw-decl-table td:nth-child(3) { min-width: 160px; }
    .ccw-decl-table th:nth-child(4),
    .ccw-decl-table td:nth-child(4) { display: none; }
}
