.shop-btn {
  appearance: none;
  -webkit-appearance: none;

  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0;

  border-radius: 10px;
  border: 1px solid #d9d9d9;

  background: #fff;
  color: rgba(0, 0, 0, 0.88);

  cursor: pointer;

  font-family: inherit;
  font-weight: 400;
  font-size: 14px;

  text-decoration: none;

  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);

  outline: none;
  margin: 0;

  white-space: nowrap;
}

.shop-btn:hover:not(.shop-btn-disabled) {
  border-color: var(--brand, #1677ff);
}

.shop-btn:active:not(.shop-btn-disabled) {
  transform: scale(0.98);
}

/* Primary */

.shop-btn-primary {
  background: var(--brand, #1677ff);
  border-color: var(--brand, #1677ff);
  color: #fff;
}

.shop-btn-primary:hover {
  opacity: 0.85;
  color: #fff;
}

.shop-btn-primary:active {
  opacity: 0.7;
}

/* Sizes */

.shop-btn-small {
  height: 24px;
  padding: 0 4px;
  font-size: 14px;
}

.shop-btn-middle {
  height: 32px;
  padding: 0 8px;
}

.shop-btn-large {
  height: 40px;
  padding: 0 12px;
  font-size: 16px;
}

.shop-btn-xlarge {
  height: 48px;
  padding: 0 18px;
  font-size: 16px;
}

.shop-btn-2xlarge {
  height: 56px;
  padding: 0 22px;
  font-size: 18px;
}

/* Icon */

.shop-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-btn:has(.shop-btn-icon) {
  gap: 8px;
}

/* Loading */

.shop-btn-loader {
  display: block;

  width: 14px;
  height: 14px;

  border-radius: 50%;

  border: 2px solid currentColor;
  border-right-color: transparent;

  animation: shop-btn-spin 0.7s linear infinite;
}

.shop-btn-loading .shop-btn-content {
  opacity: 0.7;
}

@keyframes shop-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Disabled */

.shop-btn-disabled,
.shop-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
