.product-variants .nsg-host {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}
.product-variants .nsg-host > .control-label {
  grid-column: 1 / -1;
}
.product-variants .nsg-host > select,
.product-variants .nsg-host > ul {
  grid-column: 1;
}
.nsg-host > .nsg-link {
  grid-column: 2;
  justify-self: start;
  margin: 0;
  text-align: left;
}
.nsg-link {
  display: inline-block;
  border: 0;
  border-radius: .2rem;
  padding: .3rem 0;
  min-height: 32px;
  background: transparent;
  color: var(--nd-text, #f5f5f2);
  font: inherit;
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
  animation: nsg-gold 2.4s ease-in-out infinite;
}
.nsg-link[hidden], [data-nsg-root][hidden] { display: none !important; }
@keyframes nsg-gold {
  0%, 40%, 100% { color: var(--nd-text, #f5f5f2); }
  50%, 90% { color: var(--nd-gold, #c8aa72); }
}
.nsg-link:focus-visible, .nsg-dialog button:focus-visible, .nsg-dialog a:focus-visible,
.nsg-image-scroll:focus-visible {
  outline: 3px solid #c8aa72;
  outline-offset: 3px;
}
.nsg-dialog {
  width: min(960px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid #665639;
  border-radius: 12px;
  background: #121619;
  color: #f5f5f2;
  box-shadow: 0 16px 64px #0009;
  overflow: auto;
}
.nsg-dialog::backdrop { background: #000b; }
.nsg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 18px;
  background: #121619;
  border-bottom: 1px solid #444;
}
.nsg-header h2 { color: #f5f5f2; font-size: 1.25rem; margin: 0; }
.nsg-body { padding: 18px; }
.nsg-body p { color: #f5f5f2; }
.nsg-dialog button {
  font: inherit;
  color: #f5f5f2;
  background: #252b30;
  border: 1px solid #75664b;
  border-radius: 5px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
}
.nsg-dialog a { color: #e1c38d; text-decoration: underline; text-underline-offset: .18em; }
.nsg-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; }
.nsg-image-scroll { width: 100%; overflow: auto; background: #fff; }
.nsg-image-scroll img { display: block; width: 100%; max-width: none; height: auto; }
.nsg-image-scroll.nsg-enlarged img { width: auto; min-width: 100%; }
.nsg-dialog [hidden] { display: none !important; }
@media (max-width: 480px) {
  .nsg-header, .nsg-body { padding: 12px; }
  .nsg-actions { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nsg-link { animation: none; color: var(--nd-gold, #c8aa72); }
}
