#ochoa-minimum-alert {
    position: fixed;
    top: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(var(--ochoa-qty-alert-max-width, 760px), calc(100% - 32px));
    padding: var(--ochoa-qty-alert-padding-y, 14px) var(--ochoa-qty-alert-padding-x, 18px);
    border-radius: var(--ochoa-qty-alert-radius, 12px);
    background: var(--ochoa-qty-alert-bg, #dc0000);
    color: var(--ochoa-qty-alert-text, #fff);
    font-size: var(--ochoa-qty-alert-font-size, 15px);
    font-weight: var(--ochoa-qty-alert-font-weight, 800);
    line-height: 1.35;
    box-shadow: var(--ochoa-qty-alert-shadow, 0 18px 42px rgba(220, 0, 0, .34));
    text-align: center;
}
#ochoa-minimum-alert.ochoa-minimum-alert-visible {
    display: flex;
}
#ochoa-minimum-alert::before,
.ochoa-minimum-inline-alert::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 999px;
    background: var(--ochoa-qty-alert-icon-bg, rgba(255,255,255,.2));
    color: var(--ochoa-qty-alert-icon-text, #fff);
    font-weight: 900;
    line-height: 1;
}
.admin-bar #ochoa-minimum-alert { top: 46px; }
.ochoa-minimum-inline-alert {
    display: none;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 16px 0 14px;
    padding: var(--ochoa-qty-alert-padding-y, 16px) var(--ochoa-qty-alert-padding-x, 18px);
    border-radius: var(--ochoa-qty-alert-radius, 10px);
    background: var(--ochoa-qty-alert-bg, #dc0000);
    color: var(--ochoa-qty-alert-text, #fff);
    font-size: var(--ochoa-qty-alert-font-size, 16px);
    font-weight: var(--ochoa-qty-alert-font-weight, 800);
    line-height: 1.35;
    box-shadow: var(--ochoa-qty-alert-shadow, 0 14px 36px rgba(220, 0, 0, .22));
}
.ochoa-minimum-inline-alert.ochoa-minimum-alert-visible {
    display: flex;
}
.ochoa-minimum-inline-alert span {
    color: inherit;
}
input.qty.ochoa-qty-invalid,
.quantity input.qty.ochoa-qty-invalid {
    border-color: var(--ochoa-qty-alert-bg, #dc0000) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ochoa-qty-alert-bg, #dc0000) 18%, transparent) !important;
}
@media (max-width: 782px) {
    .admin-bar #ochoa-minimum-alert { top: 58px; }
    #ochoa-minimum-alert { font-size: 13px; padding: 12px 14px; }
    .ochoa-minimum-inline-alert { font-size: 14px; padding: 14px 15px; }
}

/* v1.2.5 - Avisos OCHOA más visibles en plantillas Elementor/WooCommerce */
body.single-product .woocommerce-error.ochoa-minimum-server-source,
body.single-product .woocommerce-notices-wrapper .woocommerce-error.ochoa-minimum-server-source,
body.single-product .woocommerce-NoticeGroup .woocommerce-error.ochoa-minimum-server-source {
    box-sizing: border-box !important;
    width: min(var(--ochoa-qty-alert-max-width, 940px), calc(100vw - 32px)) !important;
    margin: 18px auto 24px !important;
    padding: var(--ochoa-qty-alert-padding-y, 18px) var(--ochoa-qty-alert-padding-x, 22px) var(--ochoa-qty-alert-padding-y, 18px) calc(var(--ochoa-qty-alert-padding-x, 22px) + 36px) !important;
    border: 0 !important;
    border-left: 7px solid color-mix(in srgb, var(--ochoa-qty-alert-bg, #e00000) 70%, #000) !important;
    border-radius: var(--ochoa-qty-alert-radius, 14px) !important;
    background: var(--ochoa-qty-alert-bg, #e00000) !important;
    color: var(--ochoa-qty-alert-text, #fff) !important;
    font-size: var(--ochoa-qty-alert-font-size, 17px) !important;
    font-weight: var(--ochoa-qty-alert-font-weight, 850) !important;
    line-height: 1.35 !important;
    box-shadow: var(--ochoa-qty-alert-shadow, 0 18px 44px rgba(224, 0, 0, .28)) !important;
    list-style: none !important;
}
body.single-product .woocommerce-error.ochoa-minimum-server-source::before,
body.single-product .woocommerce-notices-wrapper .woocommerce-error.ochoa-minimum-server-source::before,
body.single-product .woocommerce-NoticeGroup .woocommerce-error.ochoa-minimum-server-source::before {
    content: "!" !important;
    top: 50% !important;
    left: 20px !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: var(--ochoa-qty-alert-icon-bg, rgba(255,255,255,.22)) !important;
    color: var(--ochoa-qty-alert-icon-text, #fff) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}
body.single-product .woocommerce-error.ochoa-minimum-server-source li,
body.single-product .woocommerce-notices-wrapper .woocommerce-error.ochoa-minimum-server-source li,
body.single-product .woocommerce-NoticeGroup .woocommerce-error.ochoa-minimum-server-source li {
    color: var(--ochoa-qty-alert-text, #fff) !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.ochoa-minimum-server-alert {
    display: none;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0 16px;
    padding: var(--ochoa-qty-alert-padding-y, 18px) var(--ochoa-qty-alert-padding-x, 20px);
    border-radius: var(--ochoa-qty-alert-radius, 12px);
    background: var(--ochoa-qty-alert-bg, #e00000);
    color: var(--ochoa-qty-alert-text, #fff);
    font-size: var(--ochoa-qty-alert-font-size, 17px);
    font-weight: var(--ochoa-qty-alert-font-weight, 850);
    line-height: 1.35;
    box-shadow: var(--ochoa-qty-alert-shadow, 0 16px 40px rgba(224, 0, 0, .24));
}
.ochoa-minimum-server-alert.ochoa-minimum-alert-visible {
    display: flex;
}
.ochoa-minimum-server-alert::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 999px;
    background: var(--ochoa-qty-alert-icon-bg, rgba(255,255,255,.22));
    color: var(--ochoa-qty-alert-icon-text, #fff);
    font-weight: 900;
    line-height: 1;
}
.ochoa-minimum-server-alert span {
    color: inherit;
}
@media (max-width: 782px) {
    body.single-product .woocommerce-error.ochoa-minimum-server-source,
    body.single-product .woocommerce-notices-wrapper .woocommerce-error.ochoa-minimum-server-source,
    body.single-product .woocommerce-NoticeGroup .woocommerce-error.ochoa-minimum-server-source,
    .ochoa-minimum-server-alert {
        font-size: 14px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
}
