/**
 * Frontend styles - minimal CSS for cart/checkout notices
 * Loaded only on WooCommerce pages (cart, checkout, shop, product)
 */
.flexible-minimum-order-shortcode-notice,
.flexible-minimum-order-cart-notice,
.flexible-minimum-order-checkout-warning {
    display: block !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    border-radius: 4px !important;
    border: 1px solid !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    position: relative !important;
    z-index: 9999 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-info.flexible-minimum-order-shortcode-notice,
.woocommerce-info.flexible-minimum-order-cart-notice,
.woocommerce-error.flexible-minimum-order-checkout-warning {
    background: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Hide the WooCommerce ::before icon so it never overlaps the notice text.
   The icon is hidden by default; a body class (.fmo-show-notice-icon) re-enables it
   when the admin toggles "Show WooCommerce icon" on in the Minimum Order settings. */
.woocommerce-info.flexible-minimum-order-shortcode-notice::before,
.woocommerce-info.flexible-minimum-order-cart-notice::before,
.woocommerce-error.flexible-minimum-order-checkout-warning::before {
    display: none !important;
}

/* When the icon is enabled via the settings toggle, restore it and add correct padding. */
.fmo-show-notice-icon .woocommerce-info.flexible-minimum-order-shortcode-notice::before,
.fmo-show-notice-icon .woocommerce-info.flexible-minimum-order-cart-notice::before,
.fmo-show-notice-icon .woocommerce-error.flexible-minimum-order-checkout-warning::before {
    display: inline-block !important;
}
.fmo-show-notice-icon .woocommerce-info.flexible-minimum-order-shortcode-notice,
.fmo-show-notice-icon .woocommerce-info.flexible-minimum-order-cart-notice,
.fmo-show-notice-icon .woocommerce-error.flexible-minimum-order-checkout-warning {
    padding-left: 3.5em !important;
}

body .flexible-minimum-order-checkout-warning,
body .flexible-minimum-order-cart-notice,
body .flexible-minimum-order-shortcode-notice {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
}

.woocommerce-checkout .flexible-minimum-order-checkout-warning {
    margin: 20px 0 !important;
    clear: both !important;
    float: none !important;
}

.theme-twentyseventeen .flexible-minimum-order-checkout-warning,
.theme-twentyseventeen .flexible-minimum-order-cart-notice,
.theme-twentyseventeen .flexible-minimum-order-shortcode-notice,
.theme-twentytwenty .flexible-minimum-order-checkout-warning,
.theme-twentytwenty .flexible-minimum-order-cart-notice,
.theme-twentytwenty .flexible-minimum-order-shortcode-notice,
.theme-storefront .flexible-minimum-order-checkout-warning,
.theme-storefront .flexible-minimum-order-cart-notice,
.theme-storefront .flexible-minimum-order-shortcode-notice {
    display: block !important;
}

.woocommerce-checkout .flexible-minimum-order-checkout-warning,
.woocommerce .flexible-minimum-order-checkout-warning,
form.checkout .flexible-minimum-order-checkout-warning {
    display: block !important;
    position: relative !important;
    z-index: 9999 !important;
    margin: 20px 0 !important;
    clear: both !important;
    float: none !important;
}

.flexible-minimum-order-checkout-warning[style*="position: fixed"] {
    animation: flexmior-slideDown 0.3s ease-out !important;
}

@keyframes flexmior-slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.entry-content .flexible-minimum-order-checkout-warning,
.wp-block-woocommerce-checkout .flexible-minimum-order-checkout-warning,
.wc-block-checkout .flexible-minimum-order-checkout-warning {
    display: block !important;
    margin: 20px 0 !important;
}

.wc-block-checkout__form .wc-block-components-notice-banner,
.wc-block-cart .wc-block-components-notice-banner,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner {
    display: block !important;
    margin: 20px 0 !important;
}

.wc-block-checkout__form .wc-block-components-notice-banner.is-error,
.wc-block-cart .wc-block-components-notice-banner.is-error,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-error {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
    padding: 15px !important;
    border-radius: 4px !important;
    border: 1px solid !important;
    margin: 20px 0 !important;
}

.flexible-minimum-order-checkout-warning + .flexible-minimum-order-checkout-warning,
.woocommerce-checkout .flexible-minimum-order-checkout-warning + .flexible-minimum-order-checkout-warning,
.woocommerce .flexible-minimum-order-checkout-warning + .flexible-minimum-order-checkout-warning,
form.checkout .flexible-minimum-order-checkout-warning + .flexible-minimum-order-checkout-warning {
    display: none !important;
}

/* BGN → EUR dual currency: secondary price label */
.fmo-eur-price {
    color: #646970;
    font-size: .88em;
    font-weight: normal;
    white-space: nowrap;
}
