/* ─── EA Service Compare – Frontend Table ───────────────────────── */

.ea-sc-table-wrap {
    --ea-sc-primary: #0d2240;
    --ea-sc-accent:  #f59e0b;
    --ea-sc-green:   #16a34a;
    --ea-sc-red:     #dc2626;
    --ea-sc-border:  #e2e8f0;
    --ea-sc-bg:      #ffffff;
    --ea-sc-bg-alt:  #f8fafc;
    --ea-sc-radius:  8px;

    margin: 2em 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ea-sc-title {
    font-family: 'Syne', 'DM Sans', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--ea-sc-primary);
    margin: 0 0 0.3em;
}

.ea-sc-desc {
    font-size: 1em;
    color: #64748b;
    margin: 0 0 1.2em;
    max-width: 600px;
}

/* Scroll wrapper for mobile */
.ea-sc-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--ea-sc-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
}

/* Table */
.ea-sc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ea-sc-bg);
    font-size: 0.95rem;
    line-height: 1.5;
    min-width: 480px;
}

.ea-sc-table th,
.ea-sc-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--ea-sc-border);
}

.ea-sc-table thead th {
    background: var(--ea-sc-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.ea-sc-table thead th:first-child {
    border-radius: var(--ea-sc-radius) 0 0 0;
    text-align: left;
}

.ea-sc-table thead th:last-child {
    border-radius: 0 var(--ea-sc-radius) 0 0;
}

/* Feature column (left) */
.ea-sc-feature-col {
    text-align: left !important;
    font-weight: 500;
    color: #334155;
    min-width: 160px;
    background: var(--ea-sc-bg);
}

/* Zebra striping */
.ea-sc-table tbody tr:nth-child(even) td {
    background: var(--ea-sc-bg-alt);
}

.ea-sc-table tbody tr:nth-child(even) td.ea-sc-highlight {
    background: rgba(13,34,64,.06);
}

/* Highlight column (your business) */
.ea-sc-highlight {
    background: rgba(13,34,64,.03) !important;
    border-left: 2px solid var(--ea-sc-accent) !important;
    border-right: 2px solid var(--ea-sc-accent) !important;
}

thead .ea-sc-highlight {
    background: var(--ea-sc-primary) !important;
    border-left-color: var(--ea-sc-accent) !important;
    border-right-color: var(--ea-sc-accent) !important;
    position: relative;
}

/* Recommended badge */
.ea-sc-biz-name {
    display: block;
    font-size: 1em;
}

.ea-sc-rec-badge {
    display: inline-block;
    background: var(--ea-sc-accent);
    color: var(--ea-sc-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 99px;
    margin-top: 4px;
}

/* Price row */
.ea-sc-price-row td {
    border-bottom: 2px solid var(--ea-sc-border);
}

.ea-sc-price {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--ea-sc-primary);
}

.ea-sc-biz-col .ea-sc-price {
    color: var(--ea-sc-green);
}

.ea-sc-price-note {
    display: block;
    font-size: 0.78em;
    color: #94a3b8;
    margin-top: 2px;
}

/* Checkmarks / X / Text values */
.ea-sc-yes {
    color: var(--ea-sc-green);
    font-size: 1.3em;
    font-weight: 700;
}

.ea-sc-no {
    color: var(--ea-sc-red);
    font-size: 1.3em;
    font-weight: 400;
    opacity: 0.6;
}

.ea-sc-text {
    font-size: 0.88em;
    color: #475569;
    font-weight: 500;
}

/* Hover */
.ea-sc-table tbody tr:hover td {
    background: #eff6ff;
    transition: background 0.15s ease;
}

.ea-sc-table tbody tr:hover td.ea-sc-highlight {
    background: rgba(245, 158, 11, 0.08);
}

/* Last row rounded corners */
.ea-sc-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--ea-sc-radius);
}

.ea-sc-table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--ea-sc-radius) 0;
}

/* Responsive */
@media (max-width: 600px) {
    .ea-sc-table th,
    .ea-sc-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .ea-sc-title {
        font-size: 1.3em;
    }

    .ea-sc-price {
        font-size: 1.05em;
    }
}

/* Admin error message */
.ea-sc-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9em;
}
