/* Outliyr Product Comparison — comparison.css */
:root {
    --outliyr-primary: #1a1a2e;
    --outliyr-accent: #3DA5FF;
    --outliyr-accent-hover: #2B8DE6;
    --outliyr-bg: #ffffff;
    --outliyr-bg-alt: #f8f9fa;
    --outliyr-border: #e2e8f0;
    --outliyr-text: #2d3748;
    --outliyr-text-light: #718096;
    --outliyr-success: #48bb78;
    --outliyr-warning: #ecc94b;
    --outliyr-danger: #f56565;
    --outliyr-radius: 4px;
    --outliyr-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --outliyr-shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --outliyr-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 1. Wrapper */
.opc-wrapper { max-width: 100%; margin: 0 auto; padding: 0 2rem; font-family: var(--outliyr-font); color: var(--outliyr-text); line-height: 1.6; }
.opc-wrapper *, .opc-wrapper *::before, .opc-wrapper *::after { box-sizing: border-box; }
/* Reset theme button overrides — prevent blue-on-blue hover */
.opc-wrapper button:not(.opc-cta-btn):not(.opc-compare-btn):not(.opc-vote-btn):not(.opc-submit-btn):not(.opc-email-submit) { background: var(--outliyr-bg); color: var(--outliyr-text); }
.opc-wrapper button:not(.opc-cta-btn):not(.opc-compare-btn):not(.opc-vote-btn):not(.opc-submit-btn):not(.opc-email-submit):hover { background: var(--outliyr-bg-alt); color: var(--outliyr-text); }

/* 1b. Outer sections (outside .opc-wrapper) inherit padding */
.opc-hero, .opc-quick-picks-section, .opc-community, .opc-faq, .opc-llm-summaries { padding-left: 2rem; padding-right: 2rem; }

/* 2. Hero */
.opc-hero { max-width: 800px; margin: 0 auto 3rem; padding-top: 2rem; padding-bottom: 0; }
.opc-hero-subtitle { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.75rem; color: var(--outliyr-primary); }
.opc-hero p { margin: 0 0 0.75rem; color: var(--outliyr-text-light); line-height: 1.7; }
.opc-hero p:last-child { margin-bottom: 0; }
.opc-hero a { color: var(--outliyr-accent); text-decoration: underline; }
.opc-hero a:hover { color: var(--outliyr-accent-hover); }

/* 2b. Affiliate disclosure */
.opc-affiliate-disclosure { max-width: 800px; margin: -1.5rem auto 1.5rem; font-size: 0.75rem; color: #9ca3af; line-height: 1.5; padding: 0 2rem; }
.opc-affiliate-disclosure a { color: #9ca3af; text-decoration: underline; }
.opc-affiliate-disclosure a:hover { color: var(--outliyr-accent); }

/* 3. Quick Picks */
.opc-quick-picks-section { margin-bottom: 2.5rem; }
.opc-quick-picks-section h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 1rem; color: var(--outliyr-primary); }
.opc-quick-picks { display: flex; gap: 1rem; overflow-x: auto; overflow-y: hidden; padding: 0.5rem 0 1.5rem; scrollbar-width: none; -ms-overflow-style: none; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
.opc-quick-picks::-webkit-scrollbar { display: none; }
.opc-quick-pick-card { min-width: 200px; max-width: 220px; flex-shrink: 0; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); padding: 1.25rem; background: var(--outliyr-bg); transition: box-shadow 0.2s; display: flex; flex-direction: column; gap: 0.4rem; }
.opc-quick-pick-card:hover { box-shadow: var(--outliyr-shadow-lg); }
.opc-qp-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: var(--outliyr-accent); }
.opc-qp-thumb { width: 80px; height: 80px; object-fit: contain; margin-bottom: 0.25rem; }
.opc-quick-pick-card h3 { font-size: 0.95rem; margin: 0; line-height: 1.3; }
.opc-qp-price { font-weight: 700; font-size: 0.9rem; margin: 0; color: var(--outliyr-text); }
.opc-quick-pick-card p { font-size: 0.85rem; margin: 0; color: var(--outliyr-text-light); }
.opc-qp-cta { font-size: 0.8rem; padding: 0.4rem 0.75rem; margin-top: auto; text-align: center; }

/* 4. Tabs */
.opc-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--outliyr-border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex: 1; min-width: 0; -webkit-overflow-scrolling: touch; }
.opc-tabs::-webkit-scrollbar { display: none; }
.opc-tab { padding: 0.75rem 1.5rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 0.9rem; color: var(--outliyr-text-light); white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; transition: color 0.2s, border-color 0.2s; }
.opc-tab:hover { color: var(--outliyr-text); }
.opc-tab.active { border-bottom-color: var(--outliyr-accent); color: var(--outliyr-text); font-weight: 600; }

/* 5. Filter Bar */
.opc-filter-bar { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 0; }
.opc-filter-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.opc-filter-row-multi { gap: 0.5rem; align-items: baseline; }
.opc-filter-row-multi .opc-filter-multi { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opc-filter-row-multi > .opc-filter-label { font-size: 0.85rem; font-weight: 600; color: var(--outliyr-text-light); white-space: nowrap; }
.opc-filter-select, .opc-filter-range { border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); padding: 0.5rem 0.75rem; font-size: 0.85rem; font-family: var(--outliyr-font); color: var(--outliyr-text); background: var(--outliyr-bg); }
.opc-filter-select select, .opc-filter-select .opc-filter-input { border: none; background: transparent; outline: none; }
.opc-filter-select:focus, .opc-filter-range:focus { outline: none; border-color: var(--outliyr-accent); }
.opc-filter-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.6rem; border-radius: var(--outliyr-radius); background: var(--outliyr-bg-alt); border: 1px solid var(--outliyr-border); font-size: 0.8rem; }
.opc-filter-chip button { background: none; border: none; cursor: pointer; font-size: 0.9rem; color: var(--outliyr-text-light); padding: 0; line-height: 1; }
.opc-preset-btn { padding: 0.35rem 0.75rem; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); background: var(--outliyr-bg); font-size: 0.8rem; cursor: pointer; color: var(--outliyr-text); transition: border-color 0.2s; }
.opc-preset-btn:hover { border-color: var(--outliyr-accent); color: var(--outliyr-accent); }

/* 5a. Search Input */
.opc-search-input { width: 100%; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); padding: 0.6rem 0.75rem; font-size: 0.9rem; font-family: var(--outliyr-font); }
.opc-search-input:focus { outline: none; border-color: var(--outliyr-accent); }

/* 5b. Column Toggles */
.opc-column-toggles { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0; flex-wrap: wrap; }
.opc-col-toggle-label { font-size: 0.8rem; font-weight: 600; color: var(--outliyr-text-light); text-transform: uppercase; letter-spacing: 0.03em; }
.opc-col-toggle { padding: 0.3rem 0.7rem; border-radius: var(--outliyr-radius); font-size: 0.8rem; cursor: pointer; font-family: var(--outliyr-font); transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s; }
.opc-col-toggle.active { background: rgba(61,165,255,0.08); color: var(--outliyr-accent); border: 1px solid var(--outliyr-accent); font-weight: 600; }
.opc-col-toggle:not(.active) { background: var(--outliyr-bg-alt); color: var(--outliyr-text-light); border: 1px solid var(--outliyr-border); text-decoration: line-through; font-weight: 400; opacity: 0.7; }
.opc-col-toggle:hover { border-color: var(--outliyr-accent); opacity: 1; }
/* Key-based column hiding */
.opc-wrapper.opc-hide-brand .opc-col-brand { display: none; }
.opc-wrapper.opc-hide-irradiance_12in .opc-col-irradiance_12in { display: none; }
.opc-wrapper.opc-hide-wavelengths .opc-col-wavelengths { display: none; }
.opc-wrapper.opc-hide-flicker_status .opc-col-flicker_status { display: none; }
.opc-wrapper.opc-hide-emf_status .opc-col-emf_status { display: none; }
.opc-wrapper.opc-hide-noise_db .opc-col-noise_db { display: none; }
.opc-wrapper.opc-hide-emf_detail .opc-col-emf_detail { display: none; }
.opc-wrapper.opc-hide-rating .opc-col-rating { display: none; }
.opc-wrapper.opc-hide-dollar_per_irr .opc-col-dollar_per_irr { display: none; }
.opc-wrapper.opc-hide-dollar_per_led .opc-col-dollar_per_led { display: none; }
.opc-wrapper.opc-hide-led_count .opc-col-led_count { display: none; }
.opc-wrapper.opc-hide-dose_time .opc-col-dose_time { display: none; }

/* 6. Table */
.opc-table-wrap { overflow-x: auto; overflow-y: hidden; max-width: 100%; -webkit-overflow-scrolling: touch; }
.opc-table { min-width: 900px; width: 100%; border-collapse: separate; border-spacing: 0; overflow: visible; }
.opc-table th { position: sticky; top: 0; background: var(--outliyr-bg); border-bottom: 2px solid var(--outliyr-border); padding: 0.75rem 0.5rem; text-align: left; vertical-align: bottom; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--outliyr-text-light); z-index: 10; }
.opc-table th[data-sort-key] { cursor: pointer; user-select: none; }
.opc-table th[data-sort-key]::after { content: ' \2195'; font-size: 0.75rem; opacity: 0.4; }
.opc-table th.sort-asc::after { content: ' \2191'; opacity: 1; }
.opc-table th.sort-desc::after { content: ' \2193'; opacity: 1; }
.opc-table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--outliyr-border); vertical-align: middle; font-size: 0.85rem; }
.opc-table tr:hover td { background: var(--outliyr-bg-alt); }

/* Device column: thumb + name + badge stacked */
.opc-cell-device { font-weight: 600; min-width: 160px; max-width: 220px; }
.opc-device-thumb { width: 60px; height: 60px; object-fit: contain; display: block; margin-bottom: 0.3rem; }
.opc-device-thumb-placeholder { display: none; }
.opc-device-name { margin-bottom: 0.2rem; line-height: 1.3; }
.opc-device-badge { margin-top: 0.15rem; }

/* Tabs + View Toggle row */
.opc-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem; }
.opc-product-link { color: var(--outliyr-text); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.opc-product-link:hover { color: var(--outliyr-accent); border-bottom-color: var(--outliyr-accent); }
.opc-cell-brand { color: var(--outliyr-text-light); font-size: 0.8rem; white-space: nowrap; }

/* Sticky device column */
.opc-table td.opc-cell-device { position: sticky; left: 0; z-index: 5; background: var(--outliyr-bg); }
.opc-table th.opc-th-device { position: sticky; left: 0; z-index: 11; background: var(--outliyr-bg); }
.opc-table tr:hover td.opc-cell-device { background: var(--outliyr-bg-alt); }

/* 6b. View toggle (class-based) */
.opc-view-table .opc-table-wrap { display: block; }
.opc-view-table .opc-cards { display: none; }
.opc-view-table .opc-column-toggles { display: flex; }
.opc-view-cards .opc-table-wrap { display: none; }
.opc-view-cards .opc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.opc-view-cards .opc-column-toggles { display: none; }

/* 7. Cards */
.opc-card { border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); padding: 0; background: var(--outliyr-bg); box-shadow: var(--outliyr-shadow); transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; overflow: hidden; }
.opc-card:hover { box-shadow: var(--outliyr-shadow-lg); transform: translateY(-2px); }
.opc-card-header { position: relative; display: flex; align-items: center; justify-content: center; padding: 1.25rem 1rem 0.75rem; background: var(--outliyr-bg-alt); border-bottom: 1px solid var(--outliyr-border); gap: 0.75rem; min-height: 120px; }
.opc-card-header .opc-badge-verified, .opc-card-header .opc-badge-spec-sheet, .opc-card-header .opc-badge-community { position: absolute; top: 0.75rem; left: 0.75rem; }
.opc-card-thumb { width: 100px; height: 100px; object-fit: contain; flex-shrink: 0; }
.opc-card-body { flex: 1; min-height: 0; padding: 1rem; }
.opc-card h3 { margin: 0 0 0.15rem; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.opc-card-brand { font-size: 0.7rem; color: var(--outliyr-text-light); display: block; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.opc-card-price { margin-bottom: 0.6rem; font-size: 1.1rem; font-weight: 700; }
.opc-card-price .opc-price-original { font-size: 0.85rem; }
.opc-card-metrics { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.6rem; margin: 0 0 0.6rem; font-size: 0.8rem; padding: 0.5rem 0; border-top: 1px solid var(--outliyr-border); border-bottom: 1px solid var(--outliyr-border); }
.opc-card-metrics dt { color: var(--outliyr-text-light); font-weight: 500; }
.opc-card-metrics dd { margin: 0; font-weight: 600; }
.opc-card-wavelengths { margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.opc-card-rating { margin-bottom: 0.25rem; }
.opc-card-footer { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-top: 1px solid var(--outliyr-border); margin-top: auto; background: var(--outliyr-bg); }
.opc-card-buy { font-size: 0.8rem; padding: 0.4rem 0.85rem; text-align: center; margin-left: auto; white-space: nowrap; }
.opc-card-meta { font-size: 0.85rem; color: var(--outliyr-text-light); }

/* 7b. Thumbnails */
.opc-thumb { width: 100px; height: 100px; object-fit: contain; border-radius: var(--outliyr-radius); }
.opc-thumb-placeholder { display: inline-block; width: 100px; height: 100px; background: var(--outliyr-bg-alt); border: 1px dashed var(--outliyr-border); border-radius: var(--outliyr-radius); }

/* 8. Trust Badges */
.opc-badge-verified, .opc-badge-spec-sheet, .opc-badge-community { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.5rem; border-radius: var(--outliyr-radius); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.opc-badge-verified { background: #d4edda; color: #276749; }
.opc-badge-spec-sheet { background: var(--outliyr-bg-alt); color: var(--outliyr-text-light); }
.opc-badge-community { background: #d1ecf1; color: #2b6cb0; }

/* 9. Status Dots */
.opc-status-good, .opc-status-moderate, .opc-status-poor { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; position: relative; cursor: help; }
.opc-status-good::before, .opc-status-moderate::before, .opc-status-poor::before { content: ''; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.opc-status-good::before { background: var(--outliyr-success); }
.opc-status-moderate::before { background: var(--outliyr-warning); }
.opc-status-poor::before { background: var(--outliyr-danger); }

/* Instant CSS tooltips for status indicators */
.opc-status[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 4px 8px; background: var(--outliyr-primary); color: #fff; font-size: 0.75rem; border-radius: var(--outliyr-radius); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 100; }
.opc-status[data-tooltip]:hover::after { opacity: 1; }

/* 10. Stars */
.opc-stars { font-size: 0; letter-spacing: 0; display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.opc-star { display: inline-block; width: 1em; height: 1em; font-size: 15px; line-height: 1; overflow: visible; }
.opc-star-full::before { content: '\2605'; color: var(--outliyr-warning); }
.opc-star-half { position: relative; overflow: hidden; }
.opc-star-half::before { content: '\2605'; color: var(--outliyr-border); }
.opc-star-half::after { content: '\2605'; color: var(--outliyr-warning); position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; display: inline-block; }
.opc-star-empty::before { content: '\2605'; color: var(--outliyr-border); }
.opc-rating-num { font-size: 0.85rem; color: var(--outliyr-text-light); margin-left: 0.35rem; font-weight: 500; }

/* 11. Detail Panel */
.opc-detail-panel { max-height: 0; overflow: hidden; background: var(--outliyr-bg-alt); border-top: 1px solid var(--outliyr-border); transition: max-height 0.3s ease; }
.opc-detail-panel.open { max-height: 600px; padding: 1rem; }
.opc-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.opc-detail-grid dt { font-size: 0.8rem; color: var(--outliyr-text-light); text-transform: uppercase; letter-spacing: 0.03em; }
.opc-detail-grid dd { margin: 0.15rem 0 0.75rem; font-weight: 500; }

/* 12. Compare Bar */
.opc-compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--outliyr-primary); color: #fff; padding: 1rem; display: flex; align-items: center; justify-content: space-between; transform: translateY(100%); transition: transform 0.3s ease; z-index: 1000; }
.opc-compare-bar.active { transform: translateY(0); }
.opc-compare-bar button { background: var(--outliyr-accent); color: #fff; border: none; padding: 0.5rem 1.25rem; border-radius: var(--outliyr-radius); cursor: pointer; font-weight: 600; }
.opc-compare-bar button:hover { background: var(--outliyr-accent-hover); }

/* 13. Compare Modal */
.opc-compare-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1001; display: none; align-items: center; justify-content: center; }
.opc-compare-overlay.open { display: flex; }
.opc-compare-modal { background: var(--outliyr-bg); max-width: 1000px; width: 95%; max-height: 80vh; overflow-y: auto; border-radius: var(--outliyr-radius); box-shadow: var(--outliyr-shadow-lg); padding: 1.5rem; }
.opc-compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.opc-compare-winner { background: #f0fff4; }
.opc-compare-weaker { background: #fff5f5; }

/* 14. CTA Section */
.opc-cta-section { background: var(--outliyr-bg-alt); padding: 2rem; text-align: center; border-radius: var(--outliyr-radius); margin: 2rem 0; max-width: 900px; margin-left: auto; margin-right: auto; }
.opc-cta-section h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.opc-cta-section p { color: var(--outliyr-text-light); margin: 0 0 1rem; }
.opc-cta-btn { display: inline-block; background: var(--outliyr-accent); color: #fff !important; padding: 0.65rem 1.5rem; border-radius: var(--outliyr-radius); text-decoration: none; font-weight: 600; transition: background 0.2s; }
.opc-cta-btn:hover, .opc-cta-btn:visited, .opc-cta-btn:active, .opc-cta-btn:focus { background: var(--outliyr-accent-hover); color: #fff !important; }

/* 15. Community Section */
.opc-community-section { padding: 2rem 0; max-width: 900px; margin: 0 auto; }

/* 16. Review Form */
.opc-review-form { max-width: 600px; margin: 0 auto; }
.opc-review-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--outliyr-text); }
.opc-review-form input, .opc-review-form textarea, .opc-review-form select { width: 100%; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); padding: 0.5rem 0.75rem; font-family: var(--outliyr-font); font-size: 0.9rem; margin-bottom: 1rem; }
.opc-review-form input:focus, .opc-review-form textarea:focus { outline: none; border-color: var(--outliyr-accent); }
.opc-review-form textarea { min-height: 100px; resize: vertical; }
.opc-review-form button[type="submit"] { background: var(--outliyr-accent); color: #fff; border: none; padding: 0.65rem 1.5rem; border-radius: var(--outliyr-radius); cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.opc-review-form button[type="submit"]:hover { background: var(--outliyr-accent-hover); }

/* 17. FAQ */
.opc-faq { margin-top: 2rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.opc-faq details { border-bottom: 1px solid var(--outliyr-border); }
.opc-faq summary { padding: 1rem 0; cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.opc-faq summary::-webkit-details-marker { display: none; }
.opc-faq summary::after { content: '+'; font-size: 1.2rem; color: var(--outliyr-text-light); }
.opc-faq details[open] summary::after { content: '\2212'; }
.opc-faq .opc-faq-answer { padding: 0 0 1rem; color: var(--outliyr-text-light); font-size: 0.9rem; }

/* 18. Share Buttons */
.opc-share-buttons { display: flex; gap: 0.5rem; }
.opc-share-buttons a, .opc-share-buttons button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); background: var(--outliyr-bg); color: var(--outliyr-text-light); cursor: pointer; font-size: 0.9rem; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.opc-share-buttons a:hover, .opc-share-buttons button:hover { border-color: var(--outliyr-accent); background: var(--outliyr-accent); color: #fff; }
.opc-share-single { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3rem 0.65rem; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); background: var(--outliyr-bg); color: var(--outliyr-text-light); cursor: pointer; font-size: 0.8rem; font-family: var(--outliyr-font); transition: border-color 0.2s, color 0.2s; }
.opc-share-single:hover { border-color: var(--outliyr-accent); color: var(--outliyr-accent); }

/* 19. Price */
.opc-price { font-weight: 700; }
.opc-price-discount .opc-price-original { text-decoration: line-through; color: var(--outliyr-text-light); font-weight: 400; margin-right: 0.35rem; }
.opc-price-discount .opc-price-sale { color: var(--outliyr-accent); font-weight: 700; }
.opc-discount-badge { display: inline-block; background: #fffbeb; color: #92400e; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.5rem; border: 1.5px dashed #f59e0b; border-radius: var(--outliyr-radius); margin-top: 0.25rem; margin-left: 0; letter-spacing: 0.3px; font-family: monospace; }
.opc-table-buy-link { display: block; margin-top: 0.4rem; font-size: 0.75rem; font-weight: 600; color: #fff; background: var(--outliyr-accent); padding: 0.3rem 0.6rem; border-radius: var(--outliyr-radius); text-decoration: none; transition: background 0.2s; text-align: center; width: fit-content; }
.opc-table-buy-link:hover { background: var(--outliyr-accent-hover); color: #fff; }

/* Wavelength Chips */
.opc-wavelength-chip { display: inline-block; padding: 0.1rem 0.4rem; margin: 0.1rem; font-size: 0.75rem; font-weight: 500; background: var(--outliyr-bg-alt); border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); color: var(--outliyr-text); white-space: nowrap; }

/* Grouped Wavelength Filters */
.opc-wl-grouped { display: flex; flex-direction: column; gap: 0.2rem; }
.opc-wl-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; }
.opc-wl-cat-label { font-size: 0.8rem; font-weight: 600; color: var(--outliyr-text-light); min-width: 55px; }

/* 20. View Toggle */
.opc-view-toggle { display: inline-flex; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); overflow: hidden; flex-shrink: 0; }
.opc-view-toggle button { padding: 0.4rem 0.75rem; border: none; background: var(--outliyr-bg); cursor: pointer; font-size: 0.8rem; color: var(--outliyr-text-light); }
.opc-view-toggle button.active { background: var(--outliyr-primary); color: #fff; }

/* 22. Submit CTA */
.opc-submit-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; margin: 3rem auto; background: var(--outliyr-bg-alt); border-radius: var(--outliyr-radius); max-width: 900px; }
.opc-submit-cta-col h3 { font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--outliyr-primary); }
.opc-submit-cta-col p { font-size: 0.9rem; color: var(--outliyr-text-light); margin: 0 0 1rem; line-height: 1.6; }

/* 21. Mobile Responsive */
@media (max-width: 767px) {
    .opc-wrapper { padding: 0 16px; }
    .opc-hero, .opc-quick-picks-section, .opc-community, .opc-faq, .opc-llm-summaries { padding-left: 16px; padding-right: 16px; }
    /* Mobile: table-wrap IS the scroll container. Override WP's global
       .entry-content table { display:block } which would collapse the table width.
       No left padding — cells already have their own. */
    .opc-table-wrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0; }
    .opc-table { display: table !important; }
    .opc-cell-brand { white-space: normal; max-width: 60px; font-size: 0.7rem; }
    .opc-cell-price { min-width: 110px; }
    .opc-tabs { scroll-padding-left: 16px; }
    .opc-tab { }
    .opc-table { min-width: 700px; }
    /* Sticky device column on mobile */
    .opc-table td.opc-cell-device { position: sticky; left: 0; z-index: 5; background: var(--outliyr-bg); }
    .opc-table th.opc-th-device { position: sticky; left: 0; z-index: 11; background: var(--outliyr-bg); }
    .opc-table th { padding: 0.5rem 0.4rem; font-size: 0.7rem; }
    .opc-table td { padding: 0.5rem 0.4rem; font-size: 0.8rem; }
    .opc-cell-device { min-width: 100px; max-width: 130px; }
    .opc-col-wavelengths { min-width: 140px; }
    .opc-device-thumb { width: 48px; height: 48px; }
    .opc-filter-bar { align-items: stretch; }
    .opc-filter-row { flex-direction: column; align-items: stretch; }
    .opc-filter-row-multi .opc-filter-multi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
    .opc-compare-modal { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
    .opc-submit-cta { grid-template-columns: 1fr; gap: 1.5rem; }
    .opc-view-cards .opc-cards { grid-template-columns: 1fr; }
    .opc-tabs-row { flex-direction: column; gap: 0.5rem; }
    .opc-view-toggle { align-self: flex-end; }
    .opc-tabs { gap: 0; padding-bottom: 2px; max-width: 100%; }
    .opc-tab { padding: 0.6rem 1rem; font-size: 0.8rem; }
    .opc-quick-picks { padding: 0.25rem 0 1rem; }
    .opc-quick-pick-card { min-width: 160px; max-width: 180px; padding: 1rem; }
    .opc-qp-thumb { width: 60px; height: 60px; }
}

/* Desktop 2-col card grid */
@media (min-width: 768px) {
    .opc-view-cards .opc-cards { grid-template-columns: repeat(2, 1fr); }
}

/* 23. Community */
.opc-community { padding: 2rem 0; max-width: 900px; margin: 0 auto; }
.opc-community h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 1rem; color: var(--outliyr-primary); }
.opc-community h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.75rem; color: var(--outliyr-text); }
.opc-community-votes { margin-bottom: 1.5rem; }
.opc-vote-list { padding-left: 1.5rem; margin: 0; }
.opc-vote-list li { padding: 0.35rem 0; font-size: 0.9rem; }
.opc-vote-list .opc-vote-count { font-size: 0.8rem; color: var(--outliyr-text-light); margin-left: 0.5rem; }
.opc-community-reviews { margin-bottom: 1rem; }
.opc-review-card { border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); padding: 1rem; margin-bottom: 0.75rem; background: var(--outliyr-bg); }
.opc-review-excerpt { font-size: 0.9rem; color: var(--outliyr-text-light); margin: 0.5rem 0 0; line-height: 1.5; }

/* 24. LLM Summaries */
.opc-llm-summaries { padding: 2rem 0; border-top: 1px solid var(--outliyr-border); margin-top: 1rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.opc-llm-summaries h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 1rem; color: var(--outliyr-primary); }
.opc-device-summary { font-size: 0.9rem; line-height: 1.7; color: var(--outliyr-text); margin: 0 0 1rem; }
.opc-device-summary:last-child { margin-bottom: 0; }

/* 25. Vote UI */
.opc-vote-wrap { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
.opc-vote-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; background: var(--outliyr-bg-alt); border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); font-size: 0.8rem; font-weight: 600; color: var(--outliyr-text); }
.opc-vote-btn { padding: 0.4rem 0.9rem; border: 1px solid var(--outliyr-accent); border-radius: var(--outliyr-radius); background: var(--outliyr-bg); color: var(--outliyr-accent); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.opc-vote-btn:hover { background: var(--outliyr-accent); color: #fff; }
.opc-vote-btn:disabled { opacity: 0.6; cursor: default; }
.opc-vote-error { font-size: 0.8rem; color: var(--outliyr-danger); margin-left: 8px; }

/* 23. Reviews Section */
.opc-reviews-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--outliyr-border); }
.opc-reviews-section h4 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; color: var(--outliyr-primary); }
.opc-review-item { padding: 12px 0; border-bottom: 1px solid var(--outliyr-border); margin-bottom: 8px; }
.opc-review-item:last-child { border-bottom: none; margin-bottom: 0; }
.opc-review-header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.opc-review-date { font-size: 0.8rem; color: var(--outliyr-text-light); }
.opc-review-rating { font-size: 0.85rem; font-weight: 600; color: var(--outliyr-accent); }
.opc-review-usecase { display: inline-block; font-size: 0.8rem; color: var(--outliyr-text-light); background: var(--outliyr-bg-alt); padding: 2px 8px; border-radius: var(--outliyr-radius); margin-bottom: 6px; }
.opc-review-text { margin: 6px 0 8px; font-size: 0.9rem; line-height: 1.5; }
.opc-review-dimensions { display: flex; flex-wrap: wrap; gap: 6px; }
.opc-dim-badge { display: inline-block; padding: 2px 8px; background: var(--outliyr-bg-alt); border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); font-size: 0.75rem; color: var(--outliyr-text-light); }

/* 24. Review Form */
.opc-review-form-wrap { margin-top: 16px; }
.opc-review-toggle { background: none; border: none; color: var(--outliyr-accent); font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.opc-review-toggle:hover { color: var(--outliyr-accent-hover); }
.opc-review-form-wrap .opc-review-form { display: grid; gap: 12px; max-width: 600px; margin-top: 12px; }
.opc-form-field { display: flex; flex-direction: column; gap: 4px; }
.opc-form-field span { font-size: 0.85rem; font-weight: 600; color: var(--outliyr-text); }
.opc-form-field input, .opc-form-field select, .opc-form-field textarea { width: 100%; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); padding: 0.5rem 0.75rem; font-family: var(--outliyr-font); font-size: 0.9rem; }
.opc-form-field input:focus, .opc-form-field select:focus, .opc-form-field textarea:focus { outline: none; border-color: var(--outliyr-accent); }
.opc-form-field textarea { min-height: 80px; resize: vertical; }
.opc-submit-btn { background: var(--outliyr-accent); color: #fff; border: none; padding: 0.65rem 1.5rem; border-radius: var(--outliyr-radius); cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: background 0.2s; justify-self: start; }
.opc-submit-btn:hover { background: var(--outliyr-accent-hover); }
.opc-submit-btn:disabled { opacity: 0.6; cursor: default; }
.opc-form-notice { font-size: 0.8rem; color: var(--outliyr-text-light); margin: 0; }
.opc-form-msg { padding: 0.5rem 0.75rem; border-radius: var(--outliyr-radius); font-size: 0.85rem; margin-top: 8px; background: #f0fff4; color: #276749; border: 1px solid var(--outliyr-success); }
.opc-form-msg-error { background: #fff5f5; color: #c53030; border-color: var(--outliyr-danger); }

/* 26. Actions Cell */
.opc-cell-actions { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.opc-action-item { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; color: var(--outliyr-text); cursor: pointer; background: var(--outliyr-bg) !important; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); padding: 6px 10px; white-space: nowrap; font-family: var(--outliyr-font); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.opc-action-item:hover { color: var(--outliyr-text) !important; border-color: var(--outliyr-accent) !important; background: var(--outliyr-bg-alt) !important; }
.opc-action-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* 26b. Detail Toggle (card & table view) */
.opc-detail-toggle { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--outliyr-border); border-radius: var(--outliyr-radius); background: var(--outliyr-bg) !important; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--outliyr-text) !important; padding: 6px 12px; white-space: nowrap; transition: border-color 0.2s, background 0.2s; font-family: var(--outliyr-font); }
.opc-detail-toggle:hover, .opc-detail-toggle:focus { border-color: var(--outliyr-accent) !important; background: var(--outliyr-bg-alt) !important; color: var(--outliyr-text) !important; }

/* 27. Screen Reader Only */
.opc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 25. Print */
@media print {
    .opc-compare-bar, .opc-compare-overlay, .opc-share-buttons, .opc-view-toggle, .opc-filter-bar, .opc-tabs { display: none !important; }
    .opc-wrapper { max-width: 100%; }
    .opc-table th { position: static; }
    .opc-card, .opc-quick-pick-card { box-shadow: none; border: 1px solid #ccc; }
    .opc-table-wrap { display: block !important; }
    .opc-cards { display: none !important; }
}

/* 28. Shortlist bookmark button */
.opc-shortlist-btn {
    background: var(--outliyr-bg-alt) !important;
    border: 1px solid var(--outliyr-border);
    border-radius: var(--outliyr-radius);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--outliyr-text) !important;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    font-weight: 500;
    font-size: 0.85rem;
}
.opc-shortlist-btn:hover {
    color: var(--outliyr-text) !important;
    border-color: var(--outliyr-accent) !important;
    background: rgba(61,165,255,0.06) !important;
}
.opc-shortlist-btn.opc-shortlisted {
    color: var(--outliyr-accent);
    border-color: var(--outliyr-accent);
    background: rgba(61,165,255,0.08);
}

/* 29. Email opt-in modal */
.opc-email-modal {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    z-index: 10000;
    transition: bottom 0.3s ease;
}
.opc-email-modal-visible {
    bottom: 0;
}
.opc-email-modal-inner {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-top: 3px solid #2563eb;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 20px 24px;
    position: relative;
}
.opc-email-heading {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-right: 24px;
}
.opc-email-form {
    display: flex;
    gap: 8px;
}
.opc-email-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}
.opc-email-submit {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.opc-email-submit:hover { background: #1d4ed8; }
.opc-email-dismiss {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #9ca3af;
}
.opc-email-no-thanks {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    display: block;
}

/* 30. Toast notifications */
.opc-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10001;
}
.opc-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.opc-toast-error { background: #dc2626; }

/* 31. Shortlist divider row */
.opc-shortlist-divider-cell {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px !important;
    border-bottom: 2px solid #2563eb;
}

/* Irradiance adjusted asterisk */
.opc-irr-adjusted {
	color: #f59e0b;
	font-weight: 700;
	cursor: help;
	margin-left: 2px;
}
.opc-measurement-legend { font-size: 0.75rem; color: var(--outliyr-text-light); margin: 0.75rem 0 0; line-height: 1.4; }
.opc-measurement-legend .opc-irr-adjusted { margin-left: 0; margin-right: 3px; }

/* Discontinued badge */
.opc-badge-discontinued {
	display: block;
	font-size: 10px;
	font-weight: 600;
	color: #92400e;
	background: #fef3c7;
	border: 1px solid #fcd34d;
	border-radius: 3px;
	padding: 1px 5px;
	margin-left: 0;
	margin-top: 0.2rem;
	cursor: help;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	width: fit-content;
}
