/* GENERATED FILE - do not edit.
   Built from sites/site1-appliance/assets/repair-or-replace-calculator.html
   by sites/site1-appliance/plugins/build-calculator-plugin.py
   Edit the widget, then re-run the builder. */
.rr {
    --rr-bg: #ffffff;
    --rr-surface: #f7f8fa;
    --rr-surface-2: #eef0f4;
    --rr-border: #d9dde4;
    --rr-border-strong: #b9c0cb;
    --rr-text: #16191f;
    --rr-muted: #5d6673;
    --rr-accent: #1f5fbf;
    --rr-repair: #1a7f52;
    --rr-repair-soft: #e6f4ed;
    --rr-close: #8a6100;
    --rr-close-soft: #fdf3dc;
    --rr-replace: #b0342c;
    --rr-replace-soft: #fbeceb;
    --rr-radius: 10px;
    --rr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  .rr[data-rr-theme="dark"] {
    color-scheme: dark;
    --rr-bg: #14171c; --rr-surface: #1b1f26; --rr-surface-2: #232830;
    --rr-border: #333a45; --rr-border-strong: #4a535f;
    --rr-text: #eef1f5; --rr-muted: #a3adba; --rr-accent: #6ea8fe;
    --rr-repair: #5fd39b; --rr-repair-soft: #142a20;
    --rr-close: #e8c46a; --rr-close-soft: #2c2413;
    --rr-replace: #f2857c; --rr-replace-soft: #2e1715;
  }

  .rr, .rr *, .rr *::before, .rr *::after { box-sizing: border-box; }
  
  .rr {
    font-family: var(--rr-font); color: var(--rr-text); background: var(--rr-bg);
    line-height: 1.5; -webkit-text-size-adjust: 100%;
  }
  .rr {
    max-width: 780px; margin: 0 auto; padding: 20px;
    border: 1px solid var(--rr-border); border-radius: var(--rr-radius); background: var(--rr-bg);
  }
  .rr-head { margin-bottom: 18px; }
  .rr-head h2 { margin: 0 0 6px; font-size: 1.32rem; line-height: 1.25; letter-spacing: -0.01em; }
  .rr-head p { margin: 0; color: var(--rr-muted); font-size: 0.9rem; }
  /* Only ever painted when the USER AGENT has scripting disabled -- not when a
     script fails to arrive. A caching plugin, a bundler or Cloudflare Rocket
     Loader that strips or breaks this script leaves scripting *enabled*, so
     <noscript> stays hidden and that reader still gets the empty page. This
     block is for the scripting-off reader only; the stripped-script case is a
     live-host configuration matter, not something the markup can answer.
     Every figure this widget prints is
     written by the script, so without it the reader gets an empty <select>, an
     em-dash verdict and three empty tables -- a page that reads as broken rather
     than as a tool that needs JavaScript. Styled as a notice, not as an error:
     the standalone document at /wp-content/uploads/.../repair-or-replace-calculator.html
     is what /tools/repair-or-replace-calculator/ currently redirects to, so this
     is a whole page for that reader, not one dead component on a fuller one. */
  .rr-noscript {
    margin: 0 0 16px; padding: 13px 14px; font-size: 0.9rem;
    border: 1px solid var(--rr-close); border-left-width: 3px;
    border-radius: 8px; background: var(--rr-close-soft);
  }
  .rr-noscript a { color: var(--rr-accent); }

  .rr-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  @media (max-width: 560px) { .rr-grid { grid-template-columns: 1fr; } }

  .rr-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .rr-field label { font-size: 0.82rem; font-weight: 600; }
  /* 0.75rem, not 0.74: rem is root-relative, so 0.74 rendered at 11.84px in
     the standalone document and inline under Kadence alike -- under the 12px
     floor Google's mobile "legible font sizes" check uses, on the spans that
     carry every source this widget cites. Contrast was already fine (5.81:1,
     AA). The label above sits at 13.12px, so the hierarchy is unchanged. */
  .rr-field .rr-hint { font-size: 0.75rem; color: var(--rr-muted); }
  .rr-field input, .rr-field select {
    font: inherit; font-size: 0.95rem; padding: 9px 10px;
    color: var(--rr-text); background: var(--rr-surface);
    border: 1px solid var(--rr-border-strong); border-radius: 7px; width: 100%; min-width: 0;
  }
  .rr-field input:focus, .rr-field select:focus { outline: 2px solid var(--rr-accent); outline-offset: 1px; }
  /* The "$" is anchored to the INPUT, not to the field.
     It used to hang off `.rr-money::before`, and `.rr-money` is the whole field
     -- label, input AND hint -- so `top: 50%` meant 50% of a box whose height
     depends on how far the hint wraps. On a 780px standalone document every
     hint is one line and it looked centered; at 375px the hints run three and
     four lines and the "$" slid down with them. Measured on the money post:
     +8px on the repair quote, +16px on the replacement price, and +52px and
     +51px on delivery and energy -- the last two landing OUTSIDE the input
     altogether, printed on top of the hint text, on all eight pages that embed
     this widget. `.rr-money-box` wraps the input alone, so the offset is now a
     property of the input's own box and cannot drift with the prose again. */
  .rr-money-box { position: relative; display: block; }
  .rr-money input { padding-left: 24px; }
  .rr-money-box::before {
    content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: var(--rr-muted); font-size: 0.95rem; pointer-events: none;
  }

  details.rr-panel { margin-top: 16px; border: 1px solid var(--rr-border); border-radius: 8px; background: var(--rr-surface); }
  details.rr-panel > summary { cursor: pointer; padding: 10px 12px; font-size: 0.85rem; font-weight: 600; list-style: none; }
  details.rr-panel > summary::-webkit-details-marker { display: none; }
  details.rr-panel > summary::before { content: "▸ "; color: var(--rr-muted); }
  details.rr-panel[open] > summary::before { content: "▾ "; }
  .rr-panel-body { padding: 0 12px 14px; }

  .rr-verdict { margin-top: 20px; padding: 16px 18px; border-radius: var(--rr-radius); border: 1px solid var(--rr-border); }
  .rr-verdict.is-repair { background: var(--rr-repair-soft); border-color: var(--rr-repair); }
  .rr-verdict.is-close  { background: var(--rr-close-soft);  border-color: var(--rr-close); }
  .rr-verdict.is-replace{ background: var(--rr-replace-soft);border-color: var(--rr-replace); }
  .rr-verdict h3 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -0.01em; }
  .rr-verdict.is-repair h3 { color: var(--rr-repair); }
  .rr-verdict.is-close h3 { color: var(--rr-close); }
  .rr-verdict.is-replace h3 { color: var(--rr-replace); }
  .rr-verdict p { margin: 0 0 10px; font-size: 0.95rem; }
  .rr-verdict p:last-child { margin-bottom: 0; }
  .rr-headline { font-size: 1.02rem; }
  .rr-headline strong { font-size: 1.12rem; }
  .rr-verdict .rr-split { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rr-border); font-size: 0.9rem; }

  .rr-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
  @media (max-width: 480px) { .rr-compare { grid-template-columns: 1fr; } }
  .rr-card { padding: 13px 14px; border: 1px solid var(--rr-border); border-radius: 8px; background: var(--rr-surface); }
  .rr-card h4 { margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rr-muted); }
  .rr-card .rr-big { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
  .rr-card .rr-per { font-size: 0.78rem; color: var(--rr-muted); font-weight: 400; }
  .rr-card .rr-sub { margin-top: 6px; font-size: 0.82rem; color: var(--rr-muted); }
  .rr-card.rr-winner { border-color: var(--rr-accent); box-shadow: inset 0 0 0 1px var(--rr-accent); }

  table.rr-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
  table.rr-table th, table.rr-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rr-border); }
  table.rr-table th { color: var(--rr-muted); font-weight: 600; }
  table.rr-table td.rr-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  table.rr-table tr.rr-total td { font-weight: 700; border-bottom: none; border-top: 2px solid var(--rr-border-strong); }

  .rr-flags { margin-top: 16px; padding: 13px 14px; border: 1px solid var(--rr-border); border-radius: 8px; background: var(--rr-surface); }
  .rr-flags h4 { margin: 0 0 8px; font-size: 0.85rem; }
  .rr-flags label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; margin-bottom: 6px; cursor: pointer; }
  .rr-flags input { margin-top: 3px; flex: 0 0 auto; }
  .rr-flag-out { margin-top: 10px; font-size: 0.87rem; }
  .rr-flag-out:empty { display: none; }
  .rr-flag-out div { margin-bottom: 8px; padding-left: 10px; border-left: 3px solid var(--rr-replace); }

  .rr-foot { margin-top: 16px; font-size: 0.76rem; color: var(--rr-muted); }
  .rr-foot p { margin: 0 0 6px; }
  .rr-foot a { color: var(--rr-accent); }
  .rr-verified { font-weight: 600; color: var(--rr-text); }
  .rr-reset {
    font: inherit; font-size: 0.8rem; margin-top: 14px; padding: 7px 12px; cursor: pointer;
    background: var(--rr-surface-2); color: var(--rr-text);
    border: 1px solid var(--rr-border-strong); border-radius: 7px;
  }
  .rr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- plugin-only: [repair_replace_calculator heading="hide"] --- */
.swf-rrc-nohead .rr-head h2 { position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
