/* Selected media refresh for the existing product sheet. */
.product-sheet-hero:has(.cfpg) { align-items: start; }
.cfpg { min-width: 0; gap: 12px; }
.cfpg *, .cfpg-lightbox * { box-sizing: border-box; }
.cfpg button, .cfpg-lightbox button { font: inherit; cursor: pointer; }
.cfpg button:focus-visible, .cfpg-view:focus-visible, .cfpg-lightbox button:focus-visible { outline: 3px solid #116df0; outline-offset: 3px; }
.cfpg-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #53667b; font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.cfpg-jump { border: 0; padding: 0; background: transparent; color: #096bb9; font-size: 12px !important; font-weight: 650 !important; min-height: 30px; }
.cfpg-jump span { padding-left: 5px; }
.cfpg-feature { margin: 0; min-width: 0; }
.cfpg-stage { position: relative; height: 420px; min-height: 0; overflow: hidden; border: 1px solid #d9e4ef; border-radius: 14px; background: #fff; isolation: isolate; }
.cfpg-view { display: block; position: relative; width: 100%; height: 100%; padding: 24px 36px 36px; border: 0; background: #fff; border-radius: inherit; touch-action: pan-y; cursor: zoom-in !important; }
.cfpg-image { display: block; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: 100% !important; object-fit: contain !important; object-position: center; margin: 0 !important; padding: 0 !important; filter: none !important; transform: none !important; }
.cfpg-image[hidden] { display: none !important; }
.cfpg-control { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 36px; height: 42px; transform: translateY(-50%); padding: 8px; color: #153453; border: 1px solid #dbe5ef; border-radius: 7px; background: #fffffff2; transition: border-color 160ms, background 160ms; }
.cfpg-previous { left: 9px; }
.cfpg-next { right: 9px; }
.cfpg-control:hover { border-color: #0872c0; background: #edf6fd; }
.cfpg-control svg, .cfpg-enlarge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cfpg-enlarge { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 7px 9px; color: #173d60; border: 1px solid #dbe5ef; border-radius: 6px; background: #fffffff2; font-size: 11px !important; line-height: 1.4; }
.cfpg-enlarge:hover { color: #0670be; border-color: #90bbdf; }
.cfpg-counter { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 2px 8px; color: #52687d; background: #fffffff2; border-radius: 3px; font-size: 11px; font-variant-numeric: tabular-nums; pointer-events: none; }
.cfpg-caption { margin: 9px 0 0; padding: 0 2px; color: #52657a; font-size: 12px; line-height: 1.5; min-height: 18px; }
.cfpg-caption p { margin: 0; }
.cfpg-thumbs { display: flex; gap: 8px; width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; padding: 3px 2px 7px; scrollbar-width: thin; scrollbar-color: #9eb9d1 #eff5fa; }
.cfpg-thumb { position: relative; flex: 0 0 76px; height: 74px; min-width: 0; padding: 5px 6px 17px; border: 1px solid #dbe4ed; border-radius: 6px; color: #52657a; background: #fff; transition: border-color 160ms, box-shadow 160ms; }
.cfpg-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.cfpg-thumb span { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 9px; line-height: 1.3; letter-spacing: .01em; }
.cfpg-thumb:hover { border-color: #6ca8d6; }
.cfpg-thumb.is-current { border-color: #096fbc; box-shadow: 0 0 0 1px #096fbc; color: #096fbc; }
.cfpg-lightbox { width: min(1240px, calc(100vw - 32px)); max-width: none; height: min(900px, calc(100dvh - 32px)); max-height: none; padding: 0; color: #14304c; border: 1px solid #cfdfed; border-radius: 12px; background: #fff; box-shadow: 0 24px 100px #05192b55; overflow: hidden; }
.cfpg-lightbox[open] { display: flex; flex-direction: column; }
.cfpg-lightbox::backdrop { background: #061b2dd9; backdrop-filter: blur(4px); }
.cfpg-lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid #e0e8f0; flex: 0 0 auto; }
.cfpg-lightbox-bar strong { font-size: 14px; line-height: 1.45; font-weight: 650; }
.cfpg-lightbox button { min-height: 36px; padding: 7px 12px; border: 1px solid #d4e1ed; border-radius: 6px; background: #fff; color: #153d60; font-size: 12px; }
.cfpg-lightbox button:hover { background: #eef6fc; border-color: #8db8da; }
.cfpg-lightbox-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; gap: 10px; padding: 12px; }
.cfpg-lightbox .cfpg-lightbox-step { flex: 0 0 36px; width: 36px; height: 44px; padding: 5px; font-size: 25px; }
.cfpg-lightbox-image-wrap { position: relative; display: block; flex: 1; min-width: 0; height: 100%; overflow: auto; overscroll-behavior: contain; }
.cfpg-lightbox-image { position: absolute; inset: 0; display: block; object-fit: contain; width: 100%; height: 100%; max-width: 100%; max-height: 100%; cursor: zoom-in; }
.cfpg-lightbox-image-wrap.is-zoomed .cfpg-lightbox-image { position: static; width: max(100%, 1200px); height: auto; max-width: none; max-height: none; cursor: zoom-out; }
.cfpg-lightbox-bottom { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 18px; border-top: 1px solid #e0e8f0; }
.cfpg-lightbox-caption { margin: 0; color: #52657a; font-size: 12px; line-height: 1.5; }
.cfpg-lightbox-caption p { margin: 0; }
.cfpg-lightbox-bottom button { flex: 0 0 auto; }
@media (max-width: 760px) {
  .cfpg-stage { height: 290px; border-radius: 10px; }
  .cfpg-view { padding: 22px 30px 30px; }
  .cfpg-control { width: 32px; height: 40px; }
  .cfpg-previous { left: 6px; }
  .cfpg-next { right: 6px; }
  .cfpg-enlarge { top: 7px; right: 7px; }
  .cfpg-enlarge span { display: none; }
  .cfpg-thumb { flex-basis: 65px; height: 67px; }
  .cfpg-caption { font-size: 11px; }
  .cfpg-lightbox { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 9px; }
  .cfpg-lightbox-bar { padding: 12px; }
  .cfpg-lightbox-bar strong { font-size: 12px; }
  .cfpg-lightbox-stage { padding: 6px; gap: 4px; }
  .cfpg-lightbox .cfpg-lightbox-step { flex-basis: 30px; width: 30px; }
  .cfpg-lightbox-bottom { gap: 12px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .cfpg *, .cfpg-lightbox * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-body .cfpg-thumbs, .site-body .cfpg-control, .site-body .cfpg-enlarge, .site-body .cfpg-jump, .cfpg-lightbox { display: none !important; }
  .cfpg-stage { height: 240px; }
  .cfpg-caption { font-size: 9pt; }
}

.cfpg-view { color: inherit; text-decoration: none; }
.cfpg-lightbox [hidden] { display: none !important; }
