/* Accessories Shop HF62 — visual polish only; no changes to payment, address or carrier logic. */
/* Scope every rule to the One Page Checkout surface. */
body:is(#order,#checkout) .as-opc-shell {
  --as-hf62-link: #97536a;
  --as-hf62-link-hover: #71374e;
  --as-hf62-line: #eadce0;
  --as-hf62-ink: #392d34;
}

/* Payment is the continuation of the same card as contact/delivery, not a new nested panel. */
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section {
  margin:0!important;
  padding:15px clamp(19px,3vw,33px) 9px!important;
  background:#fff!important;
  border-left:1px solid var(--as-hf62-line)!important;
  border-right:1px solid var(--as-hf62-line)!important;
  border-top:1px solid var(--as-hf62-line)!important;
  border-bottom:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  min-height:0!important;
}
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section > :first-child,
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section .one-page-checkout__title {
  margin-top:0!important;
}
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section .one-page-checkout__title {
  margin-bottom:12px!important;
}
body:is(#order,#checkout) .as-opc-shell :is(
  #opc-payment-methods,
  .js-opc-payment-section .payment-options,
  .js-opc-payment-section .payment-options__list,
  .js-opc-payment-section .payment-methods,
  .js-opc-payment-section .opc-payment-methods
) {
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  min-height:0!important;
}
/* Preserve each actual payment method as the only selectable card. */
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section :is(.payment-option,.opc-payment-method) {
  border:1px solid var(--as-hf62-line)!important;
  border-radius:13px!important;
  padding:14px 18px!important;
  background:#fff!important;
  box-shadow:none!important;
  margin:0 0 9px!important;
  min-height:0!important;
}
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section :is(.payment-option,.opc-payment-method):has(input:checked) {
  border-color:#b75e79!important;
  background:#fffafb!important;
  box-shadow:0 0 0 1px rgba(183,94,121,.12)!important;
}
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section :is(.payment-option__additional-information,.payment-option__content,.payment-option__description) {
  padding-top:7px!important;
  margin-top:0!important;
  margin-bottom:0!important;
  line-height:1.45!important;
}
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section :is(.payment-option__additional-information,.payment-option__content,.payment-option__description) > :last-child {
  margin-bottom:0!important;
}

/* Terms and the actual place-order button stay in the SAME continuous surface. */
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer {
  margin:0!important;
  padding:4px clamp(19px,3vw,33px) 18px!important;
  border-left:1px solid var(--as-hf62-line)!important;
  border-right:1px solid var(--as-hf62-line)!important;
  border-bottom:1px solid var(--as-hf62-line)!important;
  border-top:0!important;
  border-radius:0 0 20px 20px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body:is(#order,#checkout) .as-opc-shell :is(.js-conditions-to-approve,.conditions-to-approve) {
  padding:11px 13px!important;
  margin:0 0 11px!important;
  border:1px solid var(--as-hf62-line)!important;
  border-radius:12px!important;
  background:#fffdfd!important;
  min-height:0!important;
}
body:is(#order,#checkout) .as-opc-shell :is(.js-conditions-to-approve,.conditions-to-approve) :is(.form-check,.custom-checkbox,label,p) {
  margin-top:0!important;
  margin-bottom:0!important;
  line-height:1.5!important;
}
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer > :is(.form-check,.form-group,.mb-3) {
  margin-bottom:11px!important;
}
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer #payment-confirmation,
body:is(#order,#checkout) .as-opc-shell #payment-confirmation {
  margin:10px 0 0!important;
  padding:0!important;
}
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer #opc-pay-button,
body:is(#order,#checkout) .as-opc-shell #opc-pay-button {
  width:100%;
  min-height:52px!important;
  margin:0!important;
  border-radius:13px!important;
}
/* Avoid an accidental large vertical spacer from generic checkout theme rules. */
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section + .one-page-checkout__footer {
  margin-top:0!important;
}

/* Brand-color links, including product titles and GTC, without changing their destinations. */
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper :is(
  a.cart-summary-product__link,
  .cart-summary-product__content-left > a,
  .cart-summary__products-list a:not(:has(img))
),
body:is(#order,#checkout) .as-opc-shell :is(
  .js-conditions-to-approve,
  .conditions-to-approve,
  .one-page-checkout__footer
) a {
  color:var(--as-hf62-link)!important;
  text-decoration-color:rgba(151,83,106,.28)!important;
  text-underline-offset:3px;
  transition:color .15s ease;
}
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper :is(
  a.cart-summary-product__link,
  .cart-summary-product__content-left > a,
  .cart-summary__products-list a:not(:has(img))
):hover,
body:is(#order,#checkout) .as-opc-shell :is(
  .js-conditions-to-approve,
  .conditions-to-approve,
  .one-page-checkout__footer
) a:hover {
  color:var(--as-hf62-link-hover)!important;
  text-decoration-color:currentColor!important;
}
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__link {
  font-weight:650!important;
  line-height:1.45!important;
}

@media (max-width:575.98px) {
  body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section {
    padding:15px 16px 7px!important;
  }
  body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer {
    padding:4px 16px 17px!important;
    border-radius:0 0 15px 15px!important;
  }
  body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section :is(.payment-option,.opc-payment-method) {
    padding:13px 14px!important;
  }
}
