/* Elgentos ProductFinder & Compare Products widget styles */
/* Wrapped in @layer so PageBuilder custom CSS always takes priority */

@layer product-finder {
    /* Product Finder widget */
    .product-finder .product-finder-widget {
        max-width: 640px;
        margin: 0 auto;
        padding: 2rem 0;
    }

    .product-finder .product-finder-progress {
        margin-bottom: 1.5rem;
    }

    .product-finder .product-finder-progress-text {
        font-size: 0.875rem;
        color: #6b7280 !important;
        margin-bottom: 0.5rem;
    }

    .product-finder .product-finder-progress-track {
        width: 100%;
        background: #e5e7eb;
        border-radius: 9999px;
        height: 0.5rem;
    }

    .product-finder .product-finder-progress-bar {
        background: #1979c3;
        border-radius: 9999px;
        height: 0.5rem;
        transition: width 0.3s;
    }

    .product-finder .product-finder-step {
        min-height: 200px;
    }

    .product-finder .product-finder-back {
        margin-top: 1.5rem;
    }

    .product-finder .product-finder-back button {
        font-size: 0.875rem;
        color: #6b7280;
        text-decoration: underline;
        background: none;
        border: none;
        cursor: pointer;
    }

    .product-finder .product-finder-question {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #1a1a1a;
    }

    .product-finder .product-finder-multi-notice {
        font-size: 0.875rem;
        color: #6b7280;
        margin-bottom: 1.5rem;
    }

    .product-finder .product-finder-answers {
        margin-top: 1.5rem;
    }

    .product-finder .product-finder-answer {
        display: block;
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem;
        margin-bottom: 0.75rem;
        border: 2px solid #e5e7eb;
        border-radius: 0.5rem;
        background: #fff;
        cursor: pointer;
        font-size: 1.125rem;
        color: #1a1a1a;
        transition: border-color 0.2s;
    }

    .product-finder .product-finder-answer:hover {
        border-color: #9ca3af;
    }

    .product-finder .product-finder-answer.selected {
        border-color: #1979c3;
        background: rgba(25, 121, 195, 0.1);
    }

    .product-finder .product-finder-answer.selected:hover {
        border-color: #1979c3;
    }

    .product-finder .product-finder-next {
        margin-top: 1rem;
    }

    .product-finder .product-finder-intro-actions {
        margin-top: 1.5rem;
        text-align: center;
    }
}

@layer product-finder-result {
    /* Compare Products widget */
    .product-finder-result .block-compare-products-list .compare-back {
        margin-bottom: 1rem;
    }

    .product-finder-result .block-compare-products-list .compare-back-button {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 0.875rem;
        color: #6b7280;
        text-decoration: underline;
        padding: 0;
    }

    .product-finder-result .block-compare-products-list .compare-back-button:hover {
        color: #1a1a1a;
    }

    .product-finder-result .block-compare-products-list .block-title {
        margin-bottom: 1rem;
    }

    .product-finder-result .block-compare-products-list .block-title strong {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1a1a1a;
    }

    .product-finder-result .block-compare-products-list .widget-loading {
        text-align: center;
        padding: 20px;
    }

    .product-finder-result .block-compare-products-list .widget-product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .product-finder-result .block-compare-products-list .product-item {
        list-style: none;
    }

    .product-finder-result .block-compare-products-list .product-item-info {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .product-finder-result .block-compare-products-list .product-item-photo {
        display: block;
        margin-bottom: 0.75rem;
    }

    .product-finder-result .block-compare-products-list .product-image-photo {
        width: 100%;
        height: auto;
    }

    .product-finder-result .block-compare-products-list .product-item-details {
        flex-grow: 1;
    }

    .product-finder-result .block-compare-products-list .product-item-name {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .product-finder-result .block-compare-products-list .product-item-link {
        color: #1a1a1a;
        text-decoration: none;
    }

    .product-finder-result .block-compare-products-list .product-item-link:hover {
        text-decoration: underline;
    }

    .product-finder-result .block-compare-products-list .price-box {
        margin-bottom: 0.75rem;
    }

    .product-finder-result .block-compare-products-list .price {
        font-size: 1rem;
        font-weight: 600;
        color: #1a1a1a;
    }

    .product-finder-result .block-compare-products-list .old-price .price {
        text-decoration: line-through;
        color: #6b7280;
        font-weight: 400;
    }

    .product-finder-result .block-compare-products-list .special-price .price {
        color: #e02b27;
    }

    .product-finder-result .block-compare-products-list .product-item-actions {
        margin-top: auto;
        padding-top: 0.75rem;
    }

}
