/* ClassWallet state on the cart and checkout (#404, inc/pages/cw-banner.php), plus the plugin's session monitor banner
   and toast, whose old styles went off with the legacy notices. Reads tokens.css. */

.cwb { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 0; padding: 14px 18px 14px 16px; background: var(--mist); border-left: 4px solid var(--roof); border-radius: 0 8px 8px 0; color: var(--ink); }
.cwb-i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--roof); }
.cwb-i .ic { width: 22px; height: 22px; }
.cwb-t { min-width: 0; display: grid; gap: 4px; }
.cwb h2 { font: 400 1.2rem/1.25 var(--serif); color: var(--navy); margin: 0; }
.cwb p { margin: 0; font-size: .95rem; line-height: 1.5; }
.cwb .cwb-ship { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.cwb .cwb-ship b { color: var(--navy); }
.ct .cwb { margin-bottom: 10px; }
.co .cwb { margin: 18px 0 4px; max-width: 900px; }

/* the plugin's session monitor (js/site/classwallet-session-monitor.js) */
.hwb-cw-session-expired-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 99999; background: var(--brick); color: var(--white); text-align: center; padding: 12px 52px 12px 16px; font-size: .95rem; font-weight: 600; line-height: 1.4; box-shadow: 0 2px 10px rgba(20, 30, 50, .25); }
.hwb-cw-session-expired-banner strong { font-weight: 700; }
.hwb-cw-session-expired-banner .hwb-cw-dismiss { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px; background: transparent; color: var(--white); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hwb-cw-session-expired-banner .hwb-cw-dismiss:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.hwb-cw-session-recovered-toast { position: fixed; top: 20px; right: 20px; z-index: 99999; max-width: calc(100vw - 40px); background: var(--garden); color: var(--white); padding: 12px 20px; border-radius: 6px; font-size: .95rem; font-weight: 600; box-shadow: 0 6px 18px -6px rgba(20, 30, 50, .45); }

@media (max-width: 560px) {
	.cwb { padding: 12px 14px; gap: 12px; }
	.cwb-i { width: 34px; height: 34px; }
	.co .cwb { margin-inline: 0; }
}
