html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

::selection {
  background: #c5a059;
  color: #fff;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

.text-balance {
  text-wrap: balance;
}

/* Wishlist heart fill */
.wish[aria-pressed='true'] svg {
  fill: currentColor;
}

/* Hide number input spinners */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type='number'] {
  -moz-appearance: textfield;
}

/* Toasts */
.toast {
  pointer-events: auto;
  animation: fadeUp 0.25s ease both;
}

/* Countdown digits */
.tnum {
  font-variant-numeric: tabular-nums;
}

/* Loading skeleton shimmer */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
.skeleton {
  background: linear-gradient(90deg, #f0eadd 25%, #f7f2e9 37%, #f0eadd 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* Live chat */
#chat-panel.open {
  display: flex;
}
.chat-bubble {
  max-width: 82%;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: #16202f;
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}
.chat-bubble.theirs {
  align-self: flex-start;
  background: #faf7f2;
  color: #16202f;
  border: 1px solid #eae3d7;
  border-bottom-left-radius: 0.3rem;
}
.chat-meta {
  margin-top: 0.2rem;
  font-size: 0.65rem;
  color: #7c8798;
}
.chat-row {
  display: flex;
  flex-direction: column;
}
.chat-row.mine {
  align-items: flex-end;
}
