/* DL recent-purchase toasts — bottom-right, stacked above the WhatsApp button.
   bottom is set by the script from the real position of the WhatsApp button / sticky bar;
   the values here are the fallback. */
.dl-rp {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 9989; /* just under the WhatsApp button (9990) */
  width: 320px;
  max-width: calc(100vw - 28px);
  display: flex;
  align-items: stretch;
  background: #fff;
  color: var(--ink, #14212f);
  border: 1px solid var(--line, #e4e8ee);
  box-shadow: 0 12px 30px rgba(20, 33, 47, .16), 0 2px 8px rgba(20, 33, 47, .08);
  font: 400 13px/1.35 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.dl-rp,
body.dl-v2 .dl-rp:not(#dl-sq):not(#dl-sq) {
  border-radius: var(--sq-md, 16px) !important;
  corner-shape: squircle;
}
.dl-rp[hidden] { display: none !important; }
.dl-rp.is-on { opacity: 1; transform: none; pointer-events: auto; }

.dl-rp__link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px 10px 10px;
  color: inherit !important;
  text-decoration: none !important;
}
.dl-rp__img {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f5f7fa;
}
.dl-rp__img,
body.dl-v2 .dl-rp__img:not(#dl-sq):not(#dl-sq) {
  border-radius: var(--sq-sm, 10px) !important;
  corner-shape: squircle;
}
.dl-rp__txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dl-rp__who { color: #5b6b7d; font-size: 12px; }
.dl-rp__name {
  color: var(--navy, #1f3044);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-rp__link:hover .dl-rp__name,
.dl-rp__link:focus-visible .dl-rp__name { text-decoration: underline; }
.dl-rp__when { color: #6b7a8b; font-size: 11.5px; }
.dl-rp__when::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  background: var(--green, #37c12d);
  vertical-align: middle;
}
.dl-rp__when::before,
body.dl-v2 .dl-rp__when:not(#dl-sq):not(#dl-sq)::before { border-radius: 50% !important; }

.dl-rp__x {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 32px;
  height: 32px;
  margin: 4px 4px 0 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  color: #7c8a99 !important;
  cursor: pointer;
  box-shadow: none !important;
  min-height: 0 !important;
}
.dl-rp__x:hover, .dl-rp__x:focus-visible { color: var(--ink, #14212f) !important; background: #f1f4f7 !important; }
.dl-rp__x,
body.dl-v2 .dl-rp__x:not(#dl-sq):not(#dl-sq) { border-radius: 50% !important; }

/* never over an open menu / drawer */
body.off-canvas-active .dl-rp, html.dl-cro-lock .dl-rp, .dl-cro-lock .dl-rp, .dl-f-lock .dl-rp, body.dl-f-open .dl-rp { display: none !important; }

@media (max-width: 767px) {
  .dl-rp { right: 14px; left: 14px; width: auto; max-width: none; bottom: 82px; }
  .dl-rp__img { flex-basis: 44px; width: 44px; height: 44px; }
  .dl-rp__link { padding: 8px 4px 8px 8px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-rp { transition: none; transform: none; }
}
@media print { .dl-rp { display: none !important; } }
