/* Storefront notices (src/components/Notice.astro, public/js/notice.js).
   WooCommerce's notice styles as a toast, matching ss-skin's restyle on WordPress (wp-plugin/ss-skin, "notices"):
   white, 1px line, 2px left accent, circle icon, quiet underlined action, dismiss X.
   Success black, error #b3261e, info grey. Sits under the header while it shows, above drawers and popups. */
.ssn{position:fixed;z-index:175;left:50%;top:max(calc(var(--ssn-top,78px) + 12px),calc(env(safe-area-inset-top) + 12px));
  width:min(480px,calc(100vw - 32px));transform:translateX(-50%);pointer-events:none}
.ssn-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ssn-i{pointer-events:auto;position:relative;display:flex;flex-wrap:wrap;align-items:center;column-gap:16px;row-gap:0;box-sizing:border-box;
  margin:0;padding:12px 48px 12px 46px;min-height:50px;background:#fff;color:#111;
  border:1px solid #e6e2dc;border-left:2px solid #111;border-radius:0;
  font:400 15px/1.45 var(--sans,Jost,Arial,Helvetica,sans-serif);letter-spacing:0;text-transform:none;text-align:left;
  box-shadow:0 14px 34px -16px rgba(0,0,0,.32);animation:ssn-in .35s cubic-bezier(.2,.7,.2,1) both}
/* icons: the same circle check / ! / i as ss-skin */
.ssn-i::before{content:"";position:absolute;left:16px;top:15px;width:18px;height:18px;background:#111;
  -webkit-mask:var(--ssn-ico) center/contain no-repeat;mask:var(--ssn-ico) center/contain no-repeat;
  --ssn-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.7 2.7L16 9.8'/%3E%3C/svg%3E")}
.ssn-i.error{border-left-color:#b3261e}
.ssn-i.error::before{background:#b3261e;--ssn-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.2v.3'/%3E%3C/svg%3E")}
.ssn-i.info{border-left-color:#7a7570}
.ssn-i.info::before{background:#7a7570;--ssn-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.8v.3'/%3E%3C/svg%3E")}
.ssn-t{flex:1 1 200px;min-width:0;margin:0;overflow-wrap:anywhere}
/* action ("View cart", "Undo?", "View wishlist"): a quiet underlined link, 44px tall to tap */
.ssn .ssn-a{flex:none;display:inline-flex;align-items:center;min-height:44px;margin:-10px 0;padding:0;border:0;background:none;color:#111;cursor:pointer;
  font:400 11px/1.6 var(--sans,Jost,Arial,Helvetica,sans-serif);letter-spacing:.09em;text-transform:uppercase;
  text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;white-space:nowrap}
.ssn-x{position:absolute;top:3px;right:2px;width:44px;height:44px;display:grid;place-items:center;border:0;padding:0;background:none;border-radius:50%;color:#7a7570;cursor:pointer}
.ssn-x svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.4}
.ssn :focus-visible{outline:1.5px solid #111;outline-offset:2px}
@media(hover:hover){.ssn-x:hover{color:#111}.ssn .ssn-a:hover{opacity:.6}}
.ssn-i.out{animation:ssn-out .2s ease forwards;pointer-events:none}
@keyframes ssn-in{from{opacity:0;transform:translateY(-8px)}}
@keyframes ssn-out{to{opacity:0;transform:translateY(-6px)}}
.ssn-vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){
  .ssn-i{padding:11px 44px 11px 42px;font-size:14px}
  .ssn-i::before{left:14px;top:14px}
}
@media(prefers-reduced-motion:reduce){.ssn-i{animation:ssn-fade .15s linear both}.ssn-i.out{animation:ssn-fade-out .15s linear forwards}}
@keyframes ssn-fade{from{opacity:0}}
@keyframes ssn-fade-out{to{opacity:0}}
@media print{.ssn{display:none}}
