/* Shared cart feedback: toasts + button loading */
.lp-toast-stack{
  position:fixed;
  left:20px;
  bottom:20px;
  z-index:1200;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:min(360px, calc(100vw - 40px));
  pointer-events:none;
}

.lp-toast{
  pointer-events:auto;
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid #e8e5e1;
  background:#fff;
  box-shadow:0 12px 32px rgba(7,7,7,.12);
  color:#171717;
  font-size:14px;
  line-height:1.45;
  font-weight:450;
  animation:lp-toast-in .22s ease;
}

.lp-toast.is-leaving{
  animation:lp-toast-out .18s ease forwards;
}

.lp-toast__icon{
  width:22px;
  height:22px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  margin-top:1px;
}

.lp-toast--success{
  border-color:#cfe9d3;
  background:#f4fbf5;
}

.lp-toast--success .lp-toast__icon{
  background:#e9f7e8;
  color:#2c843f;
}

.lp-toast--error,
.lp-toast--warning{
  border-color:#ffd8d3;
  background:#fff7f6;
}

.lp-toast--error .lp-toast__icon,
.lp-toast--warning .lp-toast__icon{
  background:#fff1ef;
  color:#ff665c;
}

.lp-toast__body{
  min-width:0;
  flex:1;
}

.lp-toast__title{
  display:block;
  font-weight:560;
  margin-bottom:2px;
}

.lp-toast__close{
  border:0;
  background:transparent;
  color:#8f8f8f;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  padding:0 2px;
}

.lp-toast__close:hover{color:#070707}

@keyframes lp-toast-in{
  from{opacity:0; transform:translateY(8px)}
  to{opacity:1; transform:translateY(0)}
}

@keyframes lp-toast-out{
  from{opacity:1; transform:translateY(0)}
  to{opacity:0; transform:translateY(8px)}
}

.lp-spinner{
  width:14px;
  height:14px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:999px;
  display:inline-block;
  animation:lp-spin .55s linear infinite;
  vertical-align:middle;
}

.lp-spinner--dark{
  border-color:rgba(7,7,7,.18);
  border-top-color:#171717;
}

@keyframes lp-spin{
  to{transform:rotate(360deg)}
}

.tf-btn.is-loading,
.btn-add-to-cart.is-loading,
.js-add-to-cart.is-loading{
  opacity:.85;
  pointer-events:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

@media (max-width:560px){
  .lp-toast-stack{
    left:12px;
    right:12px;
    bottom:12px;
    width:auto;
  }
}
