/* ── NeuroField Product Accordions — v1.1.0 ──────────────────────────────── */
/*
 * Mirrors the site's button token system:
 *   --nf-btn-bg         gold gradient  (default state)
 *   --nf-btn-hover-bg   teal gradient  (hover state)
 *
 * Those vars are defined on the product page's wrapper by the theme.
 * Fallback values are provided so the plugin works even if the vars aren't present.
 */

:root {
  --nf-acc-gold:         #ECB62A;
  --nf-acc-gold-dark:    #CF9500;
  --nf-acc-teal:         #24B0BA;
  --nf-acc-teal-2:       #35d6c7;
  --nf-acc-navy:         #060a12;
  --nf-acc-dark:         #0f172a;
  --nf-acc-border:       rgba(255, 255, 255, 0.12);
  --nf-acc-text:         #ffffff;
  --nf-acc-text-muted:   rgba(255, 255, 255, 0.75);
  --nf-acc-radius:       6px;
  --nf-acc-speed:        200ms;

  /* Hover / open trigger — gold left fade */
  --nf-acc-open-bg: linear-gradient( 90deg, #DEAA25 0%, transparent 100% );
}

/* ── Outer wrapper ─────────────────────────────────────────────────────────── */

.nf-product-details-wrap {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── CTA Button (.nf-details-btn) ─────────────────────────────────────────── */
/*
 * Styled identically to .nf-login-to-purchase — gold gradient default,
 * teal gradient hover — so both buttons look like native site elements.
 */

.nf-details-button-wrap {
  display: flex;
}

.nf-details-btn {
  display:          inline-flex;
  align-items:      center;
  justify-content:  center;
  gap:              8px;
  padding:          10px 28px;
  background:       var( --nf-btn-bg,       linear-gradient( 172deg, #ECB62A 50%, #CF9500 100% ) );
  background-image: var( --nf-btn-bg,       linear-gradient( 172deg, #ECB62A 50%, #CF9500 100% ) );
  border:           1px solid var( --nf-btn-border, #ECB62A );
  border-radius:    var( --nf-btn-radius, 6px );
  color:            #ffffff !important;
  font-size:        1rem;
  font-weight:      600;
      text-shadow: 1px 1px 3px #00000070;
  letter-spacing:   0.02em;
  text-decoration:  none;
  cursor:           pointer;
  transition:       background var(--nf-acc-speed) ease,
                    background-image var(--nf-acc-speed) ease,
                    border-color     var(--nf-acc-speed) ease,
                    box-shadow       var(--nf-acc-speed) ease;
}

.nf-details-btn:hover,
.nf-details-btn:focus-visible {
  background:       var( --nf-btn-hover-bg,       linear-gradient( 90deg, #33c7df 0%, #35d6c7 100% ) );
  background-image: var( --nf-btn-hover-bg,       linear-gradient( 90deg, #33c7df 0%, #35d6c7 100% ) );
  border-color:     var( --nf-btn-hover-border, #33c7df );
  color:            #ffffff;
  text-decoration:  none;
  outline:          none;
  box-shadow:       0 4px 18px rgba(36, 176, 186, 0.3);
}

.nf-details-btn-icon {
  flex-shrink: 0;
  transition: transform var(--nf-acc-speed) ease;
}

.nf-details-btn:hover .nf-details-btn-icon,
.nf-details-btn:focus-visible .nf-details-btn-icon {
  transform: translateX(3px);
}

/* ── Section separator title ────────────────────────────────────────────────── */

.nf-acc-separator-title {
  font-size:      1.05rem;
  font-weight:    600;
  color:          #ffffff !important;
  margin:         28px 0 10px;
  padding:        0;
  line-height:    1.3;
  letter-spacing: 0.01em;
}

/* ── Accordion list ────────────────────────────────────────────────────────── */

.nf-product-accordions {
  display: flex;
  flex-direction: column;
  gap: 0;                   /* items share borders — no gap */
}

/* ── Item ──────────────────────────────────────────────────────────────────── */

.nf-acc-item {
  border: 1px solid var(--nf-acc-border);
  background: transparent;
  overflow: hidden;
  /* Stack without double-borders */
  margin-top: -1px;
}

.nf-acc-item:first-child { border-radius: var(--nf-acc-radius) var(--nf-acc-radius) 0 0; margin-top: 0; }
.nf-acc-item:last-child  { border-radius: 0 0 var(--nf-acc-radius) var(--nf-acc-radius); }
.nf-acc-item:only-child  { border-radius: var(--nf-acc-radius); }

/* ── Trigger button ────────────────────────────────────────────────────────── */

.nf-acc-trigger {
  width:            100%;
  display:          flex;
  align-items:      center;
  gap:              12px;
  padding:          24px 20px;
      background: rgb(16 27 48 / 58%) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;

  background-image: none;
  border:           none;
  cursor:           pointer;
  text-align:       left;
  color:            #ffffff;
  position:         relative;
  -webkit-tap-highlight-color: transparent;
}


/* Hover — gold left-fade */
.nf-acc-item.is-open > .nf-acc-trigger,
.nf-acc-trigger:hover {
    background-image: linear-gradient(90deg, var(--e-global-color-accent) 0%, #FFFFFF00 100%) !important;
}

.nf-acc-trigger:focus-visible {
  outline:          2px solid var(--nf-acc-gold);
  outline-offset:   -2px;
  background-image: var(--nf-acc-open-bg);
}

/* ── + / − Icon ────────────────────────────────────────────────────────────── */

.nf-acc-icon {
  flex-shrink: 0;
  width:       18px;
  height:      18px;
  position:    relative;
  color:       rgba(255, 255, 255, 0.6);
  transition:  color var(--nf-acc-speed) ease;
}

/* Horizontal bar — always present */
.nf-acc-icon::before {
  content:    '';
  position:   absolute;
  top:        50%;
  left:       0;
  width:      100%;
  height:     1.5px;
  background: currentColor;
  border-radius: 2px;
  transform:  translateY(-50%);
}

/* Vertical bar — present on closed (+ sign), hidden on open (− sign) */
.nf-acc-icon::after {
  content:    '';
  position:   absolute;
  top:        0;
  left:       50%;
  width:      1.5px;
  height:     100%;
  background: currentColor;
  border-radius: 2px;
  transform:  translateX(-50%);
  transition: transform var(--nf-acc-speed) ease,
              opacity   var(--nf-acc-speed) ease;
}

.nf-acc-item.is-open .nf-acc-icon { color: #ffffff; }
.nf-acc-item.is-open .nf-acc-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity:   0;
}

/* ── Title ─────────────────────────────────────────────────────────────────── */

.nf-acc-title {
    flex: 1;
        text-shadow: 1px 1px 4px rgba(51, 42.00000000000001, 18.000000000000004, 0.6);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color:var(--nf-acc-text);
}

/* ── Panel ─────────────────────────────────────────────────────────────────── */

.nf-acc-panel {
  display:    grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--nf-acc-speed) ease;
}

.nf-acc-panel:not([hidden]) {
  grid-template-rows: 1fr;
}

/* Override browser hidden='' so grid-row trick works */
.nf-acc-panel[hidden] {
  display: grid !important;
}

.nf-acc-body {
  overflow: hidden;
  padding:  0 20px;
}
.nf-acc-body p {
    margin-bottom: 0;
}
.nf-acc-body ul {
    padding-bottom: 20px;
}

.nf-acc-panel:not([hidden]) .nf-acc-body {
  padding: 25px 20px 20px;
    margin: 0;
    background: rgb(16 27 48 / 58%) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
}

.nf-acc-panel:not([hidden]) {
  border-top: 1px solid var(--nf-acc-border);
}

/* ── Body typography ───────────────────────────────────────────────────────── */

.nf-acc-body,
.nf-acc-body p {
  font-size:   1.1rem;
  line-height: 1.75;
  color:       var(--nf-acc-text-muted);
  margin:      0;
}

.nf-acc-body p:last-child { margin-bottom: 0; }

.nf-acc-body a {
  color:                  var(--nf-acc-teal-2);
  text-decoration:        underline;
  text-underline-offset:  2px;
  transition:             color var(--nf-acc-speed) ease;
}
.nf-acc-body a:hover { color: #ffffff; }

.nf-acc-body strong { color: #ffffff; font-weight: 600; }
.nf-acc-body em     { font-style: italic; }

.nf-acc-body ul,
.nf-acc-body ol {
  margin:  0.4em 0 0.5em 1.3em;
  padding: 0;
  color:   var(--nf-acc-text-muted);
}
.nf-acc-body li { margin-bottom: 0.3em; line-height: 1.65; }

/* ── Mobile ────────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .nf-acc-trigger { padding: 12px 16px; }
  .nf-acc-title   { font-size: 0.875rem; }
  .nf-acc-panel:not([hidden]) .nf-acc-body { padding: 4px 16px 16px; }
  .nf-details-btn { width: 100%; justify-content: center; }
}
