﻿:root {
  --ns-bg: #0b0f14;
  --ns-surface: #121820;
  --ns-card: #1a2330;
  --ns-accent: #0877ff;
  --ns-accent-hover: #0660cc;
  --ns-text: #f8fafc;
  --ns-muted: #94a3b8;
  --ns-gold: #fbbf24;
  --ns-border: rgba(148, 163, 184, 0.18);
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--ns-bg);
  color: var(--ns-text);
  line-height: 1.6;
}
h1,h2,h3,h4 {
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.2;
  color: var(--ns-text);
}
a { color: var(--ns-accent); }
a:hover { color: var(--ns-accent-hover); }
img { max-width: 100%; height: auto; }
.ns-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ns-accent);
}
.ns-muted { color: var(--ns-muted); }
.ns-card {
  background: var(--ns-card);
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
}
.ns-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 119, 255, 0.45);
  transition: transform .25s ease, border-color .25s ease;
}
.ns-stat { text-align: center; padding: 1.25rem 0.75rem; }
.ns-stat strong { display: block; font-size: 1.75rem; color: var(--ns-text); }
.ns-stat span { color: var(--ns-muted); font-size: 0.9rem; }
.ns-price { font-size: 2rem; font-weight: 700; }
.ns-price small { font-size: 0.95rem; font-weight: 500; color: var(--ns-muted); }
.ns-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 119, 255, 0.15);
  color: var(--ns-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.ns-badge-gold { background: rgba(251,191,36,0.15); color: var(--ns-gold); }
.ns-poster {
  aspect-ratio: 2/3;
  border-radius: 12px;
  background: linear-gradient(160deg, #1a2330 0%, #0b0f14 55%, #0a2a5c 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--ns-border);
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.ns-poster:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,15,20,0.05) 30%, rgba(11,15,20,0.88) 100%);
  pointer-events: none;
}
.ns-poster span {
  position: relative;
  z-index: 1;
  color: var(--ns-text);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}
.ns-device {
  text-align: center;
  padding: 1rem;
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: 12px;
}
.ns-compare { width: 100%; border-collapse: collapse; }
.ns-compare th, .ns-compare td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--ns-border);
  text-align: left;
  color: var(--ns-muted);
}
.ns-compare th { background: var(--ns-card); color: var(--ns-text); }
.ns-compare .yes { color: var(--ns-accent); font-weight: 700; }
.ns-status-ok { color: var(--ns-accent); font-weight: 700; }
.ns-status-warn { color: var(--ns-gold); font-weight: 700; }
.ns-status-down { color: #f87171; font-weight: 700; }
.ns-section.ns-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,15,20,0.88) 0%, rgba(11,15,20,0.62) 42%, rgba(11,15,20,0.28) 100%);
  pointer-events: none;
  z-index: 0;
}
.ns-section.ns-hero > .ns-container { position: relative; z-index: 1; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* Layout primitives (Divi-free) */
.ns-container {
  width: min(1120px, 92%);
  margin: 0 auto;
}
.ns-section {
  position: relative;
  padding: 30px 0;
}
.ns-section--bg {
  background-color: var(--ns-bg, #0b0f14);
}
.ns-section--surface {
  background-color: var(--ns-surface, #121820);
}
.ns-section[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ns-row {
  display: grid;
  gap: 1.25rem;
}
.ns-row--1 { grid-template-columns: 1fr; }
.ns-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ns-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ns-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .ns-row--2, .ns-row--3, .ns-row--4 { grid-template-columns: 1fr; }
}
.ns-section + .ns-section { /* keep flow */ }
.ns-section.ns-hero {
  background-color: #0b0f14;
  background-image: url('../hero/hero-livingroom.jpg');
  background-size: cover;
  background-position: center 32% !important;
  background-repeat: no-repeat;
  margin-top: 0;
  padding: calc(72px + 84px) 0 56px !important;
  min-height: 0;
}
.ns-section.ns-hero.ns-hero--cpt {
  padding: 0 !important;
  background-image: none !important;
}
.ns-section.ns-hero.ns-hero--cpt:before {
  display: none;
}
.ns-hero--cpt .ns-hero-rotator {
  position: relative;
  overflow: hidden;
}
.ns-hero--cpt .ns-rotator__slide {
  display: block;
  background-color: #0b0f14;
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  padding: calc(72px + 84px) 0 72px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transform: translateX(0);
  transition: opacity .7s ease, transform .7s ease, visibility .7s;
}
.ns-hero--cpt .ns-rotator__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transform: translateX(0);
}
.ns-hero--cpt .ns-rotator__slide.is-leaving {
  position: absolute;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 3;
}
.ns-hero--cpt .ns-rotator__slide.is-entering {
  opacity: 0;
  visibility: visible;
}
/* Effekt: glid + tona */
.ns-hero--cpt .ns-hero-rotator[data-effect="slide"] .ns-rotator__slide.is-leaving {
  transform: translateX(-56px);
}
.ns-hero--cpt .ns-hero-rotator[data-effect="slide"] .ns-rotator__slide.is-entering {
  transform: translateX(56px);
}
.ns-hero--cpt .ns-hero-rotator[data-effect="slide"] .ns-rotator__slide.is-active {
  transform: translateX(0);
}
/* Effekt: endast tona */
.ns-hero--cpt .ns-hero-rotator[data-effect="fade"] .ns-rotator__slide.is-leaving,
.ns-hero--cpt .ns-hero-rotator[data-effect="fade"] .ns-rotator__slide.is-entering,
.ns-hero--cpt .ns-hero-rotator[data-effect="fade"] .ns-rotator__slide.is-active {
  transform: none;
}
.ns-hero--cpt .ns-rotator__slide:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,15,20,0.88) 0%, rgba(11,15,20,0.62) 42%, rgba(11,15,20,0.28) 100%);
  pointer-events: none;
  z-index: 0;
}
.ns-hero--cpt .ns-rotator__slide > .ns-container {
  position: relative;
  z-index: 1;
}
.ns-hero--cpt .ns-rotator__dots {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
}
/* Startsida: menyn ligger ovanpå heron — ingen svart rand ovanför bilden */
body.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  background-color: rgba(11, 15, 20, 0.1);
}
body.home.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.home.admin-bar .site-header {
    top: 46px;
  }
}
.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  margin-top: 1rem;
}
.ns-btn-primary {
  background: var(--ns-accent);
  border-color: var(--ns-accent);
  color: #fff;
}
.ns-btn-primary:hover {
  background: var(--ns-accent-hover);
  border-color: var(--ns-accent-hover);
  color: #fff;
}
.ns-btn-ghost {
  background: transparent;
  border-color: rgba(248,250,252,0.35);
  color: var(--ns-text);
}
.ns-btn-ghost:hover {
  color: var(--ns-accent);
  border-color: var(--ns-accent);
}
.ns-form {
  background: var(--ns-card);
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}
.ns-home-trial .ns-form {
  margin: 1.5rem auto 0;
  width: 100%;
}
.ns-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ns-muted);
  font-size: 0.92rem;
}
.ns-form input,
.ns-form select,
.ns-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--ns-border);
  background: var(--ns-surface);
  color: var(--ns-text);
  padding: 0.7rem 0.85rem;
  box-sizing: border-box;
}
.ns-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.ns-form-notice {
  max-width: 36rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--ns-border);
  font-size: 0.95rem;
}
.ns-form-notice--ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}
.ns-form-notice--err {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
.ns-home-trial .ns-form-notice {
  margin-left: auto;
  margin-right: auto;
}
.ns-accordion details {
  background: var(--ns-card);
  border: 1px solid var(--ns-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
}
.ns-accordion summary {
  cursor: pointer;
  color: var(--ns-text);
  font-weight: 600;
}
.ns-accordion details p {
  color: var(--ns-muted);
  margin: 0.75rem 0 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(11, 15, 20, 0.12);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.site-header__inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-logo img,
.custom-logo-link img,
.custom-logo {
  height: 65px;
  width: auto;
  max-width: min(280px, 62vw);
  display: block;
}
.site-header__nav-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.site-nav {
  width: 100%;
}
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.35rem;
  width: 100%;
}
.primary-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}
.primary-menu > li > a {
  color: var(--ns-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
}
.primary-menu > li.menu-item-has-children > a:after {
  content: '';
  display: inline-block;
  margin: -1px 0 0 0.45rem;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: currentColor transparent transparent transparent;
  opacity: 0.9;
}
.primary-menu > li > ul.sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #121820;
  border: 1px solid var(--ns-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 1000;
}
.primary-menu > li:hover > ul.sub-menu,
.primary-menu > li:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.primary-menu .sub-menu a {
  display: block;
  color: var(--ns-text);
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
}
.primary-menu .sub-menu a:hover {
  background: rgba(8, 119, 255, 0.12);
}
.primary-menu > li.ns-account-item {
  margin-left: auto;
}
.primary-menu > li.ns-cta-item {
  margin-left: 0;
}
.primary-menu > li.ns-account-item > a,
.ns-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(248,250,252,0.85);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.primary-menu > li.ns-account-item > a:after {
  display: none;
}
.primary-menu > li.ns-cta-item > a,
.ns-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: var(--ns-accent);
  border: 1px solid var(--ns-accent);
  color: #041018;
  text-decoration: none;
  font-weight: 700;
}
.primary-menu > li.ns-cta-item > a:after {
  display: none;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ns-border);
  background: transparent;
  color: var(--ns-text);
  cursor: pointer;
}
.site-footer {
  background: var(--ns-surface);
  border-top: 1px solid var(--ns-border);
  padding: 60px 0 40px;
  color: var(--ns-muted);
}
.site-footer a { color: var(--ns-accent); }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.site-footer h2 {
  color: var(--ns-text);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header__nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11,15,20,0.96);
    padding: 1rem;
    border-bottom: 1px solid var(--ns-border);
  }
  .site-header__nav-wrap.is-open { display: block; }
  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .primary-menu > li.ns-account-item { margin-left: 0; }
  .primary-menu > li > ul.sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 0.35rem;
  }
  .site-logo img,
  .custom-logo-link img,
  .custom-logo { height: 24px; }
  .ns-section.ns-hero {
    margin-top: 0;
    padding: calc(48px + 64px) 0 48px !important;
  }
  .ns-section:not(.ns-hero) {
    padding: 22px 0;
  }
  .site-header__inner { min-height: 64px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.page-content {
  padding: 0 0 0;
}
.page-content .entry-content > *:first-child {
  margin-top: 0;
}
body.home .ns-front-page {
  padding-top: 0;
}
body.home .ns-front-page .entry-content > .ns-section:first-child,
body.home .ns-front-page .entry-content > :first-child {
  margin-top: 0;
}
/* Pages whose first block is not a full ns-section (plain editor content). */
body:not(.home) .ns-wp-page .entry-content > :not(.ns-section):first-child {
  margin-top: calc(72px + 32px);
}
body:not(.home) .ns-wp-page .entry-content > .ns-section:first-child {
  padding-top: calc(72px + 40px);
}
.content-wrap.ns-wp-page .entry-header {
  margin-bottom: 1.5rem;
}
.content-wrap.ns-wp-page .entry-title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}
.content-wrap.ns-wp-page .entry-content h2 {
  margin-top: 1.75rem;
}
.content-wrap.ns-wp-page .entry-content .ns-btn {
  display: inline-flex;
  margin: 0.35rem 0.5rem 0.35rem 0;
}
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li { margin: 0.35rem 0; }
.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ns-border);
  font-size: 0.9rem;
}
.site-main { min-height: 50vh; }
.primary-menu > li.ns-account-item > a:before {
  content: '';
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 -5px 0 -2px currentColor;
  display: inline-block;
}
.ns-form button {
  cursor: pointer;
  border: 0;
  font: inherit;
}
.ns-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}
.ns-btn-row .ns-btn { margin-top: 0; }
.ns-price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ns-price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  min-height: 1.75rem;
}
.ns-price-card__head h3 {
  margin: 0;
}
.ns-badge-spacer {
  visibility: hidden;
  pointer-events: none;
}
.ns-price-card__total {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ns-muted);
}
.ns-package-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}
.ns-package-price__was {
  color: var(--ns-muted);
  font-weight: 500;
  text-decoration: line-through;
}
.ns-package-price__now {
  text-decoration: none;
  font-weight: 700;
  color: var(--ns-text);
}
.ns-package-savings {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(8, 119, 255, 0.16);
  color: var(--ns-accent);
  font-size: 0.8rem;
  font-weight: 600;
}
.ns-package-buy {
  margin-top: 1rem;
}
.ns-package-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
}
.ns-package-form__items {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ns-border);
  border-radius: 0.75rem;
  overflow: hidden;
}
.ns-package-form__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ns-border);
}
.ns-package-form__item:last-child {
  border-bottom: 0;
}
.ns-package-form__name {
  font-weight: 600;
}
.ns-package-form__price--ord del {
  color: var(--ns-muted);
  text-decoration: line-through;
  opacity: 0.85;
}
.ns-package-form__ord-label {
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
}
.ns-package-form__savings {
  margin: 0;
}
.ns-package-form__qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ns-package-form__qty .qty {
  width: 5rem;
  min-height: 2.75rem;
  text-align: center;
}
.ns-package-form .single_add_to_cart_button {
  align-self: flex-start;
}
.ns-package-cart-note {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--ns-muted);
  font-weight: 500;
}
.ns-empty-cart-products-wrap {
  margin-top: 1.5rem;
}
.ns-empty-cart-products__title {
  margin-bottom: 1rem;
}
.ns-empty-cart-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ns-empty-cart-products__item {
  text-align: center;
}
.ns-empty-cart-products .ns-btn {
  margin-top: 0.75rem;
}
.ns-price-card__action {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  justify-content: center;
}
.ns-card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.ns-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .ns-card-grid--3 { grid-template-columns: 1fr; }
}
.ns-rotator {
  position: relative;
  min-height: 220px;
}
.ns-rotator__slide {
  display: none;
  animation: nsFadeIn .45s ease;
}
.ns-rotator__slide.is-active { display: block; }
.ns-rotator__dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.ns-rotator__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(248,250,252,0.28);
  cursor: pointer;
}
.ns-rotator__dot.is-active { background: var(--ns-accent); }
@keyframes nsFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.ns-account-btn:before {
  content: '';
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 -5px 0 -2px currentColor;
  display: inline-block;
}
.site-footer .ns-account-btn {
  margin-top: 0.25rem;
}

/* Header cart + mini cart drawer */
.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-left: 0.5rem;
}
.ns-header-cart {
  display: inline-flex;
  align-items: center;
}
.ns-header-cart__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ns-border);
  color: var(--ns-text);
  text-decoration: none;
  background: transparent;
}
.ns-header-cart__link:hover,
.ns-header-cart__link:focus-visible {
  border-color: var(--ns-accent);
  color: #fff;
}
.ns-header-cart__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--ns-accent);
  color: #041018;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  display: none;
}
.ns-header-cart__count.is-visible {
  display: inline-block;
}
.ns-mini-cart[hidden] {
  display: none !important;
}
.ns-mini-cart {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.ns-mini-cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.55);
}
.ns-mini-cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, 94vw);
  height: 100%;
  background: var(--ns-surface, #121820);
  border-left: 1px solid var(--ns-border);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(0);
}
.ns-mini-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid var(--ns-border);
}
.ns-mini-cart__header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ns-text);
}
.ns-mini-cart__close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--ns-border);
  background: transparent;
  color: var(--ns-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.ns-mini-cart__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1rem 1.15rem;
}
.ns-mini-cart__body .woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ns-mini-cart__body .woocommerce-mini-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.ns-mini-cart__body .woocommerce-mini-cart-item img {
  width: 64px;
  height: auto;
  border-radius: 8px;
}
.ns-mini-cart__body a {
  color: var(--ns-text);
  text-decoration: none;
}
.ns-mini-cart__body .quantity,
.ns-mini-cart__body .woocommerce-mini-cart__total {
  color: var(--ns-muted);
}
.ns-mini-cart__body .woocommerce-mini-cart__total {
  margin: 1rem 0 0;
  font-weight: 700;
  color: var(--ns-text);
}
.ns-mini-cart__footer {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid var(--ns-border);
}
.ns-mini-cart__footer .ns-btn {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.ns-mini-cart__footer .ns-btn--primary {
  background: var(--ns-accent);
  color: #041018;
  border: 1px solid var(--ns-accent);
}
.ns-mini-cart__footer .ns-btn--ghost {
  background: transparent;
  color: var(--ns-text);
  border: 1px solid var(--ns-border);
}
.ns-mini-cart__reviews:empty {
  display: none;
}
.ns-mini-cart__reviews:not(:empty) {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.ns-mini-cart__reviews-title,
.ns-cart-reviews__title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ns-text);
}
.ns-cart-reviews__title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.ns-mini-cart__reviews-list,
.ns-cart-reviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.ns-cart-reviews__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.ns-mini-cart__review,
.ns-cart-reviews__item {
  margin: 0;
}
.ns-cart-reviews__item {
  background: var(--ns-card);
  border: 1px solid var(--ns-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.ns-review-stars,
.ns-mini-cart__review-stars {
  display: inline-block;
  color: #f5c542;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ns-review-text,
.ns-mini-cart__review-text {
  margin: 0.25rem 0 0.2rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ns-text);
}
.ns-cart-reviews .ns-review-text {
  font-size: 0.95rem;
}
.ns-review-meta,
.ns-mini-cart__review-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ns-muted);
}
.ns-cart-reviews {
  width: min(1120px, 92%);
  margin: 2rem auto 0;
}
.ns-cart-reviews:empty {
  display: none;
}
@media (max-width: 700px) {
  .ns-cart-reviews__list {
    grid-template-columns: 1fr;
  }
}
body.ns-cart-open {
  overflow: hidden;
}

/* Single product: related first, then reviews */
.single-product .related.products {
  margin: 2.5rem 0 1.5rem;
  clear: both;
}
.single-product .related.products > h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--ns-text);
}
.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
/* Woo clearfix pseudo-elements break CSS grid rows. */
.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after {
  content: none !important;
  display: none !important;
}
.single-product .related.products ul.products li.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--ns-card);
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  box-sizing: border-box;
}
.single-product .related.products ul.products li.product img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ns-text);
}
.single-product .related.products ul.products li.product .price {
  color: var(--ns-text);
  font-weight: 700;
}
.single-product .related.products ul.products li.product .button,
.single-product .related.products ul.products li.product a.button {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--ns-accent);
  color: #041018 !important;
  border: 1px solid var(--ns-accent);
  text-decoration: none;
  font-weight: 700;
}
.single-product .woocommerce-tabs {
  margin: 2rem 0 1.5rem;
  clear: both;
}
.single-product .woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.single-product .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 0.55rem 0.15rem 0.7rem;
  color: var(--ns-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--ns-text);
  border-bottom-color: var(--ns-accent);
}
.single-product .woocommerce-Reviews .star-rating,
.single-product .comment-form-rating {
  color: #f5c542;
}
@media (max-width: 900px) {
  .single-product .related.products ul.products {
    grid-template-columns: 1fr;
  }
}
.ns-sidebar {
  width: min(1120px, 92%);
  margin: 0 auto 2rem;
  color: var(--ns-muted);
}
.ns-sidebar .widget {
  margin: 0 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.ns-sidebar .widget-title {
  color: var(--ns-text);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
@media (max-width: 980px) {
  .site-header__actions {
    margin-left: auto;
  }
  .menu-toggle {
    margin-left: 0;
  }
}

/*
 * Site content width = .ns-container (min(1120px, 92%)).
 * Woo shop/product pages + cart/checkout/account share the same gutters as the homepage.
 */
.content-wrap:not(.ns-container) {
  width: min(1120px, 92%);
  margin: 0 auto;
}
.content-wrap.ns-container {
  padding: calc(72px + 28px) 0 3rem;
}
.ns-woocommerce,
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
  padding: calc(72px + 28px) 0 3rem;
}
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
  width: min(1120px, 92%);
  margin: 0 auto;
}
@media (max-width: 768px) {
  .content-wrap.ns-container,
  .ns-woocommerce,
  .woocommerce-cart .site-main,
  .woocommerce-checkout .site-main,
  .woocommerce-account .site-main {
    padding-top: calc(48px + 24px);
  }
}

/*
 * Fallback when CSS container queries do not hide the mobile order-summary clone:
 * desktop = only sidebar summary; narrow = only the fill-wrapper summary.
 */
@media (min-width: 700px) {
  .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
    display: none !important;
  }
}
@media (max-width: 699px) {
  .wp-block-woocommerce-checkout-totals-block > .wp-block-woocommerce-checkout-order-summary-block:not(.checkout-order-summary-block-fill-wrapper) {
    display: none !important;
  }
}

/*
 * Dark checkout: only nudge contrast. Labels/required/optional text come from WooCommerce
 * (label vs optionalLabel + required attribute) — do not hardcode field titles here.
 */
.has-dark-controls .wc-block-components-text-input input[type="text"],
.has-dark-controls .wc-block-components-text-input input[type="email"],
.has-dark-controls .wc-block-components-text-input input[type="tel"],
.has-dark-controls .wc-block-components-text-input input[type="number"],
.has-dark-controls .wc-block-components-text-input input[type="password"],
.has-dark-controls .wc-block-components-text-input input[type="url"],
.has-dark-controls .wc-block-components-textarea,
.has-dark-controls .wc-block-components-combobox .components-combobox-control__input {
  background-color: rgba(0, 0, 0, 0.22);
  border-color: hsla(0, 0%, 100%, 0.35);
  color: #fff;
}

/* Required marker from WC's own required/aria-required — not a hardcoded field list. */
.wc-block-components-text-input :is(input, textarea)[required] + label,
.wc-block-components-text-input :is(input, textarea)[aria-required="true"] + label,
.wc-block-components-combobox:has([required]) label,
.wc-block-components-combobox:has([aria-required="true"]) label {
  overflow: visible;
  max-width: calc(100% - 28px);
}
.wc-block-components-text-input :is(input, textarea)[required] + label::after,
.wc-block-components-text-input :is(input, textarea)[aria-required="true"] + label::after,
.wc-block-components-combobox:has([required]) label::after,
.wc-block-components-combobox:has([aria-required="true"]) label::after {
  content: "\00a0*";
  color: var(--ns-accent, #0877ff);
  font-weight: 700;
}

/* Do not show shop cart widget beside checkout/cart (mini-cart in header is enough). */
body.woocommerce-cart .ns-sidebar,
body.woocommerce-checkout .ns-sidebar {
  display: none !important;
}

/*
 * M3U-handler fulfillment — product page (scalars → cart) + checkout fallback.
 * Matches package-form / card look; plugin owns field names.
 */
.ns-dp-product,
.dp-product-fulfillment-fields,
body.woocommerce-checkout .ns-dp-fields,
body.woocommerce-checkout .dp-fulfillment-fields {
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 28rem;
}
body.woocommerce-checkout .ns-dp-fields,
body.woocommerce-checkout .dp-fulfillment-fields {
  max-width: 36rem;
  margin-top: 1.5rem;
}
.ns-dp-product,
.dp-product-fulfillment-fields {
  padding: 1rem 1.1rem 1.15rem;
  background: var(--ns-card, #1a2330);
  border: 1px solid var(--ns-border, rgba(148, 163, 184, 0.22));
  border-radius: 0.75rem;
}
.ns-package-form .ns-dp-product,
.ns-package-form .dp-product-fulfillment-fields {
  max-width: none;
}
body.woocommerce-checkout .ns-dp-fields__heading,
body.woocommerce-checkout .dp-fulfillment-fields > h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ns-text, #f8fafc);
}
body.woocommerce-checkout .ns-dp-item,
body.woocommerce-checkout .dp-fulfillment-item {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--ns-card, #1a2330);
  border: 1px solid var(--ns-border, rgba(148, 163, 184, 0.22));
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
body.woocommerce-checkout .ns-dp-item__title,
body.woocommerce-checkout .dp-fulfillment-item__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ns-text, #f8fafc);
}
.ns-dp-note,
.dp-renewal-only-note {
  margin: 0;
  color: var(--ns-muted, #94a3b8);
  font-size: 0.92rem;
}
.ns-dp-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ns-dp-panel[hidden],
.ns-dp-field[hidden],
.dp-renewal-mac[hidden],
.dp-renewal-account[hidden],
.dp-renewal-fields[hidden],
.dp-new-device-fields[hidden] {
  display: none !important;
}
.ns-dp-label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--ns-muted, #94a3b8);
  font-size: 0.92rem;
}
.ns-dp-label-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
}
.ns-dp-label-row .ns-dp-label {
  margin: 0;
}
.ns-dp-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 1px solid var(--ns-border, rgba(148, 163, 184, 0.35));
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ns-muted, #94a3b8);
  font: 600 0.72rem/1 inherit;
  cursor: help;
}
.ns-dp-help:hover,
.ns-dp-help:focus-visible {
  color: var(--ns-text, #f8fafc);
  border-color: var(--ns-accent, #0877ff);
  outline: none;
}
.ns-dp-help__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: min(18rem, 70vw);
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--ns-border, rgba(148, 163, 184, 0.28));
  background: var(--ns-card, #1a2330);
  color: var(--ns-text, #f8fafc);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 5;
}
.ns-dp-help:hover .ns-dp-help__tip,
.ns-dp-help:focus-visible .ns-dp-help__tip {
  opacity: 1;
  visibility: visible;
}
.ns-dp-input,
.dp-product-fulfillment-fields input.input-text,
.dp-fulfillment-fields input.input-text {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  border-radius: 10px;
  border: 1px solid hsla(0, 0%, 100%, 0.35);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.ns-dp-input:focus,
.dp-product-fulfillment-fields input.input-text:focus,
.dp-fulfillment-fields input.input-text:focus {
  outline: 2px solid var(--ns-accent, #0877ff);
  outline-offset: 1px;
}
.ns-dp-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--ns-muted, #94a3b8);
  line-height: 1.4;
}

.ns-dp-seg {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.ns-dp-seg__legend {
  padding: 0;
  margin: 0 0 0.45rem;
  color: var(--ns-muted, #94a3b8);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.ns-dp-seg__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ns-border, rgba(148, 163, 184, 0.22));
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}
.ns-dp-seg__opt {
  display: flex;
  margin: 0;
  cursor: pointer;
  position: relative;
}
.ns-dp-seg__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ns-dp-seg__opt span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ns-muted, #94a3b8);
  border-right: 1px solid var(--ns-border, rgba(148, 163, 184, 0.16));
  transition: background 0.15s ease, color 0.15s ease;
}
.ns-dp-seg__opt:last-child span {
  border-right: 0;
}
.ns-dp-seg__opt:hover span {
  color: var(--ns-text, #f8fafc);
}
.ns-dp-seg__opt:has(input:checked) span,
.ns-dp-seg__opt input:checked + span {
  background: rgba(8, 119, 255, 0.2);
  color: var(--ns-text, #f8fafc);
  box-shadow: inset 0 -2px 0 var(--ns-accent, #0877ff);
}

.ns-dp-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ns-text, #f8fafc);
  cursor: pointer;
  font-size: 0.95rem;
}
.ns-dp-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--ns-accent, #0877ff);
}

.dp-optional-mac .dp-field-mac,
.ns-dp-optional-mac .dp-field-mac,
.ns-dp-optional-mac .ns-dp-optional-mac__fields {
  display: none;
  margin-top: 0.75rem;
}
.dp-optional-mac.is-open .dp-field-mac,
.ns-dp-optional-mac.is-open .dp-field-mac,
.ns-dp-optional-mac.is-open .ns-dp-optional-mac__fields,
.dp-optional-mac:has(input[type="checkbox"]:checked) .dp-field-mac,
.ns-dp-optional-mac:has(input[type="checkbox"]:checked) .dp-field-mac,
.ns-dp-optional-mac:has(input[type="checkbox"]:checked) .ns-dp-optional-mac__fields {
  display: block;
}

.ns-dp-identity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ns-dp-identity-list .dp-field-identity + .dp-field-identity {
  margin-top: 0;
}

/* Plugin checkout fallback form-row polish */
body.woocommerce-checkout .dp-fulfillment-fields .form-row {
  margin: 0;
  padding: 0;
}
body.woocommerce-checkout .dp-fulfillment-fields label,
.dp-product-fulfillment-fields label {
  color: var(--ns-muted, #94a3b8);
  font-size: 0.92rem;
}
body.woocommerce-checkout .dp-fulfillment-fields .required {
  color: var(--ns-accent, #0877ff);
}
body.woocommerce-checkout .dp-fulfillment-fields .dp-field-provide-mac label,
.dp-product-fulfillment-fields .dp-field-provide-mac label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ns-text, #f8fafc);
  cursor: pointer;
}
@media (max-width: 520px) {
  .ns-dp-seg__options {
    grid-template-columns: 1fr;
  }
  .ns-dp-seg__opt span {
    border-right: 0;
    border-bottom: 1px solid var(--ns-border, rgba(148, 163, 184, 0.16));
  }
  .ns-dp-seg__opt:last-child span {
    border-bottom: 0;
  }
}
