/*
 * Slever Lab — canonical calculator design system
 *
 * DESIGN CONTRACT
 * -------------------------------------------------------------------------
 * This file is the single source of truth for the shared calculator shell
 * across the public and owner interfaces. Calculator-specific CSS should describe only
 * genuinely unique components (for example the BMI scale or biological-age
 * result factors), not redefine the shared page/grid/form system.
 *
 * Canonical values:
 *   Desktop working width        864px
 *   Desktop columns              50% / 50%
 *   Mobile breakpoint            <= 900px
 *   Page H1                      32px
 *   Step / major block H2        20px
 *   Regular descriptive text     13px
 *   Input + dropdown text        13px
 *   Input + dropdown height      40px
 *   Primary button height        52px
 *
 * Shared responsibilities of this file:
 *   - page width and vertical frame
 *   - two-column calculator grid
 *   - mobile one-column layout
 *   - common input/dropdown dimensions
 *   - common primary-button dimensions
 *   - shared info-column typography
 *
 * Not shared here:
 *   - calculator-specific charts/scales
 *   - result compositions that are unique to one calculator
 *   - compound controls with genuinely unique interaction/layout
 *
 * Public from v324. Owner mode may still supply private test defaults, but both
 * modes share this exact layout and visual system.
 */

:root{
  /* ----------------------------------------------------------------------
     PAGE FRAME
     ---------------------------------------------------------------------- */
  --calc-page-width:864px;       /* canonical desktop working width */
  --calc-page-gutter:16px;       /* minimum horizontal breathing room */
  --calc-page-top:48px;          /* content start below the site header */
  --calc-page-bottom:72px;

  /* ----------------------------------------------------------------------
     TWO-COLUMN GRID
     Keep both tracks equal. A calculator must not redefine these merely
     because its right-hand content happens to be longer or shorter.
     ---------------------------------------------------------------------- */
  --calc-grid-left:1fr;
  --calc-grid-right:1fr;
  --calc-column-padding-x:30px;
  --calc-column-padding-y:28px;

  /* ----------------------------------------------------------------------
     TYPOGRAPHY
     ---------------------------------------------------------------------- */
  --calc-title-size:32px;        /* page H1 */
  --calc-title-line-height:1.1;
  --calc-section-title-size:20px;/* questionnaire step / major block H2 */
  --calc-copy-size:13px;         /* regular descriptions / body copy */
  --calc-control-font-size:13px; /* entered values + dropdown text */
  --calc-field-label-size:13px;  /* labels above fields */
  --calc-info-title-size:14px;   /* “Что считаем?” */
  --calc-info-label-size:14px;   /* “Базовый обмен” etc. */
  --calc-info-copy-size:13px;    /* explanatory copy in the info column */

  /* ----------------------------------------------------------------------
     CONTROLS
     ---------------------------------------------------------------------- */
  --calc-control-height:40px;    /* inputs + dropdowns */
  --calc-control-radius:12px;
  --calc-form-gap:14px;
  --calc-field-gap:6px;
  --calc-primary-height:52px;
  --calc-primary-font-size:16px;

  /* ----------------------------------------------------------------------
     SURFACES / RHYTHM
     ---------------------------------------------------------------------- */
  --calc-card-radius:20px;
  --calc-card-gap:28px;
}

/* Responsive contract: desktop >= 901px, mobile/tablet <= 900px.
   CSS custom properties cannot be used directly in @media conditions, so
   the breakpoint is documented here and repeated literally below. */

/* =========================================================
   Canonical page frame
   ========================================================= */
@media (min-width:901px){
  body.slever-owner-ui.calculator-page .calculator-page-main{
    width:min(calc(100% - (var(--calc-page-gutter) * 2)), var(--calc-page-width)) !important;
    max-width:var(--calc-page-width) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-top:var(--calc-page-top) !important;
    padding-bottom:var(--calc-page-bottom) !important;
  }

  body.slever-owner-ui.calculator-page .calculator-title,
  body.slever-owner-ui.calculator-page .calculator-back,
  body.slever-owner-ui.calculator-page .calculator-card,
  body.slever-owner-ui.calculator-page .calculator-details{
    box-sizing:border-box !important;
    max-width:none !important;
  }

  body.slever-owner-ui.calculator-page .calculator-title,
  body.slever-owner-ui.calculator-page .calculator-back,
  body.slever-owner-ui.calculator-page .calculator-card,
  body.slever-owner-ui.calculator-page .calculator-details{
    width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

body.slever-owner-ui.calculator-page .calculator-title{
  font-size:var(--calc-title-size) !important;
  line-height:var(--calc-title-line-height) !important;
}

body.slever-owner-ui.calculator-page .calculator-card{
  padding:0 !important;
}

/* =========================================================
   Canonical two-column shell
   ========================================================= */
@media (min-width:901px){
  body.slever-owner-ui.calculator-page .calculator-grid:not(.is-result){
    display:grid !important;
    grid-template-columns:minmax(0,var(--calc-grid-left)) minmax(0,var(--calc-grid-right)) !important;
    column-gap:0 !important;
    align-items:stretch !important;
  }

  body.slever-owner-ui.calculator-page .calculator-grid:not(.is-result) > .calculator-form-column{
    grid-column:1 !important;
    grid-row:1 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    box-sizing:border-box !important;
    border-right:1px solid var(--line) !important;
    border-bottom:0 !important;
  }

  body.slever-owner-ui.calculator-page .calculator-grid:not(.is-result) > .calculator-side-column{
    grid-column:2 !important;
    grid-row:1 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    box-sizing:border-box !important;
  }

  /* Used by BMI: the right half exists even before a result is calculated. */
  body.slever-owner-ui.calculator-page .calculator-reserved-column{
    display:block !important;
  }
}

/* The hidden attribute must always win over legacy display:...!important rules. */
body.slever-owner-ui.calculator-page .calculator-side-column[hidden],
body.slever-owner-ui.calculator-page .calculator-details[hidden]{
  display:none !important;
}

/* =========================================================
   Canonical form + controls
   ========================================================= */
body.slever-owner-ui.calculator-page .calculator-form{
  gap:var(--calc-form-gap) !important;
}

body.slever-owner-ui.calculator-page .calculator-field{
  gap:var(--calc-field-gap) !important;
}

body.slever-owner-ui.calculator-page .calculator-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.slever-owner-ui.calculator-page .calculator-form select,
body.slever-owner-ui.calculator-page .calculator-form .owner-custom-select-trigger,
body.slever-owner-ui.calculator-page .calculator-form .finance-custom-trigger,
body.slever-owner-ui.calculator-page .calculator-select-trigger{
  height:var(--calc-control-height) !important;
  min-height:var(--calc-control-height) !important;
  box-sizing:border-box !important;
  font-size:var(--calc-control-font-size) !important;
}

body.slever-owner-ui.calculator-page .calculator-form .owner-custom-select-option,
body.slever-owner-ui.calculator-page .calculator-form .finance-custom-option,
body.slever-owner-ui.calculator-page .calculator-form .finance-custom-option-title,
body.slever-owner-ui.calculator-page .calculator-form .finance-custom-option-subtitle,
body.slever-owner-ui.calculator-page .calculator-select-option{
  font-size:var(--calc-control-font-size) !important;
}

body.slever-owner-ui.calculator-page .calculator-form .input-wrap .unit{
  top:50% !important;
  transform:translateY(-50%) !important;
}

body.slever-owner-ui.calculator-page .calculator-primary-button{
  height:var(--calc-primary-height) !important;
  min-height:var(--calc-primary-height) !important;
  font-size:var(--calc-primary-font-size) !important;
}

/* =========================================================
   Canonical information column typography
   ========================================================= */
body.slever-owner-ui.calculator-page .calculator-info-title{
  font-size:var(--calc-info-title-size) !important;
  line-height:1.4 !important;
  color:var(--text) !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
}

body.slever-owner-ui.calculator-page .calculator-info-label{
  font-size:var(--calc-info-label-size) !important;
  line-height:1.4 !important;
  color:var(--text) !important;
}

body.slever-owner-ui.calculator-page .calculator-info-copy{
  font-size:var(--calc-info-copy-size) !important;
  color:var(--muted) !important;
}

body.slever-owner-ui.calculator-page .calculator-step-title{
  font-size:var(--calc-section-title-size) !important;
  line-height:1.2 !important;
  letter-spacing:-.015em !important;
}

/* =========================================================
   Canonical mobile shell
   ========================================================= */
@media (max-width:900px){
  :root{
    --calc-field-label-size:15px;
    --calc-control-font-size:16px;
    --calc-info-title-size:17px;
    --calc-info-label-size:16px;
    --calc-info-copy-size:15px;
  }

  body.slever-owner-ui.calculator-page .calculator-page-main{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    overflow-x:hidden !important;
  }

  body.slever-owner-ui.calculator-page .calculator-title,
  body.slever-owner-ui.calculator-page .calculator-back{
    margin-left:12px !important;
    margin-right:12px !important;
  }

  body.slever-owner-ui.calculator-page .calculator-card{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    border-left:0 !important;
    border-right:0 !important;
    border-radius:0 !important;
    box-sizing:border-box !important;
  }

  body.slever-owner-ui.calculator-page .calculator-grid:not(.is-result){
    display:grid !important;
    grid-template-columns:1fr !important;
  }

  body.slever-owner-ui.calculator-page .calculator-grid:not(.is-result) > .calculator-form-column{
    grid-column:1 !important;
    grid-row:auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    border-right:0 !important;
  }

  body.slever-owner-ui.calculator-page .calculator-grid:not(.is-result) > .calculator-side-column{
    grid-column:1 !important;
    grid-row:auto !important;
  }

  /* BMI's empty desktop half disappears on mobile until it has a result. */
  body.slever-owner-ui.calculator-page .calculator-reserved-column:not(.visible){
    display:none !important;
  }

  body.slever-owner-ui.calculator-page .calculator-reserved-column.visible{
    display:block !important;
  }

  body.slever-owner-ui.calculator-page .calculator-details{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

/* =========================================================
   Small unique owner components
   ========================================================= */
/* Biological age uses its legacy single-column result composition. */
body.slever-owner-ui.calculator-page .bio-age-grid.is-result{
  display:block !important;
}

/* v325: canonical calorie activity option typography */
body.slever-owner-ui.calculator-page.calories-page .calories-owner-activity-option span{
  font-size:var(--calc-copy-size) !important;
}

/* v327: BMI — keep the primary CTA directly under the inputs.
   Legacy style.css used a full-height flex form with margin-top:auto, which
   pushed the button to the bottom of the left column. The canonical BMI form
   keeps the same 14px rhythm between field 1 → field 2 → CTA. */
body.slever-owner-ui.calculator-page .bmi-calc-column .calculator-form{
  display:grid !important;
  height:auto !important;
  min-height:0 !important;
  align-content:start !important;
}

body.slever-owner-ui.calculator-page .bmi-calc-column .calculator-form .error:empty{
  display:none !important;
}

body.slever-owner-ui.calculator-page .bmi-calc-column .calculator-form > .calculator-primary-button{
  margin-top:0 !important;
  margin-bottom:0 !important;
}

/* v331: BMI pre-result state — no decorative illustration.
   The empty right half stretches to exactly the form row height; the legacy
   310px minimum is removed so the card ends directly under the primary CTA. */
@media (min-width:901px){
  body.slever-owner-ui.calculator-page .bmi-main-grid:not(.is-result){
    min-height:0 !important;
  }

  body.slever-owner-ui.calculator-page .bmi-result-panel:not(.show-result){
    padding:0 !important;
  }
}

/* v341: calories results hierarchy on desktop and mobile.
   Primary result = weight loss. Support sits directly under the hero.
   Maintenance + gain stay together; the factor breakdown moves below them.
   Non-total factor rows use one quiet typographic level. */
body.slever-owner-ui.calculator-page.calories-page .calories-factor-item:not(.calories-factor-total) > span,
body.slever-owner-ui.calculator-page.calories-page .calories-factor-item:not(.calories-factor-total) > strong,
body.slever-owner-ui.calculator-page.calories-page .calories-factor-item:not(.calories-factor-total) > small{
  font-size:11px !important;
  line-height:1.3 !important;
  font-weight:400 !important;
}

body.slever-owner-ui.calculator-page.calories-page .calories-factor-item:not(.calories-factor-total) > strong{
  margin-top:3px !important;
}

@media (min-width:901px){
  body.slever-owner-ui.calculator-page.calories-page .calories-support-desktop{
    margin-top:12px !important;
    margin-bottom:18px !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    margin-top:0 !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-activity-result{
    margin-top:18px !important;
  }
}

@media (max-width:900px){
  body.slever-owner-ui.calculator-page.calories-page #calories-result-panel.visible{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    column-gap:10px !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-primary{
    grid-column:1 / -1 !important;
    order:1 !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-primary .calories-result-main{
    padding:4px 0 18px !important;
    border-bottom:1px solid var(--line) !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-support-mobile:not([hidden]){
    display:flex !important;
    grid-column:1 / -1 !important;
    order:2 !important;
    width:100% !important;
    margin:12px 0 0 !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-support-mobile .calories-support-button{
    width:100% !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-support-desktop{
    display:none !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-grid{
    display:contents !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-maintenance-card{
    grid-column:1 !important;
    order:3 !important;
    min-width:0 !important;
    margin-top:18px !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-gain{
    grid-column:2 !important;
    order:4 !important;
    min-width:0 !important;
    margin-top:18px !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-maintenance-card > span,
  body.slever-owner-ui.calculator-page.calories-page .calories-result-gain > span{
    min-height:32px !important;
    font-size:12px !important;
    line-height:1.35 !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-maintenance-card .calories-result-value-row,
  body.slever-owner-ui.calculator-page.calories-page .calories-result-gain .calories-result-value-row{
    align-items:flex-end !important;
    gap:4px !important;
    margin-top:7px !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-maintenance-card .calories-result-value-row > strong,
  body.slever-owner-ui.calculator-page.calories-page .calories-result-gain .calories-result-value-row > strong{
    font-size:27px !important;
    line-height:1 !important;
    letter-spacing:-.03em !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-maintenance-card .calories-result-value-row > small,
  body.slever-owner-ui.calculator-page.calories-page .calories-result-gain .calories-result-value-row > small{
    margin-bottom:0 !important;
    font-size:11px !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-result-maintenance-card .calories-macros,
  body.slever-owner-ui.calculator-page.calories-page .calories-result-gain .calories-macros{
    margin-top:10px !important;
    padding-top:9px !important;
    border-top:1px solid var(--line) !important;
    font-size:11.5px !important;
    white-space:nowrap !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-activity-result{
    grid-column:1 / -1 !important;
    order:5 !important;
    margin-top:18px !important;
  }


  body.slever-owner-ui.calculator-page.calories-page .calories-result-author-note{
    grid-column:1 / -1 !important;
    order:6 !important;
    margin-top:16px !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-factor-item:not(.calories-factor-total){
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) auto !important;
    align-items:baseline !important;
    column-gap:8px !important;
    row-gap:0 !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-factor-item:not(.calories-factor-total) > strong{
    min-width:0 !important;
    text-align:left !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-factor-item:not(.calories-factor-total) > small{
    margin-top:0 !important;
    white-space:nowrap !important;
    text-align:right !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-factor-total{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    text-align:left !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-factor-total > span,
  body.slever-owner-ui.calculator-page.calories-page .calories-factor-total > strong{
    font-size:11px !important;
    line-height:1.3 !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-factor-total > strong{
    margin-top:0 !important;
    margin-left:auto !important;
    text-align:right !important;
  }
}



/* v343: credit payment schedule — owner desktop only. */
body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle,
body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule{
  display:none !important;
}

@media (min-width:901px){
  body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle{
    width:100%;
    min-height:42px;
    margin:14px 0 0;
    padding:0 14px;
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    color:var(--green-dark);
    font:inherit;
    font-size:14px;
    font-weight:650;
    cursor:pointer;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle:hover{
    background:var(--green-soft);
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle:focus-visible{
    outline:2px solid var(--green);
    outline-offset:2px;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle-arrow{
    position:absolute;
    top:50%;
    right:16px;
    width:8px;
    height:8px;
    flex:0 0 auto;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:translateY(-50%) rotate(45deg);
    transition:transform .18s ease;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow{
    transform:translateY(-50%) rotate(225deg);
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule:not([hidden]){
    display:block !important;
    margin-top:22px !important;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule-heading{
    padding:22px 24px 18px;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule-heading h2{
    margin:0;
    font-size:20px;
    line-height:1.2;
    letter-spacing:-.015em;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table-wrap{
    width:100%;
    overflow:visible;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    table-layout:fixed;
    font-size:14px;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table th,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table td{
    padding:15px 18px;
    text-align:right;
    vertical-align:middle;
    white-space:nowrap;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table th:first-child,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table td:first-child{
    width:18%;
    text-align:left;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table thead th{
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    background:var(--green-soft);
    color:var(--text);
    font-weight:700;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tbody td{
    border-bottom:1px solid var(--line);
    color:var(--text);
    font-variant-numeric:tabular-nums;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tbody tr:last-child td{
    border-bottom:0;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tbody tr:first-child td{
    color:var(--muted);
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot th,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot td{
    padding:16px 18px;
    border-top:1px solid var(--line);
    background:var(--green-soft);
    color:var(--text);
    font-weight:700;
    font-variant-numeric:tabular-nums;
    text-align:right;
    white-space:nowrap;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot th{
    text-align:left;
  }
}

/* v344: credit issue date, repayment type and partial repayment — owner calculator. */
body.slever-owner-ui.calculator-page.credit-page .credit-labelled-field{
  display:flex;
  flex-direction:column;
  gap:6px !important;
}

body.slever-owner-ui.calculator-page.credit-page .credit-field-label{
  display:block;
  margin:0 2px;
  color:var(--muted);
  font-size:12px;
  line-height:1.25;
  font-weight:600;
}

body.slever-owner-ui.calculator-page.credit-page .credit-labelled-field > input[type="date"]{
  width:100%;
}

body.slever-owner-ui.calculator-page.credit-page .credit-full-select{
  width:100%;
  max-width:none;
  flex:1 1 auto;
}

body.slever-owner-ui.calculator-page.credit-page .credit-full-select > .finance-custom-trigger{
  width:100%;
  border:1px solid #cfd9d1;
  border-radius:12px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-full-select > .finance-custom-menu{
  left:0;
  right:0;
  min-width:100%;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-repayment{
  display:block;
  width:100%;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-toggle{
  width:100%;
  min-height:42px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  border:1px dashed #b9c9bc;
  border-radius:12px;
  background:#fff;
  color:var(--green-dark);
  font:inherit;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-toggle:hover{
  background:var(--green-soft);
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-toggle:focus-visible,
body.slever-owner-ui.calculator-page.credit-page .credit-extra-remove:focus-visible{
  outline:2px solid var(--green);
  outline-offset:2px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-toggle[hidden],
body.slever-owner-ui.calculator-page.credit-page .credit-extra-panel[hidden]{
  display:none !important;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-plus{
  font-size:20px;
  line-height:1;
  font-weight:400;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-panel{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8faf8;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-heading > strong{
  color:var(--text);
  font-size:14px;
  line-height:1.3;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-remove{
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:12px;
  cursor:pointer;
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-remove:hover{
  color:var(--text);
}

body.slever-owner-ui.calculator-page.credit-page .credit-extra-note{
  margin:-2px 2px 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}

@media (min-width:901px){
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tr.has-extra-repayment td{
    background:#f8fbf8;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-extra-badge{
    display:block;
    margin-top:4px;
    color:var(--green-dark);
    font-size:10px;
    line-height:1.2;
    font-weight:650;
    white-space:normal;
  }
}

/* v345: custom credit calendar + repayment calculation fix. */
body.slever-owner-ui.calculator-page.credit-page .credit-date-picker{
  position:relative;
  width:100%;
}

body.slever-owner-ui.calculator-page.credit-page .credit-date-trigger{
  width:100%;
  height:var(--calc-control-height);
  min-height:var(--calc-control-height);
  padding:0 12px 0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-sizing:border-box;
  border:1px solid #cfd9d1;
  border-radius:var(--calc-control-radius);
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:var(--calc-control-font-size);
  line-height:1;
  text-align:left;
  cursor:pointer;
}

body.slever-owner-ui.calculator-page.credit-page .credit-date-trigger:hover{
  border-color:#afc1b3;
}

body.slever-owner-ui.calculator-page.credit-page .credit-date-trigger:focus-visible{
  outline:2px solid var(--green);
  outline-offset:2px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  color:var(--text);
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-icon svg{
  display:block;
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-popover[hidden]{
  display:none !important;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-popover{
  position:absolute;
  z-index:80;
  top:calc(100% + 8px);
  left:0;
  width:286px;
  padding:14px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 14px 34px rgba(16, 38, 23, .14);
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-header{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 34px;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-month{
  color:var(--text);
  font-size:14px;
  line-height:1.2;
  font-weight:700;
  text-align:center;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-nav{
  width:34px;
  height:34px;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-nav:hover{
  background:var(--green-soft);
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-weekdays,
body.slever-owner-ui.calculator-page.credit-page .credit-calendar-days{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:4px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-weekdays{
  margin-bottom:4px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-weekdays span{
  display:flex;
  align-items:center;
  justify-content:center;
  height:24px;
  color:var(--muted);
  font-size:10px;
  line-height:1;
  font-weight:600;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-day,
body.slever-owner-ui.calculator-page.credit-page .credit-calendar-spacer{
  width:32px;
  height:32px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-day{
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:12px;
  line-height:1;
  cursor:pointer;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-day:hover:not(:disabled){
  background:var(--green-soft);
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-day.is-today:not(.is-selected){
  box-shadow:inset 0 0 0 1px #b8cabd;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-day.is-selected{
  background:var(--green);
  color:#fff;
  font-weight:700;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-day:disabled{
  color:#c7cec9;
  cursor:default;
}

@media (max-width:900px){
  body.slever-owner-ui.calculator-page.credit-page .credit-calendar-popover{
    width:min(286px, calc(100vw - 48px));
  }
}

/* v346: credit additions are shared by owner/public and work on desktop + mobile. */
body.slever-owner-ui.finance-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

body.slever-owner-ui.finance-page .finance-main{
  flex:1 0 auto;
}

body.slever-owner-ui.finance-page .site-legal-footer{
  flex:0 0 auto;
  margin-top:auto;
}


/* Let the custom date calendar escape the credit card instead of being clipped. */
body.slever-owner-ui.calculator-page.credit-page .finance-card,
body.slever-owner-ui.calculator-page.credit-page .calculator-grid{
  overflow:visible;
}

/* The schedule is now available on both desktop and mobile. */
body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle{
  width:100%;
  min-height:42px;
  margin:14px 0 0;
  padding:0 14px;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--green-dark);
  font:inherit;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule[hidden]{
  display:none !important;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule:not([hidden]){
  display:block !important;
  margin-top:22px !important;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule-heading{
  padding:22px 24px 18px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule-heading h2{
  margin:0;
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.015em;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table-wrap{
  width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table{
  width:100%;
  min-width:700px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  font-size:14px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table th,
body.slever-owner-ui.calculator-page.credit-page .credit-payment-table td{
  padding:15px 18px;
  text-align:right;
  vertical-align:middle;
  white-space:nowrap;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table th:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-payment-table td:first-child{
  width:18%;
  text-align:left;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table thead th{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--green-soft);
  color:var(--text);
  font-weight:700;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tbody td{
  border-bottom:1px solid var(--line);
  color:var(--text);
  font-variant-numeric:tabular-nums;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tbody tr:last-child td{
  border-bottom:0;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tbody tr:first-child td{
  color:var(--muted);
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot th,
body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot td{
  padding:16px 18px;
  border-top:1px solid var(--line);
  background:var(--green-soft);
  color:var(--text);
  font-weight:700;
  font-variant-numeric:tabular-nums;
  text-align:right;
  white-space:nowrap;
}

body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot th{
  text-align:left;
}

/* A calmer, site-native date calendar. The calendar icon itself is unchanged. */
body.slever-owner-ui.calculator-page.credit-page .credit-calendar-popover{
  width:min(320px, 100%);
  padding:12px;
  border-color:#d7e1d9;
  border-radius:14px;
  box-shadow:0 12px 28px rgba(23,34,26,.12);
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-header{
  grid-template-columns:36px minmax(0,1fr) 36px;
  margin-bottom:8px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-nav{
  width:36px;
  height:36px;
  border-radius:10px;
  font-size:22px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-weekdays,
body.slever-owner-ui.calculator-page.credit-page .credit-calendar-days{
  gap:2px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-weekdays span{
  height:28px;
  font-size:11px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-day,
body.slever-owner-ui.calculator-page.credit-page .credit-calendar-spacer{
  width:100%;
  height:36px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-day{
  border-radius:10px;
  font-size:13px;
}

body.slever-owner-ui.calculator-page.credit-page .credit-calendar-day.is-today:not(.is-selected){
  color:var(--green-dark);
  box-shadow:inset 0 0 0 1px #a9c4af;
}

@media (max-width:900px){
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule:not([hidden]){
    margin-top:16px !important;
    border-radius:14px;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-schedule-heading{
    padding:18px 16px 14px;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table{
    min-width:660px;
    font-size:13px;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table th,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table td,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot th,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot td{
    padding:13px 14px;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-calendar-popover{
    left:0;
    right:auto;
    width:100%;
    max-width:none;
  }
}

/* v348 — mobile credit result flow. Desktop canonical layout stays unchanged. */
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor{
  display:none;
}

@media (max-width:900px){
  body.slever-owner-ui.calculator-page.credit-page.credit-result-ready:not(.credit-mobile-editing) .calculator-form-column{
    display:none !important;
  }

  body.slever-owner-ui.calculator-page.credit-page.credit-result-ready:not(.credit-mobile-editing) .calculator-grid{
    display:block !important;
  }

  body.slever-owner-ui.calculator-page.credit-page.credit-mobile-editing .calculator-grid{
    display:block !important;
  }

  body.slever-owner-ui.calculator-page.credit-page.credit-mobile-editing .calculator-form-column{
    display:block !important;
    border-bottom:0 !important;
  }

  body.slever-owner-ui.calculator-page.credit-page.credit-mobile-editing .calculator-result-column,
  body.slever-owner-ui.calculator-page.credit-page.credit-mobile-editing .calculator-info-column{
    display:none !important;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle-arrow{
    position:absolute;
    top:50%;
    right:16px;
    width:8px;
    height:8px;
    flex:0 0 8px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:translateY(-50%) rotate(45deg);
    transition:transform .18s ease;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
  body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
    transform:translateY(-50%) rotate(225deg);
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate{
    width:100%;
    min-height:42px;
    height:42px;
    margin:10px 0 0;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    color:var(--green-dark);
    font:inherit;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    box-sizing:border-box;
    text-align:center;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor:not([hidden]){
    position:relative;
    width:100%;
    min-height:42px;
    height:42px;
    margin:0 0 12px;
    padding:0 42px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:12px;
    box-sizing:border-box;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    color:var(--green-dark);
    font:inherit;
    font-size:14px;
    font-weight:650;
    cursor:pointer;
    text-align:center;
  }
}

/* v350: denser owner mobile credit payment schedule. */
@media (max-width:900px){
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table{
    width:max-content;
    min-width:540px;
    table-layout:auto;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table th,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table td,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot th,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table tfoot td{
    padding:10px 8px;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table th:first-child,
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table td:first-child{
    width:96px;
    min-width:96px;
  }

  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table th:not(:first-child),
  body.slever-owner-ui.calculator-page.credit-page .credit-payment-table td:not(:first-child){
    min-width:94px;
  }
}

/* v354: owner credit result controls use the same true-centered labels as public. */
body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor:not([hidden]){
  display:grid !important;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  justify-content:stretch;
  gap:0;
  padding:0 14px;
  text-align:center;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle > span:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor > span:first-child{
  grid-column:2;
  justify-self:center;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle-arrow{
  position:static;
  grid-column:3;
  justify-self:end;
  transform:rotate(45deg);
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:rotate(225deg);
}


/* v356: owner credit result controls — centered content band, common left text edge. */
body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor:not([hidden]),
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate,
body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button{
  display:grid !important;
  grid-template-columns:1fr 150px 1fr;
  align-items:center;
  justify-content:stretch !important;
  column-gap:8px;
  padding:0 14px !important;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle > span:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor > span:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate > span,
body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button > span{
  grid-column:2;
  justify-self:stretch;
  width:150px;
  text-align:left;
  white-space:nowrap;
}

body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button svg{
  grid-column:1;
  justify-self:end;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle-arrow{
  position:static;
  grid-column:3;
  justify-self:start;
  transform:rotate(45deg);
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:rotate(225deg);
}


/* v357: owner credit result CTAs match public alignment. */
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate{
  display:none !important;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor:not([hidden]),
body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button{
  position:relative;
  display:grid !important;
  grid-template-columns:1fr 150px 1fr;
  align-items:center;
  justify-content:stretch !important;
  column-gap:8px;
  padding:0 14px !important;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle > span:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor > span:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button > span{
  grid-column:2;
  width:150px;
  justify-self:stretch;
  text-align:left;
  white-space:nowrap;
}

body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button svg{
  grid-column:1;
  justify-self:end;
  margin-right:0;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle-arrow{
  position:absolute;
  top:50%;
  right:16px;
  grid-column:auto;
  justify-self:auto;
  transform:translateY(-50%) rotate(45deg);
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:translateY(-50%) rotate(225deg);
}


/* v358: owner credit result controls use full-button centering too. */
body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor:not([hidden]),
body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate{
  position:relative;
  display:flex !important;
  align-items:center;
  justify-content:center !important;
  padding:0 14px !important;
  box-sizing:border-box;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle > span:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor > span:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button > span,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate > span{
  position:absolute;
  left:50%;
  width:150px;
  transform:translateX(-50%);
  text-align:left;
  white-space:nowrap;
}

body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button svg{
  position:absolute;
  left:calc(50% - 99px);
  top:50%;
  width:16px;
  height:16px;
  transform:translateY(-50%);
  margin:0 !important;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle-arrow{
  position:absolute;
  top:50%;
  right:16px;
  left:auto;
  transform:translateY(-50%) rotate(45deg);
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:translateY(-50%) rotate(225deg);
}

body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate{
  display:none !important;
}

@media(max-width:900px){
  body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate{
    display:flex !important;
  }
}


/* v359: owner preview follows the same full-button label centering as public. */
body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor:not([hidden]),
body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate{
  position:relative;
  display:flex !important;
  align-items:center;
  justify-content:center !important;
  box-sizing:border-box;
}
body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle > span:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor > span:first-child,
body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button > span,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate > span{
  position:absolute;
  left:50%;
  width:auto;
  max-width:calc(100% - 88px);
  transform:translateX(-50%);
  text-align:center;
  white-space:nowrap;
}
body.slever-owner-ui.calculator-page.credit-page .credit-support-button.calories-support-button svg{
  position:absolute;
  left:calc(50% - 88px);
  top:50%;
  width:16px;
  height:16px;
  transform:translateY(-50%);
  margin:0 !important;
}
body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle-arrow{
  position:absolute;
  top:50%;
  right:16px;
  left:auto;
  transform:translateY(-50%) rotate(45deg);
}
body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle.is-open .credit-schedule-toggle-arrow,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor.is-open .credit-schedule-toggle-arrow{
  transform:translateY(-50%) rotate(225deg);
}
@media(min-width:901px){
  body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate{
    display:none !important;
  }
}
@media(max-width:900px){
  body.slever-owner-ui.calculator-page.credit-page .credit-mobile-recalculate{
    display:flex !important;
  }
}


/* v362/v371 — shared calculator typography.
   Desktop stays compact; mobile values are overridden once via the canonical tokens above. */
body.slever-owner-ui.calculator-page .calculator-back,
body.slever-owner-ui.calculator-page .author-note-content p,
body.slever-owner-ui.calculator-page .source-list,
body.slever-owner-ui.calculator-page .source-list a{
  font-size:13px !important;
}

body.slever-owner-ui.calculator-page .calculator-form label{
  font-size:var(--calc-field-label-size) !important;
}

body.slever-owner-ui.calculator-page .calculator-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.slever-owner-ui.calculator-page .calculator-form select,
body.slever-owner-ui.calculator-page .calculator-form .owner-custom-select-trigger,
body.slever-owner-ui.calculator-page .calculator-form .owner-custom-select-option,
body.slever-owner-ui.calculator-page .calculator-form .finance-custom-trigger,
body.slever-owner-ui.calculator-page .calculator-form .finance-custom-option,
body.slever-owner-ui.calculator-page .calculator-form .finance-custom-option-title,
body.slever-owner-ui.calculator-page .calculator-form .finance-custom-option-subtitle,
body.slever-owner-ui.calculator-page .calculator-select-trigger,
body.slever-owner-ui.calculator-page .calculator-select-option{
  font-size:var(--calc-control-font-size) !important;
}

body.slever-owner-ui.calculator-page .calculator-info-title{
  font-size:var(--calc-info-title-size) !important;
}

body.slever-owner-ui.calculator-page .calculator-info-label{
  font-size:var(--calc-info-label-size) !important;
}

body.slever-owner-ui.calculator-page .calculator-info-copy{
  font-size:var(--calc-info-copy-size) !important;
}

body.slever-owner-ui.calculator-page.credit-page .credit-schedule-toggle,
body.slever-owner-ui.calculator-page.credit-page .credit-extra-toggle,
body.slever-owner-ui.calculator-page.credit-page .credit-payment-table,
body.slever-owner-ui.calculator-page.credit-page .credit-mobile-schedule-anchor,
body.slever-owner-ui.calculator-page.credit-page .mortgage-download-toggle{
  font-size:13px !important;
}

/* v363 — calories mobile: one consistent 18px rhythm between result sections */
@media(max-width:900px){
  body.slever-owner-ui.calculator-page.calories-page .calories-result-maintenance-card,
  body.slever-owner-ui.calculator-page.calories-page .calories-result-gain,
  body.slever-owner-ui.calculator-page.calories-page .calories-activity-result,
  body.slever-owner-ui.calculator-page.calories-page .calories-result-author-note{
    margin-top:18px !important;
  }

  body.slever-owner-ui.calculator-page.calories-page #calories-result-panel.visible{
    padding-bottom:0 !important;
  }

  body.slever-owner-ui.calculator-page.calories-page .calories-main-grid:has(#calories-result-panel.visible) .calories-calc-column{
    padding-top:18px !important;
  }
}

/* v373 — calculator mobile small-copy pass.
   Keep compact desktop typography, but remove the remaining 11–13px text on phones. */
@media(max-width:900px){
  /* Placeholder text must follow the same size as entered values. */
  body.slever-owner-ui.calculator-page .calculator-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])::placeholder{
    font-size:var(--calc-control-font-size) !important;
  }

  /* Units inside compact numeric controls: лет / см / кг. */
  body.slever-owner-ui.calculator-page .calculator-form .input-wrap .unit{
    font-size:var(--calc-field-label-size) !important;
  }

  /* Checkbox/supporting form copy that is not a native label. */
  body.slever-owner-ui.calculator-page.calories-page .calories-owner-activity-option span{
    font-size:var(--calc-field-label-size) !important;
    line-height:1.35 !important;
  }

  /* “Мнение автора” and its expanded copy. */
  body.slever-owner-ui.calculator-page .author-note-details > summary{
    font-size:15px !important;
    line-height:1.4 !important;
  }
  body.slever-owner-ui.calculator-page .author-note-content p{
    font-size:15px !important;
    line-height:1.6 !important;
  }
  body.slever-owner-ui.calculator-page .author-note-inline-disclaimer{
    font-size:14px !important;
  }

}

/* v374 — calculator mobile long-form details typography.
   The lower “Подробнее…” accordion is shared by calculators and follows the
   same readable mobile type scale as the calculator card. */
@media(max-width:900px){
  body.slever-owner-ui.calculator-page .seo-details > h2{
    font-size:15px !important;
    line-height:1.4 !important;
  }

  body.slever-owner-ui.calculator-page .seo-details summary{
    font-size:16px !important;
    line-height:1.45 !important;
  }

  body.slever-owner-ui.calculator-page .seo-details-content{
    font-size:15px !important;
    line-height:1.6 !important;
  }

  body.slever-owner-ui.calculator-page .seo-details-content h3{
    font-size:16px !important;
    line-height:1.45 !important;
  }
}

/* PROD v019: mortgage — an empty down-payment percentage hint must not add
   extra vertical space between “Первоначальный взнос” and “Ставка”. */
body.slever-owner-ui.calculator-page.mortgage-page #mortgage-down-payment-share:empty{
  display:none !important;
  margin:0 !important;
}
