/**
 * FLAVOR Substitute - Frontend Styles
 *
 * Minimal styles - product rendering uses native WooCommerce templates
 * which are styled by the active theme (Woodmart, Flatsome, etc.)
 *
 * @since 1.1.8
 */

/* ==========================================================================
   Notice Container (OOS message box)
   ========================================================================== */

.flavorsubst-notice {
    box-sizing: border-box;
    clear: both;
}

.flavorsubst-notice * {
    box-sizing: border-box;
}

.flavorsubst-notice-title {
    font-weight: 600;
    line-height: 1.4;
}

.flavorsubst-notice-text {
    line-height: 1.6;
}

/* ==========================================================================
   Suggestions Container
   Products are rendered with theme templates, only container needs styling
   ========================================================================== */

.flavorsubst-suggestions {
    margin-top: 15px;
    clear: both;
}

/* Ensure products list displays correctly when theme doesn't set display */
.flavorsubst-suggestions .products {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Remove any clearfix pseudo-elements that might interfere */
.flavorsubst-suggestions .products::before,
.flavorsubst-suggestions .products::after {
    display: none;
    content: none;
}

/* ==========================================================================
   Variation Suggestions (special case - not full product cards)
   ========================================================================== */

.flavorsubst-variation-suggestions .flavorsubst-variation-notice {
    margin-bottom: 15px;
    color: inherit;
}

.flavorsubst-variation-item .woocommerce-loop-product__title {
    font-size: 0.95em;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.flavorsubst-suggestions.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .flavorsubst-notice {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }

    .flavorsubst-suggestions {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Accessibility: High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
    .flavorsubst-notice {
        border-width: 2px !important;
    }
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .flavorsubst-suggestions .product {
        animation: none;
        transition: none;
    }
}
