/* UX fixes from the 2026-11-27 audit. Plain CSS loaded after the Vite build (no rebuild needed). */

/* Cart (phones): `basis-64` is used in cart.blade.php but missing from the built CSS,
   so the partner/discount text collapsed to a ~55px column. */
.basis-64 { flex-basis: 16rem; }

/* Checkout (phones/tablets): show the order summary and total before the form, not after the submit button. */
@media (max-width: 1023.98px) {
    div:has(> form[action$="/checkout/"]) > aside { order: -1; }
}

/* Touch targets >= 44px (project spec) for footer links and the "what usually helps" links on the home page. */
@media (max-width: 1023.98px), (pointer: coarse) {
    footer li > a { min-height: 44px; }
    footer li > a.inline-block { display: inline-flex; align-items: center; }
    a.pl-14.text-leaf-700 { display: flex; align-items: center; min-height: 44px; }
}

/* "Added to cart" toast (public/js/wl-cart-toast.js). */
.wl-toast {
    position: fixed; z-index: 60; top: 12px; left: 50%; transform: translate(-50%, -8px);
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    width: max-content; max-width: calc(100% - 24px); padding: 12px 12px 12px 18px;
    border-radius: 14px; background: #0b3b60; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25);
    font-size: 1rem; line-height: 1.35; opacity: 0; transition: opacity .2s, transform .2s;
}
.wl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.wl-toast[hidden] { display: none; }
.wl-toast__t { font-weight: 600; }
.wl-toast__go {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
    background: #109e59; color: #fff !important; font-weight: 700; text-decoration: none !important;
}
.wl-toast__go:hover { background: #0c8a4c; }
.wl-toast__x {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.wl-toast__x:hover { background: rgba(255,255,255,.12); }
@media (prefers-reduced-motion: reduce) { .wl-toast { transition: none; } }
