/**
 * 2007-2024 PrestaShop.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 *
 * @author    Forwix <contact@forwix.com>
 * @copyright 2007-2024 Forwix
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */
#main .page-content, #main .page-footer, #main .page-header {
    margin-bottom: 0 !important;
}

/* Main Section */
.forwix-compare-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.forwix-compare-section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.forwix-compare-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.forwix-compare-section-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Comparisons Container */
.forwix-compare-comparisons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.forwix-compare-comparison {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.forwix-compare-comparison-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.forwix-compare-comparison-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.forwix-compare-comparison-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Products Grid */
.forwix-compare-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.forwix-compare-product-wrapper {
    position: relative;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.forwix-compare-product-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.forwix-compare-product-wrapper.forwix-compare-best-price {
    border-color: #28a745;
    background: #f0fff4;
}

/* Product Card */
.forwix-compare-product-card {
    display: flex;
    flex-direction: column;
}

.forwix-compare-product-image {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.forwix-compare-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.forwix-compare-product-info {
    flex: 1;
}

.forwix-compare-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.forwix-compare-product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forwix-compare-product-name a:hover {
    color: #007bff;
}

.forwix-compare-product-marketplace {
    margin-bottom: 0.5rem;
}

.forwix-compare-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
    margin-top: 0.5rem;
}

/* Badges */
.forwix-compare-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    background: #6c757d;
    color: #fff;
}

.forwix-compare-badge.best-price {
    background: #28a745;
    color: #fff;
}

.forwix-compare-badge.similarity-score {
    background: #17a2b8;
    color: #fff;
}

.forwix-compare-badge.marketplace-mercadolibre {
    background: #ffe600;
    color: #000;
}

.forwix-compare-badge.marketplace-falabella {
    background: #0066cc;
    color: #fff;
}

/* Price Compare */
.forwix-compare-price-compare {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.forwix-compare-price-diff {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forwix-compare-price-diff-label {
    font-size: 0.9rem;
    color: #666;
}

.forwix-compare-price-diff-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.forwix-compare-price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.forwix-compare-price-min {
    font-weight: 600;
    color: #28a745;
}

.forwix-compare-price-max {
    font-weight: 600;
    color: #dc3545;
}

/* Product Actions */
.forwix-compare-product-actions {
    margin-top: 1rem;
    text-align: center;
}

.forwix-compare-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.forwix-compare-btn-primary {
    background: #007bff;
    color: #fff;
}

.forwix-compare-btn-primary:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

.forwix-compare-btn-secondary {
    background: #F36B21; 
    color: #fff !important;
}

.forwix-compare-btn-secondary:hover {
    background: #545b62;
    color: #fff;
    text-decoration: none;
}

/* Home Section */
.forwix-compare-comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.forwix-compare-comparison-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.forwix-compare-price-diff-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: #28a745;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.forwix-compare-products-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forwix-compare-product-compact {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.forwix-compare-product-compact.forwix-compare-best-price {
    border-color: #28a745;
    background: #f0fff4;
}

.forwix-compare-product-image-compact {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.forwix-compare-product-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.forwix-compare-product-info-compact {
    flex: 1;
}

.forwix-compare-product-name-compact {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.forwix-compare-product-name-compact a {
    color: #333;
    text-decoration: none;
}

.forwix-compare-product-marketplace-compact {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.forwix-compare-product-price-compact {
    font-size: 1rem;
    font-weight: 700;
    color: #28a745;
}

/* Best Deals */
.forwix-compare-deals-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.forwix-compare-deal-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.forwix-compare-deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.forwix-compare-deal-savings {
    display: flex;
    flex-direction: column;
}

.forwix-compare-deal-savings-label {
    font-size: 0.9rem;
    color: #666;
}

.forwix-compare-deal-savings-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.forwix-compare-deal-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.forwix-compare-deal-product {
    position: relative;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.forwix-compare-deal-product.forwix-compare-best-price {
    border-color: #28a745;
    background: #f0fff4;
}

.forwix-compare-deal-product-image {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.forwix-compare-deal-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.forwix-compare-deal-product-info {
    text-align: center;
}

.forwix-compare-deal-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.forwix-compare-deal-product-name a {
    color: #333;
    text-decoration: none;
}

.forwix-compare-deal-product-marketplace {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.forwix-compare-deal-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 1rem;
}

.forwix-compare-deal-product-actions {
    margin-top: 1rem;
}

/* Similar Products */
.forwix-compare-base-product {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #007bff;
}

.forwix-compare-base-product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #007bff;
    margin: 0 0 1rem 0;
}

.forwix-compare-similar-products {
    margin-top: 1.5rem;
}

.forwix-compare-similar-products-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

/* Savings Score Badge */
.forwix-savings-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.forwix-savings-score-icon {
    font-size: 1.2rem;
}

.forwix-savings-score-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.forwix-savings-score-text {
    font-weight: 700;
}

.forwix-savings-score-value {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Score Levels */
.forwix-savings-score-top {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.forwix-savings-score-good {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(81, 207, 102, 0.3);
}

.forwix-savings-score-normal {
    background: linear-gradient(135deg, #ffd43b 0%, #fcc419 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 212, 59, 0.3);
}

.forwix-savings-score-low {
    background: #e9ecef;
    color: #666;
    border: 1px solid #dee2e6;
}

.forwix-savings-score-none {
    background: #f8f9fa;
    color: #999;
}

/* Score in product cards */
.forwix-compare-product-card .forwix-savings-score-badge {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
}

/* Score breakdown tooltip (optional) */
.forwix-savings-score-breakdown {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.forwix-savings-score-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forwix-compare-section {
        padding: 1rem;
    }

    .forwix-compare-products-grid {
        grid-template-columns: 1fr;
    }

    .forwix-compare-comparisons-grid {
        grid-template-columns: 1fr;
    }

    .forwix-compare-deal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .forwix-compare-deal-products {
        grid-template-columns: 1fr;
    }

    .forwix-compare-product-compact {
        flex-direction: column;
    }

    .forwix-compare-product-image-compact {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   Product page blocks: Alerts + Price History
   ============================================ */
.forwix-product-block {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.forwix-block-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.forwix-block-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.forwix-block-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.forwix-block-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.forwix-block-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.45;
}

/* --- Alert form --- */
.forwix-compare-alert-form .forwix-alert-conditions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.forwix-alert-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.forwix-alert-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.forwix-alert-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
}

.forwix-alert-input {
    min-width: 0;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
}

.forwix-alert-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.forwix-alert-target-score { width: 4rem; }
.forwix-alert-target-price { width: 5rem; }
.forwix-alert-select { width: 10rem; max-width: 100%; }

.forwix-alert-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.forwix-compare-alert-form .forwix-alert-submit {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.forwix-compare-alert-form .forwix-alert-submit:hover {
    background: #1d4ed8;
}

.forwix-alert-message {
    font-size: 0.875rem;
    font-weight: 500;
}

.forwix-alert-message--success {
    color: #059669;
}

.forwix-alert-message--error {
    color: #dc2626;
}

/* --- Price history --- */
.forwix-price-history .forwix-price-insights {
    margin-bottom: 1rem;
}

.forwix-price-history .forwix-insight {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
}

.forwix-price-history .forwix-insight--good { color: #059669; }
.forwix-price-history .forwix-insight--warn { color: #d97706; }
.forwix-price-history .forwix-insight--ok { color: #0284c7; }
.forwix-price-history .forwix-insight--muted { color: #9ca3af; }

.forwix-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.forwix-stat-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.forwix-stat-item--highlight {
    background: #eff6ff;
    border-color: #93c5fd;
}

.forwix-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.forwix-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.forwix-chart-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.forwix-price-chart {
    max-width: 100%;
    height: auto;
    display: block;
    color: #6b7280;
}

.forwix-chart-legend {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.forwix-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 576px) {
    .forwix-alert-row { flex-direction: column; align-items: flex-start; }
    .forwix-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== Comparison landing (UX: main product + alternatives + best offer) ========== */
.forwix-compare-landing { margin: 0 0 2rem; padding: 1rem 1.5rem 1.5rem; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.forwix-compare-landing-header { text-align: center; margin-bottom: 1.5rem; }
.forwix-compare-landing-trust { font-size: 0.9rem; color: #495057; margin: 0 0 0.5rem; line-height: 1.4; }
.forwix-compare-landing-title { font-size: 1.35rem; font-weight: 700; color: #212529; margin: 0 0 0.25rem; line-height: 1.3; }
.forwix-compare-landing-subtitle { font-size: 1rem; font-weight: 500; color: #6c757d; margin: 0; }
.forwix-compare-landing-grid { display: flex; flex-direction: column; gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.forwix-compare-landing-card { position: relative; padding: 1.25rem; background: #f8f9fa; border: 2px solid #dee2e6; border-radius: 8px; }
.forwix-compare-landing-card.forwix-compare-best-price { border-color: #198754; background: #d1e7dd; }
.forwix-compare-landing-card.forwix-compare-alternative { border-color: #dee2e6; }
.forwix-compare-landing-card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; min-height: 1.5rem; }
.forwix-compare-landing-card-image { margin-bottom: 0.75rem; text-align: center; }
.forwix-compare-landing-card-image img { max-width: 100%; height: auto; border-radius: 6px; }
.forwix-compare-landing-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin-bottom: 0.35rem; }
.forwix-compare-landing-card-row.forwix-row-price { margin-bottom: 0.75rem; }
.forwix-compare-label { font-size: 0.8rem; color: #6c757d; text-transform: uppercase; letter-spacing: 0.02em; }
.forwix-compare-value { font-size: 0.9rem; font-weight: 600; color: #212529; }
.forwix-compare-landing-card-name { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; color: #212529; line-height: 1.3; }
.forwix-compare-landing-card-price { font-weight: 700; }
.forwix-compare-landing-card .forwix-price-best { font-size: 1.5rem; color: #198754; }
.forwix-compare-landing-card .forwix-price-alt { font-size: 1.1rem; color: #495057; }
.forwix-compare-cta { display: inline-block; margin-top: 0.5rem; padding: 0.5rem 1.25rem; font-size: 0.95rem; font-weight: 600; text-align: center; text-decoration: none; border-radius: 6px; }
.forwix-compare-landing-vs-divider { font-size: 1.25rem; font-weight: 700; color: #adb5bd; text-align: center; padding: 0.25rem 0; }
.forwix-compare-landing-savings { text-align: center; padding: 1rem; margin: 1rem 0; background: #d1e7dd; border-radius: 8px; border: 1px solid #198754; }
.forwix-compare-landing-savings .forwix-savings-label { font-size: 1.15rem; font-weight: 700; color: #0f5132; display: block; margin-bottom: 0.25rem; }
.forwix-compare-landing-savings .forwix-savings-desc { font-size: 0.9rem; color: #0f5132; margin: 0; }
.forwix-compare-landing-footer { text-align: center; margin-top: 1.5rem; }
/* Badges (informative only, no logic) */
.forwix-compare-badge { display: inline-block; padding: 0.25rem 0.5rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; border-radius: 4px; }
.forwix-badge-best-price { background: #198754; color: #fff; }
.forwix-badge-recommended { background: #0d6efd; color: #fff; }
.forwix-badge-more-expensive { background: #6c757d; color: #fff; }
.forwix-badge-alt { background: #e9ecef; color: #495057; }
.forwix-badge-marketplace { background: #e7f1ff; color: #0d6efd; font-size: 0.65rem; }
@media (min-width: 768px) {
    .forwix-compare-landing-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: start; }
    .forwix-compare-landing-card:only-of-type { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
    .forwix-compare-landing-vs-divider { align-self: center; }
    .forwix-compare-landing-card.forwix-compare-alternative:nth-child(n+4) { grid-column: 1 / -1; max-width: 400px; justify-self: center; }
}
@media (max-width: 767px) {
    .forwix-compare-landing { padding: 1rem; }
    .forwix-compare-landing-card { padding: 1rem; }
    .forwix-compare-landing-card .forwix-price-best { font-size: 1.35rem; }
    .forwix-compare-cta { width: 100%; box-sizing: border-box; }
}

/* Comparison search / home (?q= | ?id_category= | no params) */
.forwix-compare-search { margin: 2rem 0; padding: 0; }
.forwix-compare-search-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.forwix-compare-search-desc { color: #666; margin-bottom: 1.5rem; }
.forwix-compare-search-form { margin-bottom: 2rem; }
.forwix-compare-search-form form { display: flex; gap: 0.5rem; max-width: 500px; }
.forwix-compare-search-form input[type="search"] { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid #dee2e6; border-radius: 4px; }

/* Hero search block (top section – professional look) */
.forwix-compare-search-hero { margin-top: 0; margin-bottom: 1rem; }
.forwix-compare-search-hero-inner { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 12px; padding: 1.5rem 1.25rem; border: 1px solid #dee2e6; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.forwix-compare-search-hero-desc { color: #495057; font-size: 1rem; margin: 0 0 1rem 0; font-weight: 500; }
.forwix-compare-search-hero-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; max-width: 560px; }
.forwix-compare-search-hero-input-wrap { flex: 1; min-width: 200px; }
.forwix-compare-search-hero-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.forwix-compare-search-hero-input:hover { border-color: #adb5bd; }
.forwix-compare-search-hero-input:focus { border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15); outline: 0; }
.forwix-compare-search-hero-btn { padding: 0.75rem 1.5rem; font-weight: 600; border-radius: 8px; white-space: nowrap; transition: background-color 0.2s, transform 0.1s; }
.forwix-compare-search-hero-btn:hover { transform: translateY(-1px); }
.forwix-compare-search-hero-btn:active { transform: translateY(0); }
@media (max-width: 575px) { .forwix-compare-search-hero-form { flex-direction: column; } .forwix-compare-search-hero-input-wrap { min-width: 100%; } .forwix-compare-search-hero-btn { width: 100%; } }
.forwix-compare-search-results { list-style: none; padding: 0; margin: 0; }
.forwix-compare-search-result-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 1rem; border-bottom: 1px solid #eee; }
.forwix-compare-search-result-name { flex: 1; font-weight: 600; }
.forwix-compare-search-result-price { color: #28a745; font-weight: 600; }

/* Comparison search result cards: product + best price + single CTA */
.forwix-comparison-results-grid { display: flex; flex-wrap: wrap; margin: 0 -0.5rem; gap: 0; }
.forwix-comparison-result-card { padding: 0 0.5rem 1rem; display: flex; flex-direction: column; }
.forwix-comparison-result-card .forwix-compare-cta { margin-top: 0.5rem; font-size: 0.9rem; }
.forwix-comparison-card-best { font-size: 0.85rem; color: #198754; font-weight: 600; margin: 0.5rem 0 0 0; }
.forwix-comparison-result-card .forwix-compare-badge.forwix-badge-best-price { margin-top: 0.35rem; }
@media (max-width: 767px) {
    .forwix-comparison-results-grid { margin: 0 -0.25rem; }
    .forwix-comparison-result-card { padding: 0 0.25rem 1rem; }
}

.forwix-compare-search-no-results { color: #666; margin-bottom: 1rem; }
.forwix-compare-home-url-help { font-size: 0.85rem; color: #666; margin-top: 1.5rem; }
.forwix-compare-home-url-help code { background: #f0f0f0; padding: 0.2rem 0.4rem; border-radius: 3px; }
.forwix-compare-no-result { margin: 2rem 0; padding: 1.5rem; text-align: center; }
.forwix-compare-no-result .forwix-compare-message { margin-bottom: 0.75rem; font-size: 1rem; color: #212529; }
.forwix-compare-no-result .forwix-compare-trust { font-size: 0.9rem; color: #6c757d; margin-bottom: 1.25rem; }
.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; }
/* Accessibility: focus visible, readable sizes */
.forwix-compare-landing .forwix-compare-cta:focus-visible,
.forwix-compare-search .forwix-compare-search-hero-btn:focus-visible,
.forwix-compare-search .forwix-compare-search-hero-input:focus-visible,
.forwix-comparison-result-card .forwix-compare-cta:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
.forwix-compare-landing-card-name,
.forwix-compare-landing-card-price { font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
    .forwix-compare-product-wrapper:hover,
    .forwix-compare-search-hero-btn:hover { transform: none; }
}

/* Autocomplete dropdown (same as ps_searchbar) */
.forwix-compare-search .ui-autocomplete.searchbar-autocomplete,
.forwix-compare-home .ui-autocomplete.searchbar-autocomplete { width: 100%; min-height: 100%; border: none; max-height: 400px; overflow-y: auto; }
.forwix-compare-search .ui-autocomplete.searchbar-autocomplete li a,
.forwix-compare-search .ui-autocomplete.searchbar-autocomplete li a.ui-state-focus,
.forwix-compare-home .ui-autocomplete.searchbar-autocomplete li a,
.forwix-compare-home .ui-autocomplete.searchbar-autocomplete li a.ui-state-focus { padding: 8px 15px; overflow: auto; border: none; background: none; margin: auto; border-radius: 0; }
.forwix-compare-search .ui-autocomplete.searchbar-autocomplete li a:hover,
.forwix-compare-home .ui-autocomplete.searchbar-autocomplete li a:hover { background-color: #f1f1f1; cursor: pointer; }
.forwix-compare-search .ui-autocomplete.searchbar-autocomplete li a .autocomplete-thumbnail,
.forwix-compare-home .ui-autocomplete.searchbar-autocomplete li a .autocomplete-thumbnail { float: left; width: 50px; height: auto; margin-right: 8px; }
@media (min-width: 768px) { .forwix-compare-search .ui-autocomplete.searchbar-autocomplete, .forwix-compare-home .ui-autocomplete.searchbar-autocomplete { width: 400px; min-height: auto; } }
