/**
 * Product Notices + size-hint visibility (v1.8.2)
 */

/* =====================================================================
 * NOTICES
 * =================================================================== */

.jw-product-notices {
    margin: 0 0 18px;
}
.jw-product-notices:empty { display: none; }

.jw-product-notices .woocommerce-error,
.jw-product-notices .woocommerce-message,
.jw-product-notices .woocommerce-info,
.jw-product-notices ul.woocommerce-error,
.jw-product-notices ul.woocommerce-message,
.jw-product-notices ul.woocommerce-info {
    list-style: none !important;
    margin: 0 0 10px !important;
    padding: 14px 16px !important;
    border-radius: 10px !important;
    border: 0 !important;
    border-left: 3px solid !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    background-image: none !important;
}
.jw-product-notices .woocommerce-error::before,
.jw-product-notices .woocommerce-message::before,
.jw-product-notices .woocommerce-info::before {
    display: none !important;
}

.jw-product-notices .woocommerce-error,
.jw-product-notices ul.woocommerce-error {
    background: #FDECEA !important;
    border-left-color: #C0392B !important;
    color: #A5281B !important;
}
.jw-product-notices .woocommerce-message,
.jw-product-notices ul.woocommerce-message {
    background: #E9F6EC !important;
    border-left-color: #1E6A38 !important;
    color: #14522A !important;
}
.jw-product-notices .woocommerce-info,
.jw-product-notices ul.woocommerce-info {
    background: var(--jw-gold-tint, #F5EDDD) !important;
    border-left-color: var(--jw-gold, #B99244) !important;
    color: var(--jw-gold-dd, #7E6129) !important;
}

.jw-product-notices li { margin: 0 0 4px; padding: 0; list-style: none; }
.jw-product-notices li:last-child { margin-bottom: 0; }

/* The "View cart" link WooCommerce appends to success messages */
.jw-product-notices .button,
.jw-product-notices .wc-forward {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 12px !important;
    background: transparent !important;
    border: 1px solid currentColor !important;
    border-radius: 100px !important;
    font-size: 12px !important;
    font-weight: 600;
    color: inherit !important;
    text-decoration: none !important;
    float: none !important;
}

/* Draw the eye when a message appears after a reload */
.jw-product-notices.is-visible {
    animation: jwNoticeIn 420ms cubic-bezier(.16,1,.3,1);
}
@keyframes jwNoticeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* =====================================================================
 * SIZE HINT — [hidden] guard
 *
 * Same trap as the shop loader in hotfix 7.2: `[hidden]` is a UA-stylesheet
 * rule with the lowest possible specificity, so ANY class-level `display`
 * declaration silently overrides it. Without this guard the hint can be stuck
 * visible (noise) or, worse, be display:none-d by a theme rule and never show
 * when the customer actually needs it.
 * =================================================================== */

body.jw-single-product [data-jw-size-hint][hidden],
.jw-size-selector [hidden] {
    display: none !important;
}

body.jw-single-product [data-jw-size-hint]:not([hidden]) {
    display: block !important;
    margin: 10px 0 0;
    padding: 10px 14px;
    background: #FDECEA;
    border-left: 3px solid #C0392B;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #A5281B;
    animation: jwNoticeIn 320ms cubic-bezier(.16,1,.3,1);
}

/* Reserve hint under the button */
.jw-purchase__reserve-hint {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--jw-charcoal-50);
    text-align: center;
}
