/* =====================================================================
   qbwfileunlock.com - file size estimator widget
   ---------------------------------------------------------------------
   Scope: .sz  (every class namespaced "sz", every custom property
          namespaced "--sz-" so this file can be dropped into the
          landing page without touching .pricing-grid, .price-card,
          .trust, .step-icon, .num, .wf3 or any other existing rule)

   No external fonts, no images, no emoji.
   ===================================================================== */

/* ---------- design tokens (scoped to the component) ---------- */
.sz {
  --sz-blue: #a32020;
  --sz-blue-tint: rgba(163, 32, 32, 0.07);
  --sz-ink: #16110d;
  --sz-muted: #5d544c;
  --sz-card-bg: #ffffff;
  --sz-card-border: #e2bdb7;
  --sz-track: #edd0cb;

  --sz-pad: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  --sz-gap: clamp(1.25rem, 0.9rem + 1.8vw, 2.25rem);
  --sz-radius: 0.75rem;
}

/* ---------- component shell ---------- */
.sz,
.sz *,
.sz *::before,
.sz *::after {
  box-sizing: border-box;
}

.sz {
  margin: 0 0 1.5rem;
  color: var(--sz-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- card ---------- */
.sz-card {
  background: var(--sz-card-bg);
  border: 1px solid var(--sz-card-border);
  border-radius: var(--sz-radius);
  padding: var(--sz-pad);
}

.sz-title {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  color: var(--sz-ink);
  margin: 0 0 0.4rem;
}

.sz-sub {
  margin: 0 0 1.35rem;
  color: var(--sz-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* ---------- layout: stacked on mobile, side by side on desktop ---------- */
.sz-grid {
  display: grid;
  grid-template-columns: 1fr;          /* mobile first */
  gap: var(--sz-gap);
  align-items: start;
}

@media (min-width: 700px) {
  .sz-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ---------- controls column ---------- */
.sz-controls {
  min-width: 0;                        /* lets grid children shrink */
}

.sz-field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.sz-label {
  font-weight: 600;
  color: var(--sz-ink);
  font-size: 0.97rem;
}

.sz-size {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  font-weight: 700;
  color: var(--sz-blue);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  /* never let a long value be clipped */
  white-space: nowrap;
}

/* ---------- slider ---------- */
.sz-slider-wrap {
  padding: 0.35rem 0 0;
}

.sz-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: transparent;
  /* generous vertical hit area for touch */
  padding: 0;
  height: 2.25rem;
  cursor: pointer;
  touch-action: pan-y;                 /* let vertical page scroll still work */
}

/* WebKit / Blink thumb */
.sz-slider::-webkit-slider-runnable-track {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--sz-track);
  border: 1px solid var(--sz-card-border);
  /* The BLUE FILL showing how far along the slider is.
     --sz-fill is written by size_estimator.js as a percentage (0-100).
     Without this the track was uniformly grey and the customer could not
     see where they had slid to. */
  background-image: linear-gradient(
    to right,
    var(--sz-blue) 0%,
    var(--sz-blue) var(--sz-fill, 0%),
    var(--sz-track) var(--sz-fill, 0%),
    var(--sz-track) 100%
  );
}

/* The thumb is a 44x44 transparent hit area with the visible 26px circle
   painted inside it via an inset shadow. The finger target is the full
   44px; the user still sees the small, clean circle. */
.sz-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  margin-top: -1.375rem;              /* centres the 44px box on the track */
  border-radius: 50%;
  background: var(--sz-blue);
  border: 3px solid rgba(255, 255, 255, 0.9);
  /* paint the visible 26px circle, keep the outer ring transparent */
  box-shadow:
    inset 0 0 0 9px var(--sz-blue),
    0 1px 4px rgba(93, 20, 20, 0.28);
  cursor: grab;
}

.sz-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
}

/* Firefox thumb */
.sz-slider::-moz-range-track {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--sz-track);
  border: 1px solid var(--sz-card-border);
}

/* Firefox draws the filled portion in its own pseudo-element. Same
   --sz-fill percentage drives it, so the blue matches WebKit. */
.sz-slider::-moz-range-progress {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--sz-blue);
}

/* Firefox: same trick - 44px transparent box, 26px visible circle. */
.sz-slider::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sz-blue);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 0 0 9px var(--sz-blue),
    0 1px 4px rgba(93, 20, 20, 0.28);
  cursor: grab;
}

.sz-slider:active::-moz-range-thumb {
  cursor: grabbing;
}

/* Visible focus ring, mouse and keyboard */
.sz-slider:focus {
  outline: none;
}

.sz-slider:focus-visible {
  outline: 3px solid #a32020;
  outline-offset: 3px;
  border-radius: 999px;
}

/* Fallback for engines without :focus-visible */
.sz-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(163, 32, 32, 0.45);
}

.sz-slider:focus::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(163, 32, 32, 0.45);
}

/* ---------- band ladder ---------- */
.sz-ticks {
  position: relative;
  height: 2.35rem;
  margin-top: 0.5rem;
  /* the ticks row must not force the card wider than the viewport */
  max-width: 100%;
  overflow: hidden;
}

/* The boundary mark - a short vertical rule on the track. */
.sz-tickmark {
  position: absolute;
  top: 0;
  width: 2px;
  height: 0.55rem;
  margin-left: -1px;
  background: var(--sz-track);
  border-radius: 1px;
  pointer-events: none;
}

.sz-tickmark--active {
  background: var(--sz-blue);
  height: 0.7rem;
}

/* The text label. Left offset is measured in JS so labels never overlap
   and never spill outside the card. */
.sz-ticklabel {
  position: absolute;
  top: 0.72rem;
  font-size: 0.73rem;
  line-height: 1.25;
  color: var(--sz-muted);
  white-space: nowrap;
  pointer-events: none;
}

.sz-ticklabel--active {
  color: var(--sz-blue);
  font-weight: 700;
}

/* ---------- readout column ---------- */
.sz-readout {
  min-width: 0;
  text-align: center;
  background: var(--sz-blue-tint);
  border: 1px solid var(--sz-card-border);
  border-radius: var(--sz-radius);
  padding: 1rem 1.15rem;
}

@media (min-width: 700px) {
  .sz-readout {
    text-align: left;
    min-width: 13.5rem;
  }
}

.sz-tier {
  margin: 0 0 0.15rem;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  font-weight: 700;
  color: var(--sz-blue);
  line-height: 1.2;
  /* a long tier name must wrap, never clip */
  overflow-wrap: break-word;
}

.sz-price {
  margin: 0 0 0.3rem;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem);
  font-weight: 800;
  color: var(--sz-ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;                 /* "$499" / "£399" never wraps */
  overflow-wrap: normal;
}

.sz-band {
  margin: 0;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(163, 32, 32, 0.08);
  border: 1px solid var(--sz-card-border);
  color: var(--sz-muted);
  line-height: 1.4;
}

/* ---------- notes ---------- */
.sz-note {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--sz-muted);
  line-height: 1.55;
}

/* ---------- suppression: a file is picked, the exact price is known ----
   The estimator is a guess for someone who does not yet know their file
   size. Once a file has been picked the real quote (tier + price) is
   already on screen, so the estimator is hidden and one honest line
   stands in for it. Without this the page showed two different prices
   at the same time - "$89, Standard" above and "$49, Starter" below.

   The note is hidden by default and revealed only while the estimator
   is suppressed. It lives inside the estimator's own card so it
   occupies the same place in the layout. */
.sz-suppressed-note {
  display: none;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sz-ink);
  line-height: 1.55;
}

.sz-suppressed-note.is-visible {
  display: block;
}

/* While suppressed, the slider, the readout and the estimate notes are
   all hidden - the sub-line goes too, because it tells the customer to
   "Move the slider" and there is no slider on screen any more. The title
   stays, so the section keeps its accessible name (aria-labelledby). */
.sz.sz-suppressed .sz-grid,
.sz.sz-suppressed .sz-sub,
.sz.sz-suppressed .sz-note,
.sz.sz-suppressed .sz-disclaimer {
  display: none;
}

.sz-disclaimer {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sz-muted);
  line-height: 1.55;
  padding-top: 0.55rem;
  border-top: 1px solid var(--sz-card-border);
}

/* Screen-reader-only live announcer */
.sz-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- very narrow phones ---------- */
@media (max-width: 380px) {
  .sz-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .sz-readout {
    padding: 0.85rem 0.9rem;
  }

  .sz-ticklabel {
    font-size: 0.66rem;
  }
}

/* ---------------------------------------------------------------------
   Theme: the card surface.
   The landing page is the offer page's light system: white cards on the
   FBECEB-family canvas with a visible warm border.
   --------------------------------------------------------------------- */

/* ---------- light theme: the card surface ---------- */
.sz-card,
.sz-panel {
  background: #ffffff;
  border: 1px solid #e2bdb7;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/*SZ-FIT-STYLE:BEGIN*/
/* The tier line under the price.

   The slider already showed a price, but the text under it did not name
   the tier, so a customer moving the slider saw a number change with no
   indication of WHICH band they had landed in. This line names the tier
   for the size currently selected and says what that band usually
   represents.

   It deliberately says nothing about service levels: all three tiers get
   the same work - one administrator password replaced on one file - and
   only the file-size band differs. It must never promise a faster
   turnaround, priority handling or extra features.

   The tier name is already shown above, in .sz-tier. This line repeats
   it in a sentence, because the sentence is what a screen reader
   announces as one piece of information. */
.sz-fit {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--sz-muted);
  max-width: 34ch;
  margin-inline: auto;
  text-wrap: balance;
}
@media (min-width: 700px) {
  .sz-fit { margin-inline: 0; max-width: 30ch; }
}
.sz-fit strong { color: var(--sz-blue); font-weight: 700; }
/*SZ-FIT-STYLE:END*/
