/* SIIK Version Picker: choose a version, see what's in it, one add-to-cart. Scoped to .svp */
.svp {
  --svp-accent: #8B5CF6;
  --svp-accent-2: #B197FF;
  --svp-text: #F4F4F8;
  --svp-muted: #A7AEC4;
  --svp-panel: rgba(18, 18, 30, .52);
  --svp-line: rgba(255, 255, 255, .1);
  --svp-ok: #8ff0b0;
  position: relative;
  padding: 16px;
  border-radius: 20px;
  color: var(--svp-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--svp-panel);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 40px rgba(0, 0, 0, .3);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
.svp *, .svp *::before, .svp *::after { box-sizing: border-box; }

.svp-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }

/* ---- options ---- */
.svp-options { container-type: inline-size; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.svp .svp-opt {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 10px 12px 10px 10px; border-radius: 12px;
  border: 1px solid var(--svp-line); background: rgba(255, 255, 255, .02);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.svp .svp-opt:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.svp .svp-opt:focus-visible { outline: 2px solid var(--svp-accent-2); outline-offset: 2px; }
.svp .svp-opt[aria-checked="true"] {
  border-color: var(--svp-accent);
  background: rgba(139, 92, 246, .14);
  box-shadow: inset 0 0 0 1px var(--svp-accent);
}
.svp-img { width: 44px; height: 52px; object-fit: contain; display: block; max-width: none; }
.svp-info { display: grid; gap: 2px; min-width: 0; }
.svp-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 700; font-size: 15px; line-height: 1.2; }
.svp-best { font-size: 11px; font-weight: 700; color: var(--svp-accent-2); }
.svp-desc { font-size: 12px; color: var(--svp-muted); line-height: 1.3; }
.svp-price { margin-top: 2px; font-size: 17px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.svp-price .woocommerce-price-suffix { display: none; }
.svp-price del { opacity: .5; font-size: .8em; font-weight: 500; margin-right: 6px; }
.svp-price ins { text-decoration: none; }
.svp-here {
  position: absolute; bottom: 10px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--svp-muted);
}
.svp .svp-opt[aria-checked="true"] .svp-here { color: var(--svp-accent-2); }
/* narrow cards: the tag would sit on the price */
@container (max-width: 440px) { .svp-here { display: none; } }

/* exactly three versions (the collections): the first one gets a row of its own, the other two share the next */
.svp .svp-opt:first-child:nth-last-child(3) { grid-column: 1 / -1; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 16px 14px 12px; }
.svp .svp-opt:first-child:nth-last-child(3) .svp-img { width: 64px; height: 72px; }
.svp .svp-opt:first-child:nth-last-child(3) .svp-name { font-size: 17px; }
.svp .svp-opt:first-child:nth-last-child(3) .svp-price { font-size: 20px; }

/* small boxes: one compact line per version instead of words stacking up */
@container (max-width: 480px) {
  .svp .svp-opt { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .svp-img { width: 36px; height: 44px; }
  .svp-name { font-size: 14px; }
  .svp-desc { display: none; }
  .svp-price { font-size: 15px; }
  .svp-price del { display: block; margin: 0 0 1px; }
  .svp .svp-opt:first-child:nth-last-child(3) { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .svp .svp-opt:first-child:nth-last-child(3) .svp-img { width: 52px; height: 60px; }
  .svp .svp-opt:first-child:nth-last-child(3) .svp-desc { display: block; }
  .svp .svp-opt:first-child:nth-last-child(3) .svp-price del { display: inline; margin: 0 6px 0 0; }
}

/* ---- pack without versions: price + one button ---- */
.svp--single .svp-single-price { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.svp--single .svp-single-price .woocommerce-price-suffix { font-size: 14px; font-weight: 500; color: var(--svp-muted); margin-left: 6px; }
.svp--single .svp-single-price del { opacity: .5; font-size: .6em; font-weight: 500; margin-right: 8px; }
.svp--single .svp-single-price ins { text-decoration: none; }
.svp--single .svp-msg:empty { display: none; }
.svp .svp-options[hidden] { display: none; }
.svp--single .svp-add { margin-top: 14px; }

/* ---- checklist ---- */
.svp-incl { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.svp-incl li { display: flex; align-items: center; gap: 8px; font-size: 14px; transition: opacity .2s, color .2s; }
.svp-mark { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(143, 240, 176, .14); }
.svp-mark::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--svp-ok); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.svp-incl li.is-off { color: var(--svp-muted); opacity: .55; }
.svp-incl li.is-off .svp-row-label { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.svp-incl li.is-off .svp-mark { background: rgba(255, 255, 255, .06); }
.svp-incl li.is-off .svp-mark::after { width: 8px; height: 2px; border: 0; background: var(--svp-muted); transform: none; }
.svp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---- message, button ---- */
.svp-msg { margin: 16px 0 0; min-height: 1.4em; font-size: 14px; color: var(--svp-muted); }
.svp-msg b { color: var(--svp-text); }
.svp .svp-add {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; margin-top: 12px; padding: 0 24px;
  border-radius: 12px; background: var(--svp-accent-2); color: #0D0D17;
  font-size: 17px; font-weight: 700; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: background-color .15s, transform .08s, opacity .15s;
}
.svp .svp-add:hover { background: #C7B6FF; }
.svp .svp-add:active { transform: translateY(1px); background: #9C7FF5; }
.svp .svp-add:focus-visible { outline: 2px solid var(--svp-text); outline-offset: 2px; }
.svp .svp-add.is-loading { opacity: .7; cursor: progress; }
.svp .svp-add.is-added { background: var(--svp-ok); }
.svp .svp-add.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(13, 13, 23, .3); border-top-color: #0D0D17;
  animation: svp-spin .7s linear infinite;
}
@keyframes svp-spin { to { transform: rotate(360deg); } }
.svp-status { margin: 8px 0 0; min-height: 1.3em; font-size: 13px; color: var(--svp-muted); text-align: center; }
.svp-status a { color: var(--svp-accent-2); font-weight: 600; }
.svp-status.is-error { color: #f09090; }
.svp-foot { margin: 4px 0 0; font-size: 12px; color: var(--svp-muted); text-align: center; }

@media (max-width: 420px) {
  .svp { padding: 12px; }
  .svp .svp-opt { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 10px 8px 10px 8px; }
  .svp-img { width: 36px; height: 44px; }
  .svp-desc { display: none; }
  .svp-name { font-size: 14px; }
  .svp-incl { grid-template-columns: 1fr; }
  .svp .svp-add { min-height: 52px; padding: 0 14px; font-size: 15px; }
}
/* ---- sticky buy bar (lives on <body>, so it carries its own copies of the colour variables) ---- */
.svp-bar {
  --svp-accent: #8B5CF6;
  --svp-accent-2: #B197FF;
  --svp-text: #F4F4F8;
  --svp-muted: #A7AEC4;
  --svp-panel: rgba(18, 18, 30, .52);
  --svp-bar-right: 16px;
  position: fixed; z-index: 9990;
  left: 50%; bottom: 16px;
  width: min(820px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 8px;
  border-radius: 18px;
  color: var(--svp-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), rgba(14, 14, 24, .78);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 48px rgba(0, 0, 0, .45);
  font-size: 15px; line-height: 1.3; text-align: left;
  transform: translate(-50%, calc(100% + 32px));
  opacity: 0; visibility: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s .28s;
}
.svp-bar.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s; }
.svp-bar *, .svp-bar *::before, .svp-bar *::after { box-sizing: border-box; }

.svp-bar .svp-bar-info {
  all: unset; box-sizing: border-box; cursor: pointer;
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 4px 8px 4px 4px; border-radius: 12px;
}
.svp-bar .svp-bar-info:hover { background: rgba(255, 255, 255, .05); }
.svp-bar .svp-bar-info:focus-visible { outline: 2px solid var(--svp-accent-2); outline-offset: 2px; }
.svp-bar-img { flex: none; width: 40px; height: 46px; object-fit: contain; display: block; max-width: none; }
.svp-bar-text { display: grid; gap: 1px; min-width: 0; }
.svp-bar-pack { font-size: 12px; color: var(--svp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svp-bar-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.svp-bar-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.svp-bar-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.svp-bar-change { display: none; font-size: 12px; color: var(--svp-accent-2); font-weight: 600; }

.svp-bar-vers { flex: none; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.svp-bar .svp-bar-v {
  all: unset; box-sizing: border-box; cursor: pointer;
  height: 32px; padding: 0 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--svp-muted);
  transition: background-color .15s, color .15s;
}
.svp-bar .svp-bar-v:hover { color: var(--svp-text); background: rgba(255, 255, 255, .06); }
.svp-bar .svp-bar-v[aria-pressed="true"] { background: var(--svp-accent); color: #fff; }
.svp-bar .svp-bar-v:focus-visible { outline: 2px solid var(--svp-accent-2); outline-offset: 1px; }

.svp-bar .svp-bar-add {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; min-width: 132px; padding: 0 20px; border-radius: 12px;
  background: var(--svp-accent-2); color: #0D0D17;
  font-size: 15px; font-weight: 700; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: background-color .15s, transform .08s;
}
.svp-bar .svp-bar-add:hover { background: #C7B6FF; }
.svp-bar .svp-bar-add:active { transform: translateY(1px); background: #9C7FF5; }
.svp-bar .svp-bar-add:focus-visible { outline: 2px solid var(--svp-text); outline-offset: 2px; }
.svp-bar .svp-bar-add.is-loading { opacity: .7; cursor: progress; }
.svp-bar .svp-bar-add.is-loading::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(13, 13, 23, .3); border-top-color: #0D0D17;
  animation: svp-spin .7s linear infinite;
}
.svp-bar .svp-bar-add.is-added { background: #8ff0b0; }

/* the side cart's basket, inside the bar */
.svp-bar .svp-bar-cart {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none; position: relative;
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--svp-text); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .15s, border-color .15s;
}
.svp-bar .svp-bar-cart:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); }
.svp-bar .svp-bar-cart:focus-visible { outline: 2px solid var(--svp-accent-2); outline-offset: 2px; }
.svp-bar .svp-bar-cart svg { display: block; }
.svp-bar-count:empty { display: none; }
.svp-bar-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--svp-accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px #0E0E18;
}
/* an Elementor popup that only holds an add-to-cart (an older sticky buy bar) would sit on top of ours */
.svp-has-bar .elementor-popup-modal:has(form.cart, .single_add_to_cart_button, .add_to_cart_button) { display: none !important; }
/* while the bar is up, the floating basket steps aside (the bar has its own) */
#fkcart-floating-toggler { transition: opacity .2s, transform .2s, visibility 0s; }
.svp-bar-on #fkcart-floating-toggler { opacity: 0 !important; visibility: hidden !important; transform: scale(.85); transition: opacity .2s, transform .2s, visibility 0s .2s; }

/* tablets: version chips no longer fit next to everything else */
@media (max-width: 900px) {
  .svp-bar-vers { display: none; }
  .svp-bar-change { display: block; }
}
/* phones: leave room for a floating cart button on the right */
@media (max-width: 767px) {
  .svp-bar {
    --svp-bar-right: 84px;
    left: 12px; right: var(--svp-bar-right); bottom: 16px; width: auto;
    gap: 8px; padding: 6px; border-radius: 16px;
    transform: translateY(calc(100% + 32px));
  }
  .svp-bar.is-shown { transform: translateY(0); }
  .svp-bar .svp-bar-info { gap: 8px; padding: 2px 4px 2px 2px; }
  .svp-bar-img { width: 34px; height: 40px; }
  .svp-bar-pack { display: none; }
  .svp-bar-line { flex-direction: column; gap: 0; }
  .svp-bar-name { font-size: 14px; }
  .svp-bar-price { font-size: 14px; }
  .svp-bar-change { display: none; }
  .svp-bar .svp-bar-add { height: 44px; min-width: 0; padding: 0 16px; font-size: 14px; }
  /* with the basket inside, the bar can use the full width */
  .svp-bar.has-cart { right: 12px; }
  .svp-bar .svp-bar-cart { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .svp *, .svp-bar, .svp-bar * { transition: none !important; animation: none !important; }
}

/* content that follows the picked version (see swapVariants in version-picker.js).
   Before the script runs, only the Full version's variant shows. */
.svp-when-sample:not(.svp-on), .svp-when-preset:not(.svp-on), .svp-when-construction:not(.svp-on), .svp-when-full.svp-off { display: none !important; }
.svp-on { animation: svp-fade .25s ease; }
@keyframes svp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .svp-on { animation: none; } }
