/*
 * Esnan Cost Calculator
 * Every rule is scoped to the calculator (#esnan-calc) and its floating layer (#ecc-layer),
 * so the WordPress theme and the calculator do not change each other.
 * Colors follow esnandentalclinics.com.
 */
@font-face{font-family:"Aspekta";src:url("../fonts/Aspekta-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Aspekta";src:url("../fonts/Aspekta-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"EccFasthand";src:url("../fonts/fasthand-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}

:is(#esnan-calc,#ecc-layer){
  --canvas:#FBFCFC;
  --card:#FBFCFC;
  --cream:#EFF6F6;
  --silk:#E3E7E7;
  --steel:#5E6A68;
  --graphite:#353837;
  --ink:#0D383A;
  --teal:#126F6B;
  --turq:#1EBEB6;
  --solid:#1EBEB6;
  --on-solid:#FFFFFF;
  --on-turq:#FFFFFF;
  --bar-bg:#0D383A;
  --bar-fg:#FBFCFC;
  --bar-mute:rgba(251,252,252,.62);
  --bar-accent:#1EBEB6;
  --scrim:rgba(13,56,58,.42);
  --focus:rgba(30,190,182,.35);
  --sh-card:rgba(19,19,22,.05) 0 0 0 1px,rgba(0,0,0,.04) 0 2px 3px 0,rgba(34,42,53,.04) 0 4px 6px 0,rgba(0,0,0,.05) 0 1px 1px 0;
  --sh-pop:rgba(19,19,22,.05) 0 0 0 1px,rgba(0,0,0,.04) 0 2px 3px 0,rgba(47,48,55,.05) 0 24px 68px 0,rgba(34,42,53,.04) 0 4px 6px 0,rgba(0,0,0,.05) 0 1px 1px 0;
  --sh-hair:rgba(0,0,0,.14) 0 0 0 .5px,rgba(0,0,0,.06) 0 1px 2px 0;
  --font:"Aspekta","Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --hand:"EccFasthand","Fasthand","Caveat","Bradley Hand",cursive;
  --ecc-sticky-top:96px;   /* distance of the plan card from the top while scrolling; raise it if the site header is taller */
  --ecc-bar-lift:0px;      /* extra gap above the docked phone bar for the plan sheet */
  --ecc-bar-reserve:24px;  /* right padding of the phone bar; raise it if a floating chat button needs room */
  color-scheme:light;
  font-family:var(--font);font-size:16px;font-weight:400;line-height:1.5;letter-spacing:-.01em;color:var(--graphite);text-align:start;
  font-feature-settings:"ss01" on,"cv11" on;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
#esnan-calc{background:var(--canvas);width:100%}

/* Neutralise theme styles inside the calculator */
:is(#esnan-calc,#ecc-layer),:is(#esnan-calc,#ecc-layer) *,:is(#esnan-calc,#ecc-layer) *::before,:is(#esnan-calc,#ecc-layer) *::after{box-sizing:border-box}
:is(#esnan-calc,#ecc-layer) h1,:is(#esnan-calc,#ecc-layer) h2,:is(#esnan-calc,#ecc-layer) h3,:is(#esnan-calc,#ecc-layer) p,:is(#esnan-calc,#ecc-layer) ul,:is(#esnan-calc,#ecc-layer) dl,:is(#esnan-calc,#ecc-layer) dd,:is(#esnan-calc,#ecc-layer) dt,:is(#esnan-calc,#ecc-layer) li,:is(#esnan-calc,#ecc-layer) section,:is(#esnan-calc,#ecc-layer) aside{margin:0;padding:0;border:0;background:none;font-family:inherit;text-transform:none}
:is(#esnan-calc,#ecc-layer) ul{list-style:none}
:is(#esnan-calc,#ecc-layer) li{list-style:none}
:is(#esnan-calc,#ecc-layer) li::before,:is(#esnan-calc,#ecc-layer) li::after{content:none}
:is(#esnan-calc,#ecc-layer) button{
  -webkit-appearance:none;appearance:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;
  font:inherit;letter-spacing:inherit;line-height:inherit;color:inherit;text-transform:none;text-decoration:none;text-shadow:none;
  width:auto;height:auto;min-width:0;min-height:0;cursor:pointer;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
:is(#esnan-calc,#ecc-layer) button:hover,:is(#esnan-calc,#ecc-layer) button:focus{background-color:transparent;color:inherit;box-shadow:none;text-decoration:none}
:is(#esnan-calc,#ecc-layer) input{margin:0;font:inherit;letter-spacing:inherit;box-shadow:none;text-transform:none}
:is(#esnan-calc,#ecc-layer) a{color:inherit;text-decoration:none;box-shadow:none}
:is(#esnan-calc,#ecc-layer) output{display:inline-block}
:is(#esnan-calc,#ecc-layer) [hidden]{display:none!important}
:is(#esnan-calc,#ecc-layer) svg{display:block;max-width:none}
:is(#esnan-calc,#ecc-layer) :focus{outline:none}
:is(#esnan-calc,#ecc-layer) :focus-visible{outline:2px solid var(--turq);outline-offset:2px}
:is(#esnan-calc,#ecc-layer) .ecc-i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}

:is(#esnan-calc,#ecc-layer) .ecc-wrap{
  max-width:1200px;margin-left:auto;margin-right:auto;
  padding-left:max(clamp(16px,4vw,48px),env(safe-area-inset-left,0px));
  padding-right:max(clamp(16px,4vw,48px),env(safe-area-inset-right,0px));
}

/* Top row: optional wordmark, currency switch */
:is(#esnan-calc,#ecc-layer) .ecc-top .ecc-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
:is(#esnan-calc,#ecc-layer) .ecc-mark{font-size:24px;font-weight:500;letter-spacing:-.03em;color:var(--ink)}
:is(#esnan-calc,#ecc-layer) .ecc-mark span{color:var(--turq)}
:is(#esnan-calc,#ecc-layer) .ecc-seg{margin-inline-start:auto;display:flex;gap:2px;padding:4px;border-radius:999px;background:var(--cream)}
:is(#esnan-calc,#ecc-layer) .ecc-seg button{border-radius:999px;padding:6px 14px;min-height:36px;font-size:14px;font-weight:500;color:var(--steel);transition:background-color .2s,color .2s}
@media (hover:hover){:is(#esnan-calc,#ecc-layer) .ecc-seg button:hover{color:var(--ink)}}
:is(#esnan-calc,#ecc-layer) .ecc-seg button[aria-pressed="true"]{background:var(--solid);color:var(--on-solid)}

/* Hero */
:is(#esnan-calc,#ecc-layer) .ecc-hero{position:relative;text-align:center;padding-top:clamp(48px,8vw,104px);padding-bottom:clamp(48px,7vw,88px);overflow:hidden}
:is(#esnan-calc,#ecc-layer) .ecc-hero::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:linear-gradient(var(--silk) 1px,transparent 1px),linear-gradient(90deg,var(--silk) 1px,transparent 1px);
  background-size:40px 40px;background-position:center top;
  -webkit-mask-image:radial-gradient(ellipse 62% 70% at 50% 45%,#000 20%,transparent 72%);
          mask-image:radial-gradient(ellipse 62% 70% at 50% 45%,#000 20%,transparent 72%);
}
:is(#esnan-calc,#ecc-layer) .ecc-hero .ecc-wrap{position:relative;z-index:1}
:is(#esnan-calc,#ecc-layer) .ecc-kicker{font-family:var(--hand);font-size:clamp(26px,5vw,32px);line-height:1.38;letter-spacing:-.01em;color:var(--steel)}
:is(#esnan-calc,#ecc-layer) .ecc-h1{
  margin:8px auto 0;max-width:780px;
  font-size:clamp(32px,6.2vw,56px);line-height:1.14;font-weight:400;letter-spacing:-.035em;color:var(--ink);
  text-wrap:balance;
}
:is(#esnan-calc,#ecc-layer) .ecc-lede{margin:20px auto 0;max-width:560px;font-size:clamp(16px,2.2vw,18px);line-height:1.56;letter-spacing:-.011em;color:var(--steel);text-wrap:pretty}

/* Working area */
:is(#esnan-calc,#ecc-layer) .ecc-work{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:clamp(32px,4vw,48px);align-items:start;padding-top:8px;padding-bottom:120px}
@media (min-width:1024px) and (max-width:1199px){:is(#esnan-calc,#ecc-layer) .ecc-work{grid-template-columns:minmax(0,1fr) 320px}}
@media (max-width:1023px){:is(#esnan-calc,#ecc-layer) .ecc-work{grid-template-columns:minmax(0,1fr);gap:40px;padding-bottom:calc(var(--ecc-bar-lift) + 132px + env(safe-area-inset-bottom,0px))}}
:is(#esnan-calc,#ecc-layer) .ecc-main{min-width:0}

:is(#esnan-calc,#ecc-layer) .ecc-search{position:relative}
:is(#esnan-calc,#ecc-layer) .ecc-search .ecc-i{position:absolute;left:20px;top:50%;transform:translateY(-50%);color:var(--steel);width:18px;height:18px}
:is(#esnan-calc,#ecc-layer) .ecc-search input{
  display:block;width:100%;height:52px;border-radius:999px;border:1px solid var(--silk);background:var(--card);
  padding:0 20px 0 50px;font-size:16px;color:var(--ink);outline:none;transition:border-color .2s,box-shadow .2s;
}
:is(#esnan-calc,#ecc-layer) .ecc-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
:is(#esnan-calc,#ecc-layer) .ecc-search input::placeholder{color:var(--steel);opacity:.85}
:is(#esnan-calc,#ecc-layer) .ecc-search input:focus{border-color:var(--turq);box-shadow:0 0 0 4px var(--focus)}

:is(#esnan-calc,#ecc-layer) .ecc-cats{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
:is(#esnan-calc,#ecc-layer) .ecc-cat{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px;border-radius:999px;background:var(--cream);color:var(--graphite);font-size:14px;transition:background-color .2s,color .2s}
@media (hover:hover){:is(#esnan-calc,#ecc-layer) .ecc-cat:hover{background:var(--silk);color:var(--graphite)}}
:is(#esnan-calc,#ecc-layer) .ecc-cat small{font-size:12px;color:var(--steel);font-variant-numeric:tabular-nums}
:is(#esnan-calc,#ecc-layer) .ecc-cat[aria-pressed="true"],:is(#esnan-calc,#ecc-layer) .ecc-cat[aria-pressed="true"]:hover{background:var(--solid);color:var(--on-solid)}
:is(#esnan-calc,#ecc-layer) .ecc-cat[aria-pressed="true"] small{color:inherit;opacity:.75}

:is(#esnan-calc,#ecc-layer) .ecc-list{margin-top:24px;background:var(--card);border-radius:32px;box-shadow:var(--sh-card);overflow:hidden}
:is(#esnan-calc,#ecc-layer) .ecc-list>li+li{border-top:1px solid var(--silk)}
:is(#esnan-calc,#ecc-layer) .ecc-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:12px 20px 12px 12px}
:is(#esnan-calc,#ecc-layer) .ecc-toggle{display:flex;align-items:center;gap:12px;min-width:0;text-align:start;padding:6px 8px;border-radius:16px}
@media (hover:hover){:is(#esnan-calc,#ecc-layer) .ecc-toggle:hover .ecc-chev{background:var(--cream);color:var(--ink)}}
:is(#esnan-calc,#ecc-layer) .ecc-chev{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;color:var(--steel);flex:none;transition:transform .25s ease,background-color .2s,color .2s}
:is(#esnan-calc,#ecc-layer) .ecc-toggle[aria-expanded="true"] .ecc-chev{transform:rotate(180deg);background:var(--cream);color:var(--ink)}
:is(#esnan-calc,#ecc-layer) .ecc-t{min-width:0}
:is(#esnan-calc,#ecc-layer) .ecc-t-name{display:block;font-weight:500;color:var(--ink);overflow-wrap:anywhere}
:is(#esnan-calc,#ecc-layer) .ecc-t-cat{display:block;font-size:14px;line-height:1.43;color:var(--steel)}
:is(#esnan-calc,#ecc-layer) .ecc-nw{white-space:nowrap}
:is(#esnan-calc,#ecc-layer) .ecc-rg{unicode-bidi:isolate}
:is(#esnan-calc,#ecc-layer) .ecc-price{font-weight:500;color:var(--teal);font-variant-numeric:tabular-nums;text-align:end;min-width:64px;white-space:nowrap}
:is(#esnan-calc,#ecc-layer) .ecc-stepper{display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:var(--cream);transition:box-shadow .2s}
:is(#esnan-calc,#ecc-layer) .ecc-stepper button{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;color:var(--ink)}
@media (hover:hover){:is(#esnan-calc,#ecc-layer) .ecc-stepper button:hover:not(:disabled){background:var(--silk);color:var(--ink)}}
:is(#esnan-calc,#ecc-layer) .ecc-stepper button:disabled{opacity:.3;cursor:default}
:is(#esnan-calc,#ecc-layer) .ecc-stepper .ecc-plus{background:var(--turq);color:var(--on-turq)}
@media (hover:hover){:is(#esnan-calc,#ecc-layer) .ecc-stepper .ecc-plus:hover:not(:disabled){background:var(--turq);color:var(--on-turq)}}
:is(#esnan-calc,#ecc-layer) .ecc-stepper output{width:24px;text-align:center;font-size:14px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
:is(#esnan-calc,#ecc-layer) .ecc-in-plan .ecc-stepper{box-shadow:inset 0 0 0 1.5px var(--turq)}

:is(#esnan-calc,#ecc-layer) .ecc-details{margin:0 16px 16px;padding:20px 24px 24px;border-radius:20px;background:var(--cream);display:grid;gap:20px}
:is(#esnan-calc,#ecc-layer) .ecc-details p{color:var(--steel);max-width:62ch}
:is(#esnan-calc,#ecc-layer) .ecc-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 32px}
:is(#esnan-calc,#ecc-layer) .ecc-facts div{min-width:0}
:is(#esnan-calc,#ecc-layer) .ecc-facts dt{font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--steel)}
:is(#esnan-calc,#ecc-layer) .ecc-facts dd{margin-top:2px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
:is(#esnan-calc,#ecc-layer) .ecc-abroad{display:flex;flex-wrap:wrap;gap:8px}
:is(#esnan-calc,#ecc-layer) .ecc-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:var(--card);box-shadow:var(--sh-hair);font-size:14px;color:var(--graphite)}
:is(#esnan-calc,#ecc-layer) .ecc-chip b{font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
:is(#esnan-calc,#ecc-layer) .ecc-cc{font-size:11px;font-weight:500;letter-spacing:.08em;color:var(--steel)}
:is(#esnan-calc,#ecc-layer) .ecc-empty{padding:48px 24px;text-align:center;color:var(--steel)}

/* Touch screens: 40px tap targets without changing the look */
@media (pointer:coarse){
  :is(#esnan-calc,#ecc-layer) .ecc-stepper button{width:36px;height:36px}
  :is(#esnan-calc,#ecc-layer) .ecc-stepper output{width:28px}
  :is(#esnan-calc,#ecc-layer) .ecc-cat{height:40px}
  :is(#esnan-calc,#ecc-layer) .ecc-seg button{min-height:40px;padding:6px 16px}
  :is(#esnan-calc,#ecc-layer) .ecc-rm{width:36px;height:36px;margin:-8px -10px -8px 0}
}

/* Phones and small tablets: categories become one swipeable row */
@media (max-width:767px){
  :is(#esnan-calc,#ecc-layer) .ecc-cats{
    flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;
    margin-left:calc(-1 * max(clamp(16px,4vw,48px),env(safe-area-inset-left,0px)));
    margin-right:calc(-1 * max(clamp(16px,4vw,48px),env(safe-area-inset-right,0px)));
    padding-left:max(clamp(16px,4vw,48px),env(safe-area-inset-left,0px));
    padding-right:max(clamp(16px,4vw,48px),env(safe-area-inset-right,0px));
    scroll-padding-inline:max(clamp(16px,4vw,48px),env(safe-area-inset-left,0px));
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 24px),transparent);
            mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 24px),transparent);
  }
  :is(#esnan-calc,#ecc-layer) .ecc-cats::-webkit-scrollbar{display:none}
  :is(#esnan-calc,#ecc-layer) .ecc-cat{flex:none;scroll-snap-align:start;white-space:nowrap}
  :is(#esnan-calc,#ecc-layer) .ecc-list{border-radius:24px}
  :is(#esnan-calc,#ecc-layer) .ecc-plan,:is(#esnan-calc,#ecc-layer) .ecc-compare{border-radius:24px}
  :is(#esnan-calc,#ecc-layer) .ecc-plan{padding:24px 20px}
  :is(#esnan-calc,#ecc-layer) .ecc-compare{padding:20px}
  :is(#esnan-calc,#ecc-layer) .ecc-top .ecc-wrap{min-height:60px}
}

@media (max-width:600px){
  :is(#esnan-calc,#ecc-layer) .ecc-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t t" "p s";row-gap:4px;padding:12px 16px 14px 8px}
  :is(#esnan-calc,#ecc-layer) .ecc-toggle{grid-area:t}
  :is(#esnan-calc,#ecc-layer) .ecc-price{grid-area:p;text-align:start;padding-inline-start:50px}
  :is(#esnan-calc,#ecc-layer) .ecc-stepper{grid-area:s}
  :is(#esnan-calc,#ecc-layer) .ecc-details{margin:0 8px 8px;padding:18px 18px 20px}
  :is(#esnan-calc,#ecc-layer) .ecc-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
  :is(#esnan-calc,#ecc-layer) .ecc-abroad{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
  :is(#esnan-calc,#ecc-layer) .ecc-chip{justify-content:flex-start;border-radius:14px;padding:8px 12px}
  :is(#esnan-calc,#ecc-layer) .ecc-chip b{margin-inline-start:auto}
}
@media (max-width:359px){
  :is(#esnan-calc,#ecc-layer) .ecc-facts{grid-template-columns:minmax(0,1fr)}
  :is(#esnan-calc,#ecc-layer) .ecc-chip{flex-wrap:wrap;row-gap:0}
  :is(#esnan-calc,#ecc-layer) .ecc-chip b{margin-inline-start:32px;flex-basis:100%}
}

/* Plan */
@media (min-width:1024px) and (min-height:820px){:is(#esnan-calc,#ecc-layer) .ecc-aside{position:sticky;top:var(--ecc-sticky-top)}}
:is(#esnan-calc,#ecc-layer) .ecc-plan{background:var(--card);border-radius:32px;box-shadow:var(--sh-pop);padding:28px}
:is(#esnan-calc,#ecc-layer) .ecc-plan h2,:is(#esnan-calc,#ecc-layer) .ecc-compare h3{font-weight:400;color:var(--ink)}
:is(#esnan-calc,#ecc-layer) .ecc-plan h2{font-size:24px;line-height:1.38;letter-spacing:-.016em}
:is(#esnan-calc,#ecc-layer) .ecc-muted{margin-top:12px;font-size:14px;color:var(--steel)}
:is(#esnan-calc,#ecc-layer) .ecc-items{margin-top:16px;display:grid;gap:12px;font-size:14px;line-height:1.43}
:is(#esnan-calc,#ecc-layer) .ecc-items li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
:is(#esnan-calc,#ecc-layer) .ecc-items .ecc-nm{color:var(--graphite);min-width:0;overflow-wrap:anywhere}
:is(#esnan-calc,#ecc-layer) .ecc-items .ecc-q{color:var(--steel);font-variant-numeric:tabular-nums}
:is(#esnan-calc,#ecc-layer) .ecc-items .ecc-amt{display:flex;align-items:center;gap:6px;white-space:nowrap;flex:none;color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}
:is(#esnan-calc,#ecc-layer) .ecc-rm{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;color:var(--steel);margin:-4px -8px -4px 0}
@media (hover:hover){:is(#esnan-calc,#ecc-layer) .ecc-rm:hover{background:var(--cream);color:var(--ink)}}
:is(#esnan-calc,#ecc-layer) .ecc-rm .ecc-i{width:14px;height:14px}
:is(#esnan-calc,#ecc-layer) .ecc-sum{margin-top:24px;padding-top:20px;border-top:1px solid var(--silk)}
:is(#esnan-calc,#ecc-layer) .ecc-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--steel)}
:is(#esnan-calc,#ecc-layer) .ecc-label::before{content:"";width:8px;height:8px;border-radius:999px;background:var(--turq)}
:is(#esnan-calc,#ecc-layer) .ecc-total{margin-top:6px;font-size:clamp(28px,3vw,34px);line-height:1.25;letter-spacing:-.025em;text-wrap:balance;color:var(--ink);font-variant-numeric:tabular-nums}

:is(#esnan-calc,#ecc-layer) .ecc-compare{margin-top:16px;background:var(--card);border-radius:32px;box-shadow:var(--sh-card);padding:24px 28px}
:is(#esnan-calc,#ecc-layer) .ecc-compare h3{font-size:20px;line-height:1.4;letter-spacing:-.017em}
:is(#esnan-calc,#ecc-layer) .ecc-compare ul{margin-top:16px;display:grid;gap:12px;font-size:14px;line-height:1.43}
:is(#esnan-calc,#ecc-layer) .ecc-compare li{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
:is(#esnan-calc,#ecc-layer) .ecc-compare .ecc-who{display:flex;align-items:center;gap:10px;color:var(--graphite)}
:is(#esnan-calc,#ecc-layer) .ecc-compare .ecc-cc{width:24px}
:is(#esnan-calc,#ecc-layer) .ecc-compare .ecc-v{text-align:end;color:var(--ink);font-variant-numeric:tabular-nums}
:is(#esnan-calc,#ecc-layer) .ecc-compare .ecc-save{display:block;font-size:12px;color:var(--teal)}
:is(#esnan-calc,#ecc-layer) .ecc-compare li.ecc-home{padding-bottom:12px;border-bottom:1px solid var(--silk)}
:is(#esnan-calc,#ecc-layer) .ecc-compare li.ecc-home .ecc-who,:is(#esnan-calc,#ecc-layer) .ecc-compare li.ecc-home .ecc-v{color:var(--teal);font-weight:500}
:is(#esnan-calc,#ecc-layer) .ecc-note{margin:16px 12px 0;font-size:12px;line-height:1.6;color:var(--steel)}

/* Phone total bar (docked to the bottom edge) and plan sheet — built by the script at the end of the page */
:is(#esnan-calc,#ecc-layer) .ecc-bar{position:fixed;left:0;right:0;bottom:0;z-index:9990}
:is(#esnan-calc,#ecc-layer) .ecc-bar button,:is(#esnan-calc,#ecc-layer) .ecc-bar button:hover,:is(#esnan-calc,#ecc-layer) .ecc-bar button:focus{
  display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:96px;
  padding:14px calc(var(--ecc-bar-reserve) + env(safe-area-inset-right,0px)) calc(14px + env(safe-area-inset-bottom,0px)) max(24px,calc(env(safe-area-inset-left,0px) + 16px));
  border-radius:24px 24px 0 0;background:var(--bar-bg);color:var(--bar-fg);box-shadow:0 -8px 32px rgba(13,56,58,.18);text-align:start;
}
:is(#esnan-calc,#ecc-layer) .ecc-bar .ecc-l1,:is(#esnan-calc,#ecc-layer) .ecc-bar .ecc-l3{display:block;max-width:100%;font-size:12px;line-height:1.5;color:var(--bar-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
:is(#esnan-calc,#ecc-layer) .ecc-bar .ecc-l2{display:flex;align-items:center;gap:12px;min-width:0}
:is(#esnan-calc,#ecc-layer) .ecc-bar .ecc-big{display:block;white-space:nowrap;font-size:clamp(20px,6vw,24px);line-height:1.3;font-weight:500;letter-spacing:-.02em;color:var(--bar-accent);font-variant-numeric:tabular-nums}
:is(#esnan-calc,#ecc-layer) .ecc-bar .ecc-knob{flex:none;width:32px;height:32px;border-radius:999px;display:grid;place-items:center;background:rgba(251,252,252,.12);color:var(--bar-fg);transition:transform .25s}
:is(#esnan-calc,#ecc-layer) .ecc-bar .ecc-knob .ecc-i{width:14px;height:14px}
:is(#esnan-calc,#ecc-layer) .ecc-bar button[aria-expanded="true"] .ecc-knob{transform:rotate(180deg)}
:is(#esnan-calc,#ecc-layer) .ecc-sheet{position:fixed;inset:0;z-index:9980;background:var(--scrim)}
:is(#esnan-calc,#ecc-layer) .ecc-sheet-panel{
  position:absolute;left:12px;right:12px;bottom:calc(var(--ecc-bar-lift) + 108px + env(safe-area-inset-bottom,0px));margin-left:auto;margin-right:auto;max-width:512px;
  max-height:72vh;max-height:calc(100dvh - var(--ecc-bar-lift) - 140px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:var(--canvas);border-radius:32px;padding:12px;box-shadow:var(--sh-pop);animation:ecc-rise .25s ease;
}
:is(#esnan-calc,#ecc-layer) .ecc-sheet-panel .ecc-note{margin-bottom:8px}
:is(#esnan-calc,#ecc-layer) .ecc-sheet-panel:focus{outline:none}
:is(#esnan-calc,#ecc-layer) .ecc-sheet-panel .ecc-plan{box-shadow:var(--sh-card)}
@keyframes ecc-rise{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
@media (min-width:1024px){:is(#esnan-calc,#ecc-layer) .ecc-bar,:is(#esnan-calc,#ecc-layer) .ecc-sheet{display:none!important}}
@media (prefers-reduced-motion:reduce){:is(#esnan-calc,#ecc-layer) *{transition:none!important;animation:none!important}}

/* Russian and Arabic: the bundled Latin fonts have no Cyrillic or Arabic letters, so the system font is used throughout */
:is(#esnan-calc,#ecc-layer):is(:lang(ru),:lang(ar)){--font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans Arabic",Tahoma,sans-serif;--hand:var(--font)}
:is(#esnan-calc,#ecc-layer):is(:lang(ru),:lang(ar)) .ecc-kicker{font-size:clamp(17px,3.2vw,20px);font-weight:500;letter-spacing:0;color:var(--teal)}
/* Arabic letters join, so no tightened letter spacing anywhere */
:is(#esnan-calc,#ecc-layer):lang(ar),:is(#esnan-calc,#ecc-layer):lang(ar) *{letter-spacing:0!important}
:is(#esnan-calc,#ecc-layer):lang(ar) .ecc-facts dt,:is(#esnan-calc,#ecc-layer):lang(ar) .ecc-label{text-transform:none;font-size:13px}

/* Right-to-left (Arabic) */
:is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-search .ecc-i{left:auto;right:20px}
:is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-search input{padding:0 50px 0 20px}
:is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-row{padding:12px 12px 12px 20px}
:is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-rm{margin:-4px 0 -4px -8px}
:is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-bar button,:is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-bar button:hover,:is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-bar button:focus{
  padding:14px max(24px,calc(env(safe-area-inset-right,0px) + 16px)) calc(14px + env(safe-area-inset-bottom,0px)) calc(var(--ecc-bar-reserve) + env(safe-area-inset-left,0px));
}
@media (pointer:coarse){:is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-rm{margin:-8px 0 -8px -10px}}
@media (max-width:767px){
  :is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-cats{-webkit-mask-image:linear-gradient(270deg,transparent 0,#000 12px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(270deg,transparent 0,#000 12px,#000 calc(100% - 24px),transparent)}
}
@media (max-width:600px){
  :is(#esnan-calc,#ecc-layer)[dir="rtl"] .ecc-row{padding:12px 8px 14px 16px}
}
