/**
 * YHN 3.9.55.31 — Product Purchase Panel Refinement
 * Visual-only refinement for the right-hand purchase summary on single products.
 * UX lock: no sidebar/gallery ratio, DOM order, form behavior, widths, grid columns or visibility changes.
 */

/* Keep the summary as the main purchase surface, but make its inner hierarchy calmer. */
body.yhn-product-phase1d .summary.entry-summary,
body.yhn-product-phase1d .product-info .entry-summary{
  border-color:#e9e3e6!important;
  box-shadow:0 4px 14px rgba(35,24,30,.035)!important;
}

/* Brand: retain discoverability without another pill-shaped component. */
body.yhn-product-phase1d .yhn-pdqa-brand{
  gap:6px!important;
  margin-bottom:11px!important;
  color:#777075!important;
}
body.yhn-product-phase1d .yhn-pdqa-brand>a{
  min-height:auto!important;
  padding:1px 1px 2px!important;
  border:0!important;
  border-bottom:1px solid #e8b9ce!important;
  border-radius:0!important;
  background:transparent!important;
  color:#9c2458!important;
  box-shadow:none!important;
}
body.yhn-product-phase1d .yhn-pdqa-brand>a:hover,
body.yhn-product-phase1d .yhn-pdqa-brand>a:focus-visible{
  border-bottom-color:#bd1d62!important;
  background:transparent!important;
  color:#bd1d62!important;
}

/* Short description remains a distinct information group, without card-within-card styling. */
body.yhn-product-phase1d .product-short-description{
  margin:15px 0 18px!important;
  padding:12px 2px 12px 15px!important;
  background:#fff!important;
  border:0!important;
  border-left:2px solid #e8ceda!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.yhn-product-phase1d .product-short-description>:first-child{margin-top:0!important}
body.yhn-product-phase1d .product-short-description>:last-child{margin-bottom:0!important}

/* Cart keeps exactly the same quantity/variation/CTA flow; only remove the extra enclosing card. */
body.yhn-product-phase1d form.cart{
  margin-top:17px!important;
  padding:16px 0!important;
  background:transparent!important;
  border:0!important;
  border-top:1px solid #eee7ea!important;
  border-bottom:1px solid #eee7ea!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.yhn-product-phase1d form.cart .quantity input.qty{
  border-color:#e3dce0!important;
  background:#fff!important;
}

/* CTA remains the strongest commerce signal. */
body.yhn-product-phase1d .single_add_to_cart_button,
body.yhn-product-phase1d form.cart .single_add_to_cart_button,
body.yhn-product-phase1d form.cart .button[type=submit]{
  box-shadow:0 5px 14px rgba(201,23,107,.14)!important;
}
body.yhn-product-phase1d .single_add_to_cart_button:hover,
body.yhn-product-phase1d form.cart .single_add_to_cart_button:hover,
body.yhn-product-phase1d form.cart .button[type=submit]:hover{
  transform:none!important;
  box-shadow:0 7px 17px rgba(168,18,88,.18)!important;
}

/* Trust rail: one group, not an outer card containing three more cards. */
body.yhn-product-phase1d .yhn-purchase-assurance{
  margin:13px 0 5px!important;
  padding:9px 0!important;
  background:#fff!important;
  border:0!important;
  border-top:1px solid #eee6ea!important;
  border-bottom:1px solid #eee6ea!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.yhn-product-phase1d .yhn-purchase-assurance>span,
body.yhn-product-phase1d .yhn-purchase-assurance>a{
  padding:6px 11px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
@media(min-width:850px){
  body.yhn-product-phase1d .yhn-purchase-assurance>span+span,
  body.yhn-product-phase1d .yhn-purchase-assurance>span+a,
  body.yhn-product-phase1d .yhn-purchase-assurance>a+span,
  body.yhn-product-phase1d .yhn-purchase-assurance>a+a{
    border-left:1px solid #eee6ea!important;
  }
}
body.yhn-product-phase1d .yhn-purchase-assurance strong{
  color:#4f464b!important;
  font-weight:750!important;
}
body.yhn-product-phase1d .yhn-purchase-assurance>a strong{color:#9b2458!important}

/* Meta information: keep every SKU/category/tag link, remove excessive pill/gradient treatment. */
body.yhn-product-phase1d .product_meta{
  margin-top:16px!important;
  padding-top:14px!important;
  border-top:1px solid #eee7ea!important;
}
body.yhn-product-phase1d .product_meta .sku,
body.yhn-product-phase1d .product_meta a[rel=tag]{
  min-height:auto!important;
  margin:1px 5px 1px 0!important;
  padding:1px 0 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.yhn-product-phase1d .product_meta .sku{color:#756f73!important}
body.yhn-product-phase1d .product_meta .posted_in a[rel=tag]{
  color:#a1265d!important;
  border-bottom:1px solid #efd0de!important;
}
body.yhn-product-phase1d .product_meta .tagged_as a[rel=tag]{
  color:#756f73!important;
  border-bottom:1px solid #e5dfe2!important;
}
body.yhn-product-phase1d .product_meta :is(.posted_in,.tagged_as) a[rel=tag]:hover{
  background:transparent!important;
  border-color:#c53573!important;
  color:#a51655!important;
  transform:none!important;
  box-shadow:none!important;
}

/* Sharing stays present and tappable, but visually reads as a utility. */
body.yhn-product-phase1d :is(.social-icons,.share-icons,.product-share,.entry-share){
  gap:8px!important;
  margin-top:11px!important;
}
body.yhn-product-phase1d :is(.social-icons,.share-icons,.product-share,.entry-share) a{
  width:34px!important;
  height:34px!important;
  background:#fff!important;
  border-color:#ece5e8!important;
  color:#8a8287!important;
  box-shadow:none!important;
}
body.yhn-product-phase1d :is(.social-icons,.share-icons,.product-share,.entry-share) a:hover{
  background:#fff6fa!important;
  border-color:#dfb2c6!important;
  color:#a41c58!important;
  transform:none!important;
}

@media(max-width:849px){
  /* On stacked mobile trust items, separators replace individual mini-cards. */
  body.yhn-product-phase1d .yhn-purchase-assurance{padding:4px 0!important}
  body.yhn-product-phase1d .yhn-purchase-assurance>span,
  body.yhn-product-phase1d .yhn-purchase-assurance>a{padding:9px 4px!important}
  body.yhn-product-phase1d .yhn-purchase-assurance>span+span,
  body.yhn-product-phase1d .yhn-purchase-assurance>span+a,
  body.yhn-product-phase1d .yhn-purchase-assurance>a+span,
  body.yhn-product-phase1d .yhn-purchase-assurance>a+a{
    border-top:1px solid #eee6ea!important;
  }
}

@media(prefers-reduced-motion:reduce){
  body.yhn-product-phase1d .yhn-pdqa-brand>a,
  body.yhn-product-phase1d .product_meta a[rel=tag],
  body.yhn-product-phase1d :is(.social-icons,.share-icons,.product-share,.entry-share) a{transition:none!important}
}
