/* ==========================================================================
   Community Plugin – Cookie-Tabelle
   ========================================================================== */

.community-cookie-table-wrap {
    margin-block: 1.5rem;
}

.community-cookie-table__intro {
    font-size: 0.9em;
    color: #374151;
    margin-bottom: 1rem;
}

/* Horizontales Scrollen auf kleinen Bildschirmen */
.community-cookie-table__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.community-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875em;
    min-width: 640px;
}

.community-cookie-table thead {
    background: #f9fafb;
}

.community-cookie-table th {
    padding: .7rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.community-cookie-table td {
    padding: .7rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    line-height: 1.5;
}

.community-cookie-table tr:last-child td {
    border-bottom: none;
}

.community-cookie-table tr:hover td {
    background: #fafafa;
}

/* Cookie-Name */
.community-cookie-name {
    font-size: 0.82em;
    background: #f3f4f6;
    padding: .15rem .4rem;
    border-radius: 4px;
    white-space: nowrap;
    color: #1f2937;
}

/* Kategorie-Badge */
.community-cookie-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 99px;
    font-size: 0.78em;
    font-weight: 600;
    white-space: nowrap;
}

.community-cookie-badge--necessary {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

/* Rechtsgrundlage – etwas kleiner */
.community-cookie-legal {
    font-size: 0.8em;
    color: #6b7280;
}

.community-cookie-table__footer {
    margin-top: .75rem;
    color: #9ca3af;
    font-size: 0.8em;
}
