.recent-sale {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1030;
  width: 360px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  padding: 19px 16px 16px;
  border: 1px solid #e1e7e4;
  border-radius: 18px;
  background: #fff;
  color: #243a30;
  box-shadow: 0 12px 38px rgba(15, 53, 34, .14);
  font-family: "Be Vietnam Pro", sans-serif;
}
.recent-sale[hidden] { display: none !important; }
.recent-sale.is-visible { animation: recentSaleEnter .28s ease-out both; }
@keyframes recentSaleEnter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.recent-sale-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #0eb578; transform-origin: left; }
.recent-sale.is-visible .recent-sale-progress { animation: recentSaleProgress 8s linear forwards; }
.recent-sale.is-paused .recent-sale-progress { animation-play-state: paused; }
@keyframes recentSaleProgress { to { transform: scaleX(0); } }
.recent-sale .recent-sale-close {
  position: absolute; top: 2px; right: 2px; width: 40px; height: 40px;
  border: 0; border-radius: 12px; background: transparent; color: #77867f;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.recent-sale .recent-sale-close:hover { color: #174f37; background: #f1f8f4; }
.recent-sale-label { display: flex; align-items: center; gap: 8px; padding-right: 25px; margin-bottom: 12px; }
.recent-sale-badge { display: inline-block; border-radius: 999px; padding: 4px 9px; background: #0caf73; color: #fff; font-size: 10px; line-height: 1.5; font-weight: 800; }
.recent-sale-caption { color: #6a7f74; font-size: 9px; letter-spacing: .03em; }
.recent-sale-customer { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.recent-sale-avatar { flex: 0 0 40px; display: grid; place-items: center; height: 40px; border: 1px solid #c9efdc; border-radius: 50%; background: #eafaf2; color: #15966a; }
.recent-sale-avatar svg { width: 24px; height: 24px; }
.recent-sale-customer strong { color: #22372b; font-size: 12px; }
.recent-sale .recent-sale-action { margin: 2px 0 0; color: #718178; font-size: 11px; line-height: 1.5; }
body .recent-sale .recent-sale-product { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #d0f2e2; border-radius: 12px; background: #f0fcf6; color: #253e30; text-decoration: none; }
.recent-sale-image { flex: 0 0 58px; width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.recent-sale-product-copy { min-width: 0; flex: 1; }
.recent-sale-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #24382d; font-size: 12px; line-height: 1.5; font-weight: 600; }
.recent-sale-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; margin-top: 5px; }
.recent-sale-price { color: #078949; font-size: 12px; font-weight: 800; }
.recent-sale-time { color: #7a8b80; font-size: 10px; }
.recent-sale :is(button, a):focus-visible { outline: 3px solid #15865c !important; outline-offset: -3px !important; }
@media (max-width: 991px) {
  .recent-sale { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) {
  .recent-sale { left: 12px; width: 330px; max-width: calc(100vw - 92px); padding: 16px 12px 12px; border-radius: 16px; }
  .recent-sale-label { gap: 5px; margin-bottom: 9px; }
  .recent-sale-caption { font-size: 8px; }
  .recent-sale-customer { gap: 8px; margin-bottom: 10px; }
  .recent-sale-customer strong { font-size: 11px; }
  .recent-sale .recent-sale-product { gap: 8px; padding: 8px; }
  .recent-sale-image { flex-basis: 46px; width: 46px; height: 46px; }
  .recent-sale-name { font-size: 11px; }
  .recent-sale .recent-sale-action { font-size: 10px; }
  .recent-sale[data-preview="1"] .recent-sale-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .recent-sale.is-visible { animation: none; }
  .recent-sale.is-visible .recent-sale-progress { animation: none; }
}
