.bs-card {
  --bs-accent: #e1306c;
  --bs-fill: 0%;
  position: relative;
  z-index: 50;
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20, 20, 40, 0.07);
  text-align: center;
  font-family: inherit;
  color: #1c1c28;
}

.bs-card * {
  box-sizing: border-box;
  pointer-events: auto;
}

.bs-card input,
.bs-card button {
  position: relative;
  z-index: 1;
  -webkit-user-select: auto;
  user-select: auto;
}

.bs-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.bs-head-value {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.bs-unit,
.bs-price,
.bs-price-num {
  white-space: nowrap;
}

.bs-card .bs-step,
.bs-card button.bs-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #d9d9e3;
  border-radius: 50%;
  background: transparent;
  color: var(--bs-accent);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.bs-card .bs-step:hover {
  background: rgba(0, 0, 0, 0.04);
}

.bs-card .bs-step:active {
  transform: scale(0.94);
}

.bs-card .bs-step:disabled {
  opacity: 0.3;
  cursor: default;
}

.bs-qty-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--bs-accent);
  font-variant-numeric: tabular-nums;
}

.bs-unit {
  font-size: 17px;
  font-weight: 600;
  color: #55556a;
}

.bs-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 6px 0 0;
  border-radius: 999px;
  direction: ltr;
  background: linear-gradient(to right, var(--bs-accent) var(--bs-fill), #e6e6ee var(--bs-fill));
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
}

.bs-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bs-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: grab;
}

.bs-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bs-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: grab;
}

.bs-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.bs-scale {
  display: flex;
  justify-content: space-between;
  direction: ltr;
  margin-top: 8px;
  font-size: 13px;
  color: #8a8a9c;
}

.bs-price {
  margin: 16px 0 18px;
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bs-label {
  display: block;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.bs-error {
  margin-top: 6px;
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
  color: #d93025;
}

.bs-error[hidden] {
  display: none;
}

.bs-card .bs-btn,
.bs-card button.bs-btn[type="submit"] {
  display: block;
  width: 100%;
  height: 52px;
  margin: 14px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--bs-accent);
  color: var(--bs-on-accent, #fff);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.bs-card .bs-btn:hover,
.bs-card .bs-btn:focus {
  background: var(--bs-accent);
  color: var(--bs-on-accent, #fff);
  filter: brightness(1.06);
}

.bs-card .bs-btn:active {
  transform: scale(0.98);
}

.bs-card .bs-target,
.bs-card input.bs-target[type="text"] {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 46px;
  background: #fafafc;
  color: #1c1c28;
  text-align: left;
  box-shadow: none;
}

.bs-card .bs-target:focus {
  border-color: var(--bs-accent);
  background: #fff;
  outline: none;
}

.bs-card .bs-target.bs-invalid {
  border-color: #d93025;
  background: #fff;
}

@media (max-width: 480px) {
  .bs-card {
    padding: 20px 16px;
  }
  .bs-qty-num {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bs-card .bs-btn {
    transition: none;
  }
}

.bs-brand {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--bs-ico) center / contain no-repeat;
  mask: var(--bs-ico) center / contain no-repeat;
}

.bs-brand--instagram { --bs-ico: url("https://cdn.jsdelivr.net/npm/simple-icons@16/icons/instagram.svg"); }
.bs-brand--tiktok { --bs-ico: url("https://cdn.jsdelivr.net/npm/simple-icons@16/icons/tiktok.svg"); }
.bs-brand--facebook { --bs-ico: url("https://cdn.jsdelivr.net/npm/simple-icons@16/icons/facebook.svg"); }
.bs-brand--youtube { --bs-ico: url("https://cdn.jsdelivr.net/npm/simple-icons@16/icons/youtube.svg"); }
.bs-brand--whatsapp { --bs-ico: url("https://cdn.jsdelivr.net/npm/simple-icons@16/icons/whatsapp.svg"); }
.bs-brand--soundcloud { --bs-ico: url("https://cdn.jsdelivr.net/npm/simple-icons@16/icons/soundcloud.svg"); }
.bs-brand--x { --bs-ico: url("https://cdn.jsdelivr.net/npm/simple-icons@16/icons/x.svg"); }
.bs-brand--snapchat { --bs-ico: url("https://cdn.jsdelivr.net/npm/simple-icons@16/icons/snapchat.svg"); }
