/* --- COMPARISON TABLE WIDGET --- */
.starter-comp-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

/* Controls Header */
.starter-comp-controls {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.starter-comp-controls h3 { margin: 0; font-size: 18px; font-weight: 700; color: #111827; }

/* Toggle Switch */
.starter-comp-toggle-wrap { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: #6b7280; }
.starter-comp-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s;
}
.starter-comp-toggle.active { background: #4f46e5; }
.starter-comp-toggle-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.starter-comp-toggle.active .starter-comp-toggle-dot { transform: translateX(24px); }

/* Table Container */
.starter-comp-scroll {
    overflow-y: auto;
    max-height: 600px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Grid Layout */
.starter-comp-table {
    display: grid;
    /* Grid columns set via inline style in PHP */
    min-width: 600px; /* Force scroll on very small mobile */
}

/* Header Row */
.starter-comp-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
}

.starter-comp-header-cell {
    padding: 24px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.starter-comp-header-cell.popular {
    background: rgba(79, 70, 229, 0.03);
}
.starter-comp-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #4f46e5;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
}

.starter-comp-plan-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: #1f2937; }
.starter-comp-price { font-size: 24px; font-weight: 900; color: #111827; }
.starter-comp-period { font-size: 12px; font-weight: 500; color: #6b7280; }
.starter-comp-btn {
    margin-top: 16px;
    display: block;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.starter-comp-btn.primary { background: #4f46e5; color: white; }
.starter-comp-btn.primary:hover { background: #4338ca; }
.starter-comp-btn.secondary { background: white; color: #374151; border: 1px solid #d1d5db; }
.starter-comp-btn.secondary:hover { border-color: #9ca3af; background: #f9fafb; }

/* Body Rows */
.starter-comp-row {
    display: contents; /* Allows children to participate in grid */
}
.starter-comp-row:hover .starter-comp-cell { background: #f9fafb; }

/* Hidden Row State (JS Toggle) */
.starter-comp-row.hidden .starter-comp-cell { display: none; }

.starter-comp-cell {
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #4b5563;
    transition: background 0.2s;
}
.starter-comp-cell.feature-name {
    justify-content: flex-start;
    font-weight: 600;
    color: #374151;
    background: #ffffff;
}
.starter-comp-cell.popular {
    background: rgba(79, 70, 229, 0.02);
}
.starter-comp-row:hover .starter-comp-cell.popular { background: rgba(79, 70, 229, 0.05); }

/* Icons */
.starter-comp-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.starter-comp-cross {
    color: #d1d5db;
    font-size: 14px;
}

/* Tooltip */
.starter-comp-tooltip-icon {
    margin-left: 8px;
    color: #9ca3af;
    cursor: help;
    font-size: 14px;
    position: relative;
}
.starter-comp-tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    margin-bottom: 6px;
    z-index: 50;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.starter-comp-tooltip-icon:hover .starter-comp-tooltip-text { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-2px); }

/* --- STYLE 2: SOLID (CLEAN) --- */
.starter-comp-wrapper--solid {
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}
.starter-comp-wrapper--solid .starter-comp-header {
    background: #f8fafc;
    backdrop-filter: none;
}
.starter-comp-wrapper--solid .starter-comp-controls {
    background: #fff;
    border-bottom: 2px solid #e5e7eb;
}
.starter-comp-wrapper--solid .starter-comp-cell {
    border-right: 1px solid #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}
.starter-comp-wrapper--solid .starter-comp-cell.feature-name {
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}
.starter-comp-wrapper--solid .starter-comp-header-cell {
    border-right: 1px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
}
.starter-comp-wrapper--solid .starter-comp-cell.popular {
    background: #fff;
}
.starter-comp-wrapper--solid .starter-comp-header-cell.popular {
    background: #f8fafc;
}
.starter-comp-wrapper--solid .starter-comp-badge {
    border-radius: 4px;
    top: -12px;
    font-size: 9px;
}