.product-detail__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-detail__form .form__error-message {
  display: flex;
  gap: 4px;
  align-items: center;
  color: rgb(var(--color-tag-background));
}

.product-detail__form .form__error-message::after {
  content: attr(data-message);
}

.product-detail__form .form__buttons {
  display: grid;
  gap: 5px;
}

.product-detail__delivery-estimate {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-block-end: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.product-detail__delivery-estimate[hidden],
.product-detail__payment-button[hidden],
.product-detail__form.is-preorder .product-detail__payment-button {
  display: none;
}

.product-detail__delivery-estimate svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: currentcolor;
}

.product-detail__delivery-estimate strong {
  white-space: nowrap;
}

.product-detail__payment-button {
  display: contents;
}

.product-detail__form .form__buttons button{
  border: 0;
  margin: 0 !important;
  height: 40px;
}

.product-detail__form [data-pay-button-layout="column"], [data-pay-button-layout="buyNowRow"]{
  margin: 0 !important;
}
@media(max-width:959px){
  .product-detail__delivery-estimate {
    font-size: 12px;
  }

  .product-detail__form .form__buttons{
    grid-template-columns: repeat(1,1fr);
  }
}

/* 到货通知：与 Sold Out 同宽的次级按钮 */
.product-detail__notify {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.product-detail__notify[hidden] {
  display: none;
}

/* 不可购买时 Sold Out 与 Notify 同高。主题给购买按钮固定了 40px，
   这里只在按钮禁用时放大，普通商品页的 Add to cart 不受影响。 */
.product-detail__form .form__buttons button[name="add"]:disabled {
  height: var(--product-detail-unavailable-button-height, 53px);
}

/* 主题的 button--secondary 令牌在本店与主按钮同色，这里用描边做次级；
   选择器要压过 .v-button 自带的背景色 */
.product-detail__notify .product-detail__notify-button.v-button {
  width: 100%;
  height: var(--product-detail-unavailable-button-height, 53px);
  padding-block: 0;
  background-color: transparent;
  color: rgb(var(--color-button-background));
  border: 1px solid rgb(var(--color-button-background));
}

.product-detail__notify .product-detail__notify-button.v-button::after {
  display: none;
}

.product-detail__notify .product-detail__notify-button.v-button:hover {
  background-color: rgba(var(--color-button-background), 0.08);
}
