/* ═══════════════════════════════════════════════════════════════
   JRR — WooCommerce Notices  v1.7
   White card + left-accent bar. No green-outline-box look.
   ═══════════════════════════════════════════════════════════════ */

/* ── Nuclear reset: kill ALL theme/WooCommerce border defaults ── */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notice {
    font-family: 'Inter Tight', system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;

    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;

    /* White card — no colored background */
    background: #ffffff !important;
    color: #374151 !important;

    /* Reset ALL borders first, then add only the left accent */
    border: none !important;
    border-left: 4px solid transparent !important;
    border-radius: 12px !important;
    outline: none !important;

    padding: 14px 20px !important;
    margin: 12px auto !important;
    max-width: 1160px !important;
    width: calc(100% - 40px) !important;

    /* Floating card shadow */
    box-shadow: 0 4px 16px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.05) !important;

    list-style: none !important;
}

/* ── Success ─────────────────────────────────────────────────── */
.woocommerce-message {
    border-left-color: #22C55E !important;
}

/* ── Error ───────────────────────────────────────────────────── */
.woocommerce-error {
    border-left-color: #EF4444 !important;
    color: #374151 !important;
}
.woocommerce-error li { list-style: none !important; margin: 0 !important; padding: 0 !important; }

/* ── Info / warning ──────────────────────────────────────────── */
.woocommerce-info,
.woocommerce-notice {
    border-left-color: #F59E0B !important;
}

/* ── Buttons inside notices ──────────────────────────────────── */
.woocommerce-message .button,
.woocommerce-message a.button,
.woocommerce-message .wc-forward,
.woocommerce-error   .button,
.woocommerce-error   a.button,
.woocommerce-info    .button,
.woocommerce-info    a.button,
.woocommerce-notice  .button,
.woocommerce-notice  a.button {
    font-family: 'Inter Tight', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    height: auto !important;
    transition: filter .15s, transform .1s !important;
}

/* Gold button for success + info */
.woocommerce-message .button,
.woocommerce-message a.button,
.woocommerce-message .wc-forward,
.woocommerce-info .button,
.woocommerce-info a.button,
.woocommerce-notice .button,
.woocommerce-notice a.button {
    background: linear-gradient(135deg, #EA580C, #F59E0B, #FBBF24) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(245,158,11,.35) !important;
}
.woocommerce-message .button:hover,
.woocommerce-message a.button:hover,
.woocommerce-message .wc-forward:hover,
.woocommerce-info .button:hover,
.woocommerce-notice .button:hover {
    filter: brightness(1.07) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

/* Red button for errors */
.woocommerce-error .button,
.woocommerce-error a.button {
    background: #EF4444 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(239,68,68,.3) !important;
}
.woocommerce-error .button:hover,
.woocommerce-error a.button:hover { filter: brightness(1.1) !important; }

/* ── Strip any ::before / ::after icons the theme may add ────── */
.woocommerce-message::before,
.woocommerce-message::after,
.woocommerce-error::before,
.woocommerce-error::after,
.woocommerce-info::before,
.woocommerce-info::after,
.woocommerce-notice::before,
.woocommerce-notice::after {
    display: none !important;
    content: none !important;
}

/* ── WooCommerce store-notice bar ────────────────────────────── */
.woocommerce-store-notice,
p.demo_store {
    font-family: 'Inter Tight', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: linear-gradient(90deg, #EA580C, #F59E0B) !important;
    color: #fff !important;
    text-align: center !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}
.woocommerce-store-notice a,
p.demo_store a { color: #fff !important; font-weight: 600 !important; text-decoration: underline !important; }

/* ── Block cart/checkout notices ─────────────────────────────── */
.wc-block-components-notice-banner {
    font-family: 'Inter Tight', system-ui, sans-serif !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .woocommerce-message,
    .woocommerce-error,
    .woocommerce-info,
    .woocommerce-notice {
        width: calc(100% - 24px) !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    .woocommerce-message .button,
    .woocommerce-message .wc-forward,
    .woocommerce-error .button,
    .woocommerce-info .button,
    .woocommerce-notice .button { margin-left: 0 !important; }
}
