/*
 * BinikStock V477 — canonical public Pack Detail layout and actions.
 * Scoped to the shared Pack Detail renderer so unrelated CTAs, asset modals
 * and dashboard controls retain their existing visual and functional behavior.
 */

/*
 * V474's 500 rule lost to the more-specific public-system 650 rule.
 * Match that body scope and add the complete template scope so the final
 * computed title weight is deterministically 450 on every Pack Deal page.
 */
html body.binikstock-public-ui .iconsol-page.pack-detail-template.v43-pack-detail .pack-hero-content h1,
html body.binikstock-public-ui .v43-pack-detail .pack-hero-content h1,
html body.binikstock-public-ui .pack-detail-main .pack-hero-content h1,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-hero-content h1,
html body .pack-detail-template .pack-hero-content h1,
html body .pack-detail .pack-hero-content h1 {
  font-weight: 450 !important;
  font-synthesis: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/*
 * The canonical renderer always outputs these exact three actions. Desktop
 * uses three equal columns; the established mobile breakpoint stacks them.
 */
html body.binikstock-public-ui .v43-pack-detail .pack-action-row,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row,
html body .pack-detail-template .pack-action-row {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn,
html body .pack-detail-template .pack-action-row > .pack-action-btn {
  width: 100% !important;
  min-width: 0 !important;
}

/*
 * All three actions remain neutral at rest. Only the button currently being
 * hovered, keyboard-focused or pressed receives the navy gradient.
 */
html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn,
html body .pack-detail-template .pack-action-row > .pack-action-btn {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #07182d !important;
  border: 1px solid #d6dfeb !important;
  box-shadow: none !important;
  filter: none !important;
  transform: translateY(0) scale(1) !important;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease !important;
}

html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn svg,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn svg,
html body .pack-detail-template .pack-action-row > .pack-action-btn svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

/* Keep legacy decorative collection pseudo-icons disabled. */
html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn::before,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn::before,
html body .pack-detail-template .pack-action-row > .pack-action-btn::before {
  content: none !important;
  display: none !important;
}

/* Restored light sweep: the sheen travels left-to-right over the active CTA. */
html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn::after,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn::after,
html body .pack-detail-template .pack-action-row > .pack-action-btn::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -35% auto -35% -55% !important;
  width: 42% !important;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 24%,
    rgba(255, 255, 255, 0.52) 50%,
    rgba(255, 255, 255, 0.12) 76%,
    transparent 100%
  ) !important;
  opacity: 0.82 !important;
  transform: translateX(-180%) skewX(-18deg) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  will-change: transform, opacity;
}

html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn:hover,
html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn:focus-visible,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn:hover,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn:focus-visible,
html body .pack-detail-template .pack-action-row > .pack-action-btn:hover,
html body .pack-detail-template .pack-action-row > .pack-action-btn:focus-visible {
  background: linear-gradient(135deg, #061224 0%, #0d1b36 48%, #24206b 100%) !important;
  background-color: #071427 !important;
  color: #ffffff !important;
  border-color: #17214a !important;
  box-shadow: 0 16px 36px rgba(6, 18, 36, 0.24) !important;
  filter: none !important;
  transform: translateY(-1px) scale(1) !important;
}

html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn:hover::after,
html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn:focus-visible::after,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn:hover::after,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn:focus-visible::after,
html body .pack-detail-template .pack-action-row > .pack-action-btn:hover::after,
html body .pack-detail-template .pack-action-row > .pack-action-btn:focus-visible::after {
  animation: binikstock-v477-pack-action-sheen 620ms ease-out 1 !important;
}

html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn:focus-visible,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn:focus-visible,
html body .pack-detail-template .pack-action-row > .pack-action-btn:focus-visible {
  outline: 3px solid rgba(36, 32, 107, 0.22) !important;
  outline-offset: 3px !important;
}

html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn:active,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn:active,
html body .pack-detail-template .pack-action-row > .pack-action-btn:active {
  background: linear-gradient(135deg, #061224 0%, #0d1b36 48%, #24206b 100%) !important;
  color: #ffffff !important;
  border-color: #17214a !important;
  transform: translateY(0) scale(0.99) !important;
  box-shadow: 0 9px 22px rgba(6, 18, 36, 0.2) !important;
}

html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn:active::after,
html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn:active::after,
html body .pack-detail-template .pack-action-row > .pack-action-btn:active::after {
  animation: binikstock-v477-pack-action-sheen-press 360ms ease-out 1 !important;
}

@keyframes binikstock-v477-pack-action-sheen {
  0% {
    margin-left: 0;
  }
  100% {
    margin-left: 720%;
  }
}

@keyframes binikstock-v477-pack-action-sheen-press {
  0% {
    margin-left: 0;
  }
  100% {
    margin-left: 720%;
  }
}

@media (max-width: 680px) {
  html body.binikstock-public-ui .v43-pack-detail .pack-action-row,
  html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row,
  html body .pack-detail-template .pack-action-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn,
  html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn,
  html body .pack-detail-template .pack-action-row > .pack-action-btn {
    transition: none !important;
  }

  html body.binikstock-public-ui .v43-pack-detail .pack-action-row > .pack-action-btn::after,
  html body .iconsol-page.pack-detail-template.v43-pack-detail .pack-action-row > .pack-action-btn::after,
  html body .pack-detail-template .pack-action-row > .pack-action-btn::after {
    animation: none !important;
    display: none !important;
  }
}
