/* Restore the full-width purchase controls normally supplied by Shopify's
   storefront button styling. Scope this to the Stanley product form. */
.product-form__buttons {
  display: grid;
  gap: 10px;
}

.product-form__buttons .shopify-payment-button {
  width: 100%;
}

.product-form__buttons .product-form__submit,
.product-form__buttons .shopify-payment-button__button--unbranded {
  appearance: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 50px;
  margin: 0;
  padding: 10px 18px;
  border: var(--buttons-border-width, 1px) solid;
  border-radius: var(--buttons-radius, 0);
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-transform: none;
  cursor: pointer;
}

.product-form__buttons .product-form__submit {
  background: rgb(var(--color-secondary-button));
  color: rgb(var(--color-secondary-button-text));
  border-color: rgb(var(--color-secondary-button-text));
}

.product-form__buttons .product-form__submit::before,
.product-form__buttons .product-form__submit::after {
  content: none;
}

.product-form__buttons .shopify-payment-button__button--unbranded {
  background: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  border-color: rgb(var(--color-button));
}

.product-form__buttons .product-form__submit:hover:not(:disabled),
.product-form__buttons .shopify-payment-button__button--unbranded:hover:not(:disabled) {
  box-shadow: 0 0 0 1px rgb(var(--color-foreground));
}

.product-form__buttons .product-form__submit:focus-visible,
.product-form__buttons .shopify-payment-button__button--unbranded:focus-visible {
  outline: 2px solid rgb(var(--color-foreground));
  outline-offset: 3px;
}

.product-form__buttons .product-form__submit:disabled,
.product-form__buttons .shopify-payment-button__button--unbranded:disabled {
  cursor: not-allowed;
  opacity: .5;
}
