/**
 * Membership Compare Plans Widget Styles
 *
 * Uses CSS custom properties so colors follow the active theme / plugin
 * color scheme. Elementor per-widget color overrides via {{WRAPPER}} selectors
 * take precedence over these defaults.
 */

.seamless-compare-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.seamless-compare-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.seamless-compare-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--seamless-heading-color, #122f4a);
}

.seamless-compare-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid var(--seamless-border-color, #e2e8f0);
    border-radius: 999px;
    background: #ffffff;
    color: var(--seamless-muted-color, #516579);
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    white-space: nowrap;
}

.seamless-compare-table-shell {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    overflow: hidden;
}

.seamless-compare-table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

.seamless-compare-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    table-layout: fixed;
    min-width: 500px;
}

.seamless-compare-header {
    padding: 18px 14px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border: none;
    background-color: var(--seamless-primary-color, #26337a);
    color: #ffffff;
    vertical-align: middle;
    box-sizing: border-box;
}

.seamless-compare-header:first-child {
    text-align: left;
    font-size: 18px;
    width: 30%;
}

.seamless-compare-plan-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.seamless-compare-plan-renewal {
    font-size: 12px;
    opacity: 0.8;
    color: #ffffff;
}

.seamless-compare-plan-price {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0.95;
    color: #ffffff;
}

.seamless-compare-row td {
    padding: 18px 14px;
    text-align: center;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.45;
    color: #243b53;
    background-color: #ffffff;
    border: none;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}

.seamless-compare-row td:first-child,
.seamless-compare-feature-title {
    text-align: left;
    font-weight: 600;
    color: #122f4a;
    background-color: #f8fafc;
}

.seamless-compare-feature-title {
    width: 30%;
}

.seamless-compare-cell-empty {
    color: #c4ced8;
}

.seamless-compare-empty-state {
    text-align: center;
    padding: 30px;
    color: var(--seamless-muted-color, #516579);
}

.seamless-compare-error {
    padding: 20px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .seamless-compare-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .seamless-compare-title {
        font-size: 30px;
    }
    .seamless-compare-note {
        width: 100%;
        border-radius: 16px;
        white-space: normal;
    }
    .seamless-compare-table {
        font-size: 12px;
    }
    .seamless-compare-header {
        padding: 15px 10px;
        font-size: 12px;
    }
    .seamless-compare-plan-price {
        font-size: 12px;
    }
}
