/**
 * Flavor Component Filters - Frontend Styles
 * Designed to integrate with Neeon theme (mirrors flavor-pc-filters styling)
 */

/* ==========================================================================
   CSS Variables (matching Neeon theme tokens)
   ========================================================================== */
.flavor-cf-container {
    --panel: #ffffff;
    --panel-dark: #f8f9fa;
    --text: #000000;
    --text-muted: #6c6f72;
    --line: #d0d0d0;
    --line-dark: #b0b0b0;
    --accent: #2962ff;
    --accent-hover: #0034c2;
    --accent-soft: rgba(41, 98, 255, 0.1);
    --radius: 6px;
    --radius-lg: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.25s ease;
    --star-gold: #2962ff;
    --star-empty: rgba(255, 255, 255, 0.3);

    font-family: 'Roboto', sans-serif;
    color: var(--text);
    display: block;
    margin-bottom: 40px;
}

.flavor-cf-container * {
    box-sizing: border-box;
}

/* ==========================================================================
   Filter Panel Container
   ========================================================================== */
.flavor-cf-wrap {
    width: 100%;
    margin: 0 0 30px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: visible;
}

/* ==========================================================================
   Title Row
   ========================================================================== */
.flavor-cf-title-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.flavor-cf-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.flavor-cf-title {
    margin: 0;
    font-family: 'Spartan', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.flavor-cf-subtitle {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.flavor-cf-btn {
    border-radius: var(--radius);
    border: none;
    background: var(--accent);
    color: #ffffff;
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.flavor-cf-btn:hover {
    background: var(--accent-hover);
}

.flavor-cf-btn.flavor-cf-btn-secondary {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
}

.flavor-cf-btn.flavor-cf-btn-secondary:hover {
    background: #f5f5f5;
    border-color: var(--line-dark);
}

/* ==========================================================================
   Filter Controls Row
   ========================================================================== */
.flavor-cf-controls {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 4px 0;
    position: relative;
    z-index: 200;
    overflow: visible;
}

.flavor-cf-control {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    flex: 0 0 170px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flavor-cf-control.flavor-cf-range-control {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    flex-basis: 220px;
}

.flavor-cf-control.flavor-cf-sort {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    flex-basis: 200px;
}

.flavor-cf-label,
.flavor-cf-advanced-label {
    display: flex;
    align-items: center;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Multi-select Dropdown
   ========================================================================== */
details.flavor-cf-multi {
    position: relative;
    z-index: 50;
}

details.flavor-cf-multi[open] {
    z-index: 2000;
}

details.flavor-cf-multi summary {
    list-style: none;
    display: block;
    width: 100%;
    min-height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 9px 34px 9px 12px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

details.flavor-cf-multi summary:hover {
    border-color: var(--line-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

details.flavor-cf-multi[open] summary {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

details.flavor-cf-multi summary::-webkit-details-marker {
    display: none;
}

details.flavor-cf-multi summary::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    transition: var(--transition);
}

details.flavor-cf-multi[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: var(--accent);
}

.flavor-cf-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 180px;
    max-height: 320px;
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 3000;
}

.flavor-cf-menu label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.flavor-cf-menu label:hover {
    background: var(--accent-soft);
}

.flavor-cf-menu input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* ==========================================================================
   Range Slider (dual-thumb)
   ========================================================================== */
.flavor-cf-range-wrap {
    --left: 0%;
    --right: 100%;
    position: relative;
    height: 20px;
    margin-top: 4px;
    margin-bottom: 0;
}

.flavor-cf-range-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.flavor-cf-range-wrap::after {
    content: "";
    position: absolute;
    left: var(--left);
    right: calc(100% - var(--right));
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    background: var(--accent);
    z-index: 2;
}

.flavor-cf-range-wrap input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 0;
    z-index: 3;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.flavor-cf-range-wrap input[type="range"]:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.flavor-cf-range-wrap input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
    height: 20px;
    outline: none;
    box-shadow: none;
}

.flavor-cf-range-wrap input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flavor-cf-range-wrap input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.flavor-cf-range-wrap input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
    height: 20px;
    outline: none;
}

.flavor-cf-range-wrap input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flavor-cf-range-wrap input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.flavor-cf-range-wrap input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 4px var(--accent-soft);
}

.flavor-cf-range-wrap input[type="range"]:focus::-moz-range-thumb {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 4px var(--accent-soft);
}

.flavor-cf-range-wrap .flavor-cf-range-min {
    z-index: 4;
}

.flavor-cf-range-wrap .flavor-cf-range-max {
    z-index: 5;
}

.flavor-cf-range-value {
    margin-top: 2px;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    font-weight: 600;
}

/* ==========================================================================
   Sort Select
   ========================================================================== */
.flavor-cf-sort-select {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c6f72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.flavor-cf-sort-select:hover {
    border-color: var(--line-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.flavor-cf-sort-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ==========================================================================
   Advanced Panel
   ========================================================================== */
.flavor-cf-advanced-panel {
    display: none;
    margin-top: 16px;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    background: #fafafa;
}

.flavor-cf-advanced-panel.open {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.flavor-cf-advanced-header {
    display: block;
    width: 100%;
    flex: 0 0 100%;
    margin: 0 0 8px;
    font-family: 'Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flavor-cf-advanced-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    flex: 0 0 170px;
}

.flavor-cf-advanced-group.flavor-cf-range-control {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    flex: 0 0 220px;
}

/* ==========================================================================
   Switch / Toggle
   ========================================================================== */
.flavor-cf-switch-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 220px;
    min-width: 220px;
}

.flavor-cf-switch-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.flavor-cf-switch {
    position: relative;
    width: 42px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
}

.flavor-cf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.flavor-cf-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.flavor-cf-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--panel);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flavor-cf-switch input:checked + .flavor-cf-slider {
    background: var(--accent);
}

.flavor-cf-switch input:checked + .flavor-cf-slider::before {
    transform: translateX(18px);
}

/* ==========================================================================
   Tooltip
   ========================================================================== */
.flavor-cf-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.flavor-cf-tooltip-btn {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    padding: 0;
}

.flavor-cf-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: 260px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text);
    display: none;
    z-index: 6100;
    white-space: normal;
    word-wrap: break-word;
}

.flavor-cf-tooltip-wrap:hover .flavor-cf-tooltip,
.flavor-cf-tooltip-wrap:focus-within .flavor-cf-tooltip {
    display: block;
}

/* ==========================================================================
   Share Button
   ========================================================================== */
.flavor-cf-share-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* View Toggle */
.flavor-cf-view-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-right: auto;
}

.flavor-cf-view-toggle .flavor-cf-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border: none;
    background: var(--panel);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.flavor-cf-view-toggle .flavor-cf-view-btn:first-child {
    border-right: 1px solid var(--line);
}

.flavor-cf-view-toggle .flavor-cf-view-btn.active {
    background: var(--accent);
    color: #ffffff;
}

.flavor-cf-view-toggle .flavor-cf-view-btn:hover:not(.active) {
    background: var(--panel-dark);
    color: var(--text);
}

.flavor-cf-view-toggle .flavor-cf-view-btn svg {
    stroke: currentColor;
    fill: none;
}

.flavor-cf-share-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 8px 12px;
    margin: -8px -12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.flavor-cf-share-link:hover {
    color: var(--accent-hover);
    background: var(--accent-soft);
}

.flavor-cf-share-link:focus {
    outline: none;
}

.flavor-cf-share-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.flavor-cf-share-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ==========================================================================
   Results
   ========================================================================== */
.flavor-cf-results {
    min-height: 200px;
    position: relative;
}

/* Suppress all transitions during view switch */
.flavor-cf-no-transition,
.flavor-cf-no-transition *,
.flavor-cf-no-transition *::before,
.flavor-cf-no-transition *::after {
    transition: none !important;
    animation: none !important;
}

.flavor-cf-results-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.flavor-cf-card-col {
    padding: 0 15px;
    margin-bottom: 30px;
}

.flavor-cf-results-count {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--line);
    margin-top: 20px;
}

/* ==========================================================================
   Loading
   ========================================================================== */
.flavor-cf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 16px;
}

/* Loading overlay on existing results */
.flavor-cf-results.flavor-cf-is-loading {
    position: relative;
    pointer-events: none;
}

.flavor-cf-results.flavor-cf-is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    border-radius: 8px;
}

.flavor-cf-results.flavor-cf-is-loading::before {
    content: "";
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border: 3px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: flavor-cf-spin 0.8s linear infinite;
    z-index: 11;
}

.flavor-cf-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: flavor-cf-spin 0.8s linear infinite;
}

@keyframes flavor-cf-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   No Results
   ========================================================================== */
.flavor-cf-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.flavor-cf-no-results p {
    margin: 0;
    font-size: 16px;
}

.flavor-cf-reset-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    vertical-align: baseline;
}

.flavor-cf-reset-link:hover,
.flavor-cf-reset-link:focus,
.flavor-cf-reset-link:active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--accent-hover);
    text-decoration: underline;
    outline: none;
}

/* ==========================================================================
   Component Card (matching Neeon blog-layout-1 overlay style)
   ========================================================================== */
.flavor-cf-card-col.blog-layout-1 {
    margin-bottom: 30px;
}

.flavor-cf-card {
    position: relative;
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

.flavor-cf-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.flavor-cf-card .blog-img-holder {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.flavor-cf-card .blog-img-holder .blog-img {
    display: block;
    height: 100%;
}

.flavor-cf-card .blog-img-holder img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.85s ease-out;
}

.flavor-cf-card:hover .blog-img-holder img {
    transform: scale3d(1.1, 1.1, 1);
}

/* Gradient overlay */
.flavor-cf-card .blog-img-holder .blog-img::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

/* Content overlay */
.flavor-cf-card .entry-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* Entry Meta */
.flavor-cf-card ul.entry-meta {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.flavor-cf-card ul.entry-meta li {
    display: inline-block;
    color: #d0d0d0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.flavor-cf-card ul.entry-meta li i {
    margin-right: 7px;
    width: 11px;
}

/* Title */
.flavor-cf-card .entry-title {
    font-family: 'Spartan', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #ffffff;
}

.flavor-cf-card .entry-title a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.flavor-cf-card .entry-title a:hover {
    color: var(--accent);
}

/* Legacy Badge */
.flavor-cf-legacy-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

.flavor-cf-card.is-legacy {
    opacity: 0.85;
}

/* Specs Chips */
.flavor-cf-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.flavor-cf-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1.3;
    white-space: nowrap;
}

.flavor-cf-spec svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* ==========================================================================
   Card Footer (50/50 Buttons)
   ========================================================================== */
.flavor-cf-card-footer {
    display: flex;
    gap: 10px;
    padding: 12px;
    margin-top: auto;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.flavor-cf-btn-prices,
.flavor-cf-btn-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 50%;
    padding: 12px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: var(--radius);
}

.flavor-cf-btn-prices {
    background: #888888;
    color: #ffffff;
}

.flavor-cf-btn-prices:hover {
    background: #6b6b6b;
    color: #ffffff;
}

.flavor-cf-btn-review {
    background: var(--accent);
    color: #ffffff;
}

.flavor-cf-btn-review:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

.flavor-cf-btn-prices svg,
.flavor-cf-btn-review svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.flavor-cf-btn-prices:hover svg,
.flavor-cf-btn-review:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   GeekaWhat Rating Overlay (on card image)
   ========================================================================== */
.flavor-cf-rating-overlay {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 10px;
}

.flavor-cf-rating-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.7);
}

/* Star Rating */
.flavor-cf-rating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.flavor-cf-rating .star {
    font-size: 16px;
    line-height: 1;
    position: relative;
    display: inline-block;
    color: var(--star-empty);
    background: linear-gradient(90deg, var(--star-gold) var(--fill, 0%), var(--star-empty) var(--fill, 0%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flavor-cf-rating-num {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-left: 6px;
    -webkit-text-fill-color: #ffffff;
}

.flavor-cf-not-rated {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* ==========================================================================
   Specs Popup Modal
   ========================================================================== */
.flavor-cf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.flavor-cf-modal {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 860px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    animation: flavorCfModalIn 0.3s ease;
    margin: auto;
}

@keyframes flavorCfModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.flavor-cf-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 16px;
    text-align: center;
}

.flavor-cf-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #2962ff;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.flavor-cf-modal-close:hover {
    background: #0034c2;
    color: #ffffff;
}

/* Modal Header */
.flavor-cf-modal-header {
    display: flex;
    gap: 20px;
    padding: 20px 24px 0;
    align-items: flex-start;
}

.flavor-cf-modal-image {
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid var(--line);
}

.flavor-cf-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flavor-cf-modal-info {
    flex: 1;
    min-width: 0;
    padding-top: 0;
}

.flavor-cf-modal-title {
    font-family: 'Spartan', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 6px;
}

/* Modal Rating */
.flavor-cf-modal-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.flavor-cf-modal-rating-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-right: 6px;
}

.flavor-cf-modal-rating .star {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    background: linear-gradient(90deg, #2962ff var(--fill, 0%), #d0d0d0 var(--fill, 0%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flavor-cf-modal-rating-num {
    font-size: 15px;
    font-weight: 700;
    color: #2962ff;
    margin-left: 6px;
    -webkit-text-fill-color: #2962ff;
}

/* Modal Description */
.flavor-cf-modal-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* Modal Specs Table */
.flavor-cf-modal-specs {
    padding: 14px 24px;
}

.flavor-cf-modal-specs-title {
    font-family: 'Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}

.flavor-cf-modal-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.flavor-cf-modal-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.flavor-cf-modal-spec-row:nth-child(odd) {
    background: var(--accent-soft);
}

.flavor-cf-modal-spec-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.flavor-cf-modal-spec-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
}

/* Modal Pricing */
.flavor-cf-modal-pricing {
    padding: 0 24px 12px;
}

.flavor-cf-modal-pricing-title {
    font-family: 'Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}

.flavor-cf-modal-pricing-content > *:last-child {
    margin-bottom: 0;
}

.flavor-cf-modal-pricing-content p {
    margin-bottom: 8px;
}

/* Modal Footer */
.flavor-cf-modal-footer {
    padding: 0 24px 16px;
}

.flavor-cf-modal-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.flavor-cf-modal-close-btn:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

/* View Specs button on card */
.flavor-cf-btn-specs {
    cursor: pointer;
}

.flavor-cf-card.is-specs-only .blog-img {
    cursor: pointer;
}

.flavor-cf-card.is-specs-only .entry-title a {
    cursor: pointer;
}

.flavor-cf-btn-specs.flavor-cf-btn-prices,
.flavor-cf-btn-specs.flavor-cf-btn-review {
    border: none;
    font-family: inherit;
}

/* Modal Responsive */
@media (max-width: 600px) {
    .flavor-cf-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .flavor-cf-modal-image {
        flex: none;
        width: 140px;
        height: 140px;
    }

    .flavor-cf-modal-rating {
        justify-content: center;
    }

    .flavor-cf-modal-spec-grid {
        grid-template-columns: 1fr;
    }

    .flavor-cf-modal-backdrop {
        padding: 10px;
    }
}

/* ==========================================================================
   List View
   ========================================================================== */
.flavor-cf-results[data-view="list"] .flavor-cf-results-grid {
    flex-direction: column;
    margin: 0;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0;
    margin-bottom: 8px;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card {
    flex-direction: row;
    border-radius: 8px;
    height: auto;
    align-items: stretch;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .blog-img-holder {
    flex: 1 1 auto;
    width: auto;
    min-height: 100px;
    border-radius: 8px 0 0 8px;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: row;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .blog-img-holder .blog-img {
    flex: 0 0 120px;
    width: 120px;
    display: block;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .blog-img-holder img {
    min-height: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .blog-img-holder .blog-img::after {
    display: none;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .entry-content {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    z-index: auto !important;
    padding: 12px 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .entry-title {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text);
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .entry-title a {
    color: #000000;
    -webkit-text-fill-color: #000000;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .entry-title a:hover {
    color: var(--accent);
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .flavor-cf-rating-overlay {
    margin-bottom: 4px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .flavor-cf-rating-label {
    font-size: 9px;
    color: var(--text-muted);
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .flavor-cf-rating .star {
    font-size: 13px;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .flavor-cf-rating-num {
    font-size: 12px;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .flavor-cf-specs {
    gap: 4px;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .flavor-cf-spec {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(41, 98, 255, 0.08);
    color: var(--text);
    border-radius: 4px;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .flavor-cf-spec svg {
    stroke: var(--accent);
    width: 12px;
    height: 12px;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card-footer {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 0 8px 8px 0;
    padding: 10px;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    gap: 6px;
    background: transparent;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card-footer .flavor-cf-btn-prices,
.flavor-cf-results[data-view="list"] .flavor-cf-card-footer .flavor-cf-btn-review {
    padding: 8px 12px;
    font-size: 12px;
}

.flavor-cf-results[data-view="list"] .flavor-cf-card .flavor-cf-legacy-badge {
    top: 6px;
    left: 6px;
    font-size: 9px;
    padding: 3px 6px;
}

/* Hide list toggle on mobile - cards are already single column */
@media (max-width: 767px) {
    .flavor-cf-view-toggle {
        display: none;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .flavor-cf-controls {
        flex-wrap: wrap;
    }

    .flavor-cf-control,
    .flavor-cf-control.flavor-cf-range-control,
    .flavor-cf-control.flavor-cf-sort {
        width: calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
        flex: 1 1 calc(33.333% - 8px);
    }
}

@media (max-width: 991px) {
    .flavor-cf-control,
    .flavor-cf-control.flavor-cf-range-control,
    .flavor-cf-control.flavor-cf-sort {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        flex: 1 1 calc(50% - 6px);
    }

    .flavor-cf-advanced-group,
    .flavor-cf-advanced-group.flavor-cf-range-control,
    .flavor-cf-switch-row {
        width: calc(50% - 8px);
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        flex: 1 1 calc(50% - 8px);
    }

    .flavor-cf-card .blog-img-holder img {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .flavor-cf-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .flavor-cf-title-actions {
        width: 100%;
        margin-left: 0;
    }

    .flavor-cf-title-actions .flavor-cf-btn {
        flex: 1 1 0;
    }

    .flavor-cf-control,
    .flavor-cf-control.flavor-cf-range-control,
    .flavor-cf-control.flavor-cf-sort {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .flavor-cf-advanced-group,
    .flavor-cf-advanced-group.flavor-cf-range-control,
    .flavor-cf-switch-row {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .flavor-cf-share-row {
        justify-content: center;
    }

    .flavor-cf-card .blog-img-holder img {
        min-height: 280px;
    }

    .flavor-cf-card .entry-content {
        padding: 20px;
    }

    .flavor-cf-card .entry-title {
        font-size: 16px;
    }

    .flavor-cf-spec {
        font-size: 11px;
        padding: 5px 8px;
    }

    .flavor-cf-card-footer {
        flex-direction: row;
    }

    .flavor-cf-btn-prices,
    .flavor-cf-btn-review {
        font-size: 12px;
        padding: 12px 8px;
    }
}

@media (max-width: 575px) {
    .flavor-cf-wrap {
        padding: 16px;
    }

    .flavor-cf-title {
        font-size: 24px;
    }

    .flavor-cf-card-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .flavor-cf-card .blog-img-holder img {
        min-height: 260px;
    }

    .flavor-cf-card .entry-content {
        padding: 16px;
    }

    .flavor-cf-btn-prices,
    .flavor-cf-btn-review {
        padding: 12px 8px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Compare Button (top-right of card)
   ========================================================================== */
.flavor-cf-compare-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    height: auto;
    width: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    padding: 6px 10px 5px;
    line-height: 1;
    gap: 1px;
}

.flavor-cf-compare-btn-inner {
    display: flex;
    align-items: center;
    gap: 5px;
}

.flavor-cf-compare-btn svg {
    width: 13px;
    height: 13px;
    stroke: #444;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.flavor-cf-compare-btn-label {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.flavor-cf-compare-btn-sub {
    font-size: 9px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.flavor-cf-compare-btn:hover {
    background: #2962ff;
    border-color: #2962ff;
    transform: scale(1.03);
}

.flavor-cf-compare-btn:hover svg {
    stroke: #ffffff;
}

.flavor-cf-compare-btn:hover .flavor-cf-compare-btn-label {
    color: #ffffff;
}

.flavor-cf-compare-btn:hover .flavor-cf-compare-btn-sub {
    color: rgba(255,255,255,0.75);
}

.flavor-cf-compare-btn.is-comparing {
    background: #2962ff;
    border-color: #2962ff;
}

.flavor-cf-compare-btn.is-comparing svg {
    stroke: #ffffff;
}

.flavor-cf-compare-btn.is-comparing .flavor-cf-compare-btn-label {
    color: #ffffff;
}

.flavor-cf-compare-btn.is-comparing .flavor-cf-compare-btn-sub {
    color: rgba(255,255,255,0.75);
}

.flavor-cf-card .blog-img-holder {
    position: relative;
}

/* List view compare btn repositioning */
.flavor-cf-results[data-view="list"] .flavor-cf-compare-btn {
    top: 8px;
    right: 8px;
}

/* ==========================================================================
   Compare Bar (sticky bottom)
   ========================================================================== */
.flavor-cf-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a4fd6;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.flavor-cf-compare-bar.is-visible {
    transform: translateY(0);
}

.flavor-cf-compare-bar-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}

.flavor-cf-compare-bar-sublabel {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-transform: none;
    letter-spacing: 0.02em;
}

.flavor-cf-compare-bar-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.flavor-cf-compare-bar-items::-webkit-scrollbar {
    display: none;
}

.flavor-cf-compare-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 6px 10px 6px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 240px;
    transition: all 0.2s ease;
}

.flavor-cf-compare-item:hover {
    background: rgba(255,255,255,0.22);
}

.flavor-cf-compare-item-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
}

.flavor-cf-compare-item-name {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.flavor-cf-compare-item-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    color: #ffffff;
    line-height: 1;
}

.flavor-cf-compare-item-remove:hover {
    opacity: 1;
}

.flavor-cf-compare-item-remove svg {
    width: 12px;
    height: 12px;
    stroke: #ffffff;
}

.flavor-cf-compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.flavor-cf-compare-go-btn {
    background: #ffffff;
    color: #1a4fd6;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flavor-cf-compare-go-btn:disabled {
    background: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    transform: none;
}

.flavor-cf-compare-go-btn:disabled svg {
    stroke: rgba(255,255,255,0.5);
}

.flavor-cf-compare-go-btn:not(:disabled):hover {
    background: #e8efff;
    transform: translateY(-1px);
}

.flavor-cf-compare-go-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flavor-cf-compare-go-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
}

.flavor-cf-compare-go-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.85);
}

.flavor-cf-compare-go-wrap[data-needs-more="true"]:hover .flavor-cf-compare-go-tooltip {
    display: block;
}

.flavor-cf-compare-go-btn svg {
    width: 14px;
    height: 14px;
    stroke: #1a4fd6;
}

.flavor-cf-compare-clear-btn {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.flavor-cf-compare-clear-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* ==========================================================================
   Compare Table Modal
   ========================================================================== */
.flavor-cf-compare-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 150px 16px 90px;
    overflow-y: auto;
}

.flavor-cf-compare-backdrop.is-open {
    display: flex;
}

.flavor-cf-compare-modal {
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    align-self: flex-start;
}

.flavor-cf-compare-modal-header {
    background: #1a4fd6;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: -1px;
    justify-content: space-between;
}

.flavor-cf-compare-modal-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.flavor-cf-compare-modal-close {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: background 0.2s ease;
}

.flavor-cf-compare-modal-close:hover {
    background: rgba(255,255,255,0.25);
}

.flavor-cf-compare-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    margin-top: 0;
}

.flavor-cf-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.flavor-cf-compare-table th {
    padding: 0;
    vertical-align: bottom;
    border-right: 1px solid #e8e8e8;
    min-width: 130px;
    max-width: 170px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}

.flavor-cf-compare-table th:first-child {
    min-width: 100px;
    max-width: 120px;
    border-right: 2px solid #e0e0e0;
    background: #f8f9fa;
    z-index: 3;
}

.flavor-cf-compare-product-header {
    padding: 7px 8px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    border-bottom: 2px solid #1a4fd6;
    height: 100%;
}

.flavor-cf-compare-product-header img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.flavor-cf-compare-product-name {
    font-size: 12px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    text-align: center;
}

.flavor-cf-compare-product-rating {
    font-size: 10px;
    color: #2962ff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.flavor-cf-compare-product-rating-label {
    font-weight: 500;
    color: #888;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.flavor-cf-compare-product-actions {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1px;
}

.flavor-cf-compare-product-link {
    background: #2962ff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.flavor-cf-compare-product-link:hover {
    background: #0034c2;
    color: #ffffff;
}

.flavor-cf-compare-table td {
    padding: 7px 10px;
    font-size: 12px;
    border-right: 1px solid #e8e8e8;
    border-top: 1px solid #f0f0f0;
    vertical-align: middle;
    text-align: center;
    color: #333;
    line-height: 1.3;
}

.flavor-cf-compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8f9fa;
    border-right: 2px solid #e0e0e0;
}

.flavor-cf-compare-table tr:nth-child(even) td {
    background: #fafafa;
}

.flavor-cf-compare-table tr:nth-child(even) td:first-child {
    background: #f3f4f6;
}

.flavor-cf-compare-table .spec-best {
    color: #1a8a3c;
    font-weight: 700;
}

.flavor-cf-compare-table .spec-empty {
    color: #bbb;
    font-style: italic;
}

.flavor-cf-compare-loading {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.flavor-cf-compare-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-top-color: #2962ff;
    border-radius: 50%;
    animation: flavor-cf-spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

/* Scale down pricing shortcode inside compare table - zoom shrinks layout space */
.flavor-cf-compare-product-pricing {
    zoom: 0.7;
    width: 100%;
    overflow: hidden;
}

.flavor-cf-compare-product-pricing table {
    width: 100%;
    line-height: 1.2;
}

.flavor-cf-compare-product-pricing td,
.flavor-cf-compare-product-pricing th {
    padding: 2px 4px !important;
}
