/* PDM NEXT R8 PRODUCT MODULE — canonical adapter only.
   Product geometry/typography/cards come from byte-identical Production R7 CSS.
   This file contains ONLY newer canonical rules and NEXT isolation behavior. */

html,body{min-height:100%}
body[data-pdm-product-contract]{padding-bottom:24px!important}

html.pdm-v156-miniapp body{padding-top:0!important}
html.pdm-v156-miniapp .topbar,
body[data-pdm-product-contract] .topbar{
  position:sticky!important;
  top:0!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  width:100%!important;
  transition:transform .16s ease!important;
  will-change:transform;
  -webkit-transform:none!important;
  transform:none!important;
}
html.pdm-v156-miniapp .topbar.pdm-next-topbar-hidden,
body[data-pdm-product-contract] .topbar.pdm-next-topbar-hidden{
  visibility:visible!important;
  -webkit-transform:translateY(calc(-100% - 2px))!important;
  transform:translateY(calc(-100% - 2px))!important;
  pointer-events:none!important;
}

body[data-pdm-product-contract] .top-nav a.active,
body[data-pdm-product-contract] .top-nav a[aria-current="page"]{
  background:#fff!important;
  color:#10265b!important;
  box-shadow:0 3px 12px rgba(15,23,42,.22)!important;
}

#pdm-detail-back{
  position:fixed!important;
  z-index:2147483000!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  left:auto;
  right:10px;
  top:43vh;
  bottom:auto;
  margin:0!important;
  width:auto!important;
  min-width:0!important;
  min-height:42px!important;
  max-width:calc(100vw - 12px)!important;
  padding:8px 14px!important;
  border:1px solid #b9c9e8!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.97)!important;
  color:#174d91!important;
  font:800 14px/1.1 system-ui,-apple-system,Segoe UI,sans-serif!important;
  box-shadow:0 4px 18px rgba(15,42,91,.22)!important;
  backdrop-filter:blur(8px);
  cursor:grab!important;
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  pointer-events:auto!important;
}
#pdm-detail-back.pdm-floating-back-dragging{
  cursor:grabbing!important;
  opacity:.92!important;
  transform:scale(1.04)!important;
  box-shadow:0 7px 24px rgba(15,42,91,.30)!important;
}
#pdm-detail-back:active:not(.pdm-floating-back-dragging){transform:scale(.97)}

.pdm-next-product-feedback{
  margin:8px 0!important;
  border-radius:12px;
  padding:8px 10px;
  font-weight:800;
}
.pdm-next-product-feedback[hidden]{display:none!important}
.pdm-next-product-feedback.ok{background:#dcfce7;color:#166534}
.pdm-next-product-feedback.error{background:#fee2e2;color:#991b1b}

[data-pdm-busy="1"]{cursor:progress}
#pdm-v89-product-qty{touch-action:manipulation}

@media(max-width:700px){
  #pdm-detail-back{min-height:40px!important;padding:8px 13px!important}
  .product-detail-actions.v26-18-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
}
