/* BNW PDP buy area (2026-11-16). Loaded from layout/theme.html after bnw-card-v3.css.
   The product page uses the official Maison buy-buttons block (blocks/product/buy-buttons.html, untouched).
   1. Place it in the BNW order used by the PDP info column (flex order on .product-detail__content children):
      the old custom block had the wrapper .product-detail__buy-actions with display:contents; the official
      wrapper has no class, so it is matched by structure. Plugins that inject into the wrapper keep their slots:
      auto-coupon right after the button, Frequently-bought-together bundle after trust panel / actions.
   2. Brand styling: solid green add-to-cart, framed quantity, same 10px radius as the cards.
   3. Klarna installment line (blocks/product/installments.html) right after the buy area. */

.product-detail__info .product-detail__content > :has(> theme-product-form.product-detail__buy-buttons){display:contents !important}
.product-detail__info .product-detail__content > :has(> theme-product-form.product-detail__buy-buttons) > theme-product-form{order:-14;width:100%}
.product-detail__info .product-detail__content > .bnw-installments{order:-14}
/* Klarna app block (app "分期信息展示", block app-block-klarna-product, template key klarna_installments_app).
   Its message is drawn inside a shadow root, so the theme's empty-block check marks the wrapper .is-empty
   and hides it; show it anyway and keep it right after the buy buttons. */
.product-detail__info .product-detail__content > [id$="klarna_installments_app"]{order:-14;display:block !important;margin-top:-4px}
.product-detail__info .product-detail__content > [id$="klarna_installments_app"] klarna-placement{display:block}
.product-detail__info .product-detail__content > :has(> theme-product-form.product-detail__buy-buttons) > .auto-coupon-add-to-cart-plugin{order:-13}
.product-detail__info .product-detail__content > :has(> theme-product-form.product-detail__buy-buttons) > .sales-bundle-root{order:-10}

/* ---------- 2. buy buttons ---------- */
.product-detail__buy-buttons .product-detail__form{column-gap:10px !important;row-gap:10px !important;align-items:stretch}
.product-detail__buy-buttons .product-detail__quantity theme-input-number{
  display:flex;align-items:center;justify-content:space-between;gap:4px;
  width:auto !important;min-width:124px;
  height:52px;padding:0 6px;box-sizing:border-box;
  border:1px solid #e6dfd3;border-radius:10px;background:#fff;
}
.product-detail__buy-buttons .product-detail__quantity theme-input-number input{width:36px !important;min-width:0;text-align:center}
.product-detail__buy-buttons .product-detail__quantity theme-input-number button{background:transparent !important}
.product-detail__buy-buttons .product-detail__quantity theme-input-number button:hover{background:rgb(43 33 24 / .06) !important}
.product-detail__buy-buttons .product-detail__submit .button{
  height:52px !important;min-height:52px;padding:0 20px !important;
  border:0 !important;border-radius:10px !important;box-shadow:none !important;
  background:#35513d !important;color:#fff !important;
  font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  transition:background-color .2s ease;
}
.product-detail__buy-buttons .product-detail__submit .button::before,
.product-detail__buy-buttons .product-detail__submit .button::after{display:none !important}
@media (hover:hover){.product-detail__buy-buttons .product-detail__submit .button:not([disabled]):hover{background:#2a4030 !important}}
.product-detail__buy-buttons .product-detail__submit .button[disabled]{opacity:.55;cursor:not-allowed}
.product-detail__buy-buttons .product-detail__accelerated_buttons{width:100%}

/* ---------- 3. Klarna installments ---------- */
.bnw-installments{margin-top:-6px}
.bnw-installments:empty{display:none}
.bnw-installments__text{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0;
  font-size:14px;line-height:1.45;color:rgb(43 33 24 / .78);
}
.bnw-installments__amount{color:#2B2118;font-weight:700}
.bnw-installments__amount *{font-weight:inherit}
.bnw-installments__logo{display:inline-flex;align-items:center}
.bnw-installments__logo svg{display:block;width:auto;height:28px}
.bnw-installments__link{font-size:13px;color:inherit;text-decoration:underline;text-underline-offset:3px}
@media (max-width:959px){
  .bnw-installments__text{font-size:13px}
  .bnw-installments__logo svg{height:26px}
}
