/* Small additions on top of the mirrored stylesheets. */

.sf-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #8f001d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

[aria-label="Cart"] {
  position: relative;
}

.sf-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 10px;
  background: #1f1f1f;
  color: #fff;
  font-size: 14px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sf-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sf-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px;
  background: rgba(20, 20, 20, 0.55);
}

.sf-overlay[hidden],
.sf-menu[hidden],
.sf-empty[hidden] {
  display: none;
}

.sf-dialog {
  width: min(100%, 560px);
  max-height: 70vh;
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.sf-search-row {
  display: flex;
  gap: 8px;
}

.sf-search-row input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 15px;
}

.sf-x {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sf-results {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sf-results li a {
  display: block;
  padding: 10px 8px;
  border-radius: 8px;
  color: #1f1f1f;
  font-size: 15px;
  text-decoration: none;
}

.sf-results li a:hover {
  background: #faf5f6;
}

.sf-none {
  padding: 10px 8px;
  color: #777;
  font-size: 14px;
}

.sf-read p {
  margin: 0;
  padding-right: 36px;
  font-size: 15px;
  line-height: 1.65;
}

.sf-read .sf-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.sf-read {
  position: relative;
}

.sf-menu {
  position: absolute;
  z-index: 50;
  min-width: 210px;
  padding: 6px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.sf-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.sf-menu button:hover {
  background: #faf5f6;
}

.sf-empty {
  padding: 48px 0;
  color: #6b6b6b;
  text-align: center;
}

.sf-sum {
  align-self: center;
  font-weight: 700;
  white-space: nowrap;
}

.sf-total {
  display: inline-flex;
  align-items: center;
}
