.bescot-wm-switch {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  line-height: 1;
}

.bescot-wm-switch__label {
  color: currentColor;
  font-size: 13px;
  font-weight: 600;
}

.bescot-wm-switch__input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.bescot-wm-switch__track {
  background: #d9d6d1;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: inline-block;
  height: 24px;
  position: relative;
  transition: background-color 160ms ease, box-shadow 160ms ease;
  width: 44px;
}

.bescot-wm-switch__track::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 160ms ease;
  width: 18px;
}

.bescot-wm-switch__input:checked + .bescot-wm-switch__track {
  background: #252525;
}

.bescot-wm-switch__input:checked + .bescot-wm-switch__track::after {
  transform: translateX(20px);
}

.bescot-wm-switch__input:focus-visible + .bescot-wm-switch__track {
  box-shadow: 0 0 0 3px rgba(37, 37, 37, 0.22);
}

.bescot-wm-sticky-cart {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(37, 37, 37, 0.14);
  border-radius: 8px;
  bottom: 92px;
  box-shadow: 0 14px 36px rgba(37, 37, 37, 0.18);
  color: #252525;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  max-width: min(380px, calc(100vw - 40px));
  min-height: 68px;
  opacity: 0;
  padding: 12px 12px 12px 16px;
  position: fixed;
  right: 24px;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
  width: 360px;
  z-index: 9998;
}

.bescot-wm-sticky-cart.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.bescot-wm-sticky-cart__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bescot-wm-sticky-cart__count {
  align-items: center;
  background: #252525;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.bescot-wm-sticky-cart__label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.bescot-wm-sticky-cart__subtotal {
  color: #6f6a64;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.bescot-wm-sticky-cart__button {
  align-items: center;
  background: #252525;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.bescot-wm-sticky-cart__button:hover,
.bescot-wm-sticky-cart__button:focus {
  background: #7a5a42;
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .bescot-wm-sticky-cart {
    border-radius: 8px 8px 0 0;
    bottom: 0;
    left: 0;
    max-width: none;
    min-height: 64px;
    padding: 10px 14px;
    right: 0;
    width: auto;
  }

  .bescot-wm-sticky-cart__button {
    min-height: 40px;
    padding-inline: 14px;
  }
}
