/* ==========================================================================
   Steps process + progress bar - the selectable styles
   --------------------------------------------------------------------------
   This file is split into chunks by the `== efb-sp:<name> ==` markers below.
   In wp-admin it is enqueued whole, because the builder has to be able to draw
   any style the author picks. On the front end nothing is enqueued at all:
   efb_steps_inline_css_efb() in includes/functions.php reads this file, keeps
   only the chunks the form actually uses, and prints them inside the form's own
   <style> block. A form left on the classic styles therefore downloads none of
   it, which is the whole point of the split - so keep every rule inside the
   chunk it belongs to, and keep each style chunk self-contained (its own
   compact, mobile and RTL rules included).

   Markup contract:

     <div class="efb efb-sp efb-sp--circles efb-sp--prog-bar [efb-sp--compact]
                 [efb-sp--dense] [efb-sp--norow] [efb-sp--rtl]"
          data-formid="12" style="--efb-sp-accent: ...">
       <div class="efb efb-sp__current">          <- compact / mobile caption
         <span class="efb efb-sp__counter">Step 2 of 3</span>
         <span class="efb efb-sp__curname">FORM</span>
       </div>
       <ul id="steps-efb" class="efb efb-sp__steps">
         <li class="efb efb-sp__item is-done efb-sp-c-ff4b93 {icon_color} {icon}"
             data-num="1">
           <strong class="efb efb-sp__label {label_text_color}">Contact</strong>
         </li>
       </ul>
       <div id="f-progress-efb" class="efb efb-sp__prog"> ... </div>
     </div>

   Colours. Nothing here invents a colour. The form's own progress colour
   (prg_bar_color) becomes --efb-sp-accent and its derived track and line on the
   wrapper; each step's own icon colour becomes --efb-sp-dot and its derived
   shades, carried by the efb-sp-c-<hex> class that efb_steps_color_rules_efb()
   prints one rule for per distinct colour. The {icon} glyph and the {label} are
   still painted by the step's own icon_color / label_text_color classes exactly
   as they always were; the only place those are overridden is where the text
   sits ON a filled shape, where --efb-sp-dot-on takes over, because a navy
   caption on a navy pill cannot be read.

   Selectors are anchored on .efb-sp, and on #steps-efb / #f-progress-efb
   wherever they have to outrank the .colorDEfb-* rules the form prints inline
   with !important.
   ========================================================================== */

/* == efb-sp:base == */
.efb.efb-sp {
   --efb-sp-accent: #202a8d;
   --efb-sp-accent-dark: #151d66;
   --efb-sp-soft: rgba(32, 42, 141, .16);
   --efb-sp-on-accent: #ffffff;
   --efb-sp-track: #e9eaf4;
   --efb-sp-line: #dcdeee;
   --efb-sp-dot: var(--efb-sp-accent);
   --efb-sp-dot-on: var(--efb-sp-on-accent);
   --efb-sp-dot-soft: var(--efb-sp-soft);
   --efb-sp-dot-line: var(--efb-sp-line);
   --efb-sp-dot-bg: var(--efb-sp-track);
   --efb-sp-muted: #a2a8c4;
   --efb-sp-dot-size: 48px;
   --efb-sp-gap: 10px;
   display: block;
   width: 100%;
}

/* ---------- the compact / mobile caption ---------- */
.efb-sp .efb.efb-sp__current {
   display: none;
   align-items: center;
   gap: 10px;
   margin: 0 0 14px 0;
   line-height: 1.4;
}
.efb-sp .efb.efb-sp__counter {
   flex: 0 0 auto;
   padding: 5px 12px;
   border-radius: 100px;
   background: var(--efb-sp-track);
   font-size: 13px;
   font-weight: 600;
   color: #6a7192;
}
.efb-sp .efb.efb-sp__curname {
   min-width: 0;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
   font-size: 15px;
   font-weight: 700;
   color: var(--efb-sp-accent);
}
/* With no steps row there is nothing else naming the step - the form's own
   heading is hidden along with the row - so the caption is shown at every
   width rather than only where the row has run out of space. */
.efb-sp.efb-sp--norow .efb.efb-sp__current { display: flex; }

/* ---------- shared step skeleton ---------- */
#steps-efb.efb-sp__steps {
   display: flex;
   align-items: flex-start;
   margin: 0 0 4px 0;
   padding: 0;
   list-style: none;
   overflow: visible;
   text-align: center;
}
#steps-efb.efb-sp__steps .efb.efb-sp__item {
   position: relative;
   display: flex;
   float: none;
   list-style-type: none;
   margin: 0;
   padding: 0;
   min-width: 0;
   background: transparent;
   transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
/* The glyph is the same ::before the steps have always used, so the bi-* class
   on the <li> still supplies the character and icon_color still supplies its
   colour. */
#steps-efb.efb-sp__steps .efb.efb-sp__item::before {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   flex: 0 0 auto;
   box-sizing: border-box;
   width: auto;
   height: auto;
   line-height: 1;
   background: none;
   border-radius: 50%;
   margin: 0;
   padding: 0;
   transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
#steps-efb.efb-sp__steps .efb.efb-sp__item::after { content: none; }
/* A finished step shows a tick rather than the icon it was given: the icon says
   which step it is, the tick says the visitor is past it, and past the step
   that is the more useful of the two. \F633 is bi-check-lg, from the icon font
   the plugin already enqueues for these rows. */
#steps-efb.efb-sp__steps .efb-sp__item.is-done::before { content: "\F633"; }
#steps-efb.efb-sp__steps .efb.efb-sp__label {
   display: block;
   min-width: 0;
   max-width: 100%;
   overflow: hidden;
   text-overflow: ellipsis;
   line-height: 1.35;
   transition: color .3s ease;
}
/* A step that is neither done nor active is dimmed rather than repainted, so
   the author's label_text_color is still the colour underneath. */
#steps-efb.efb-sp__steps .efb-sp__item.is-todo .efb.efb-sp__label { opacity: .55; }
#steps-efb.efb-sp__steps .efb-sp__item.is-active .efb.efb-sp__label { font-weight: 700; }

/* ---------- shared progress skeleton ---------- */
#f-progress-efb.efb.efb-sp__prog {
   display: block;
   width: 100%;
   margin-bottom: 2rem;
}
.efb-sp .efb.efb-sp__meta {
   display: flex;
   align-items: baseline;
   justify-content: space-between;
   gap: 12px;
   margin: 0 0 8px 0;
   font-size: 13px;
   font-weight: 600;
   color: #8a91b4;
   line-height: 1.4;
}
.efb-sp .efb.efb-sp__pct {
   flex: 0 0 auto;
   font-size: 15px;
   color: var(--efb-sp-accent);
}
.efb-sp .efb.efb-sp__metaname {
   min-width: 0;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

/* ---------- long forms and small screens ----------
   Ten is where the captions stop fitting on a desktop row and twenty is where
   the dots themselves start to touch. Both modifiers have to carry .efb the
   same way the token block does, or a single class cannot outrank two and the
   dots silently keep their full size. */
.efb.efb-sp--compact { --efb-sp-dot-size: 32px; --efb-sp-gap: 0px; }
.efb.efb-sp--dense { --efb-sp-dot-size: 24px; }
.efb-sp--compact .efb.efb-sp__current { display: flex; }
.efb-sp--compact #steps-efb.efb-sp__steps .efb.efb-sp__label { display: none; }

@media screen and (max-width: 782px) {
   .efb.efb-sp { --efb-sp-dot-size: 32px; }
   .efb.efb-sp--dense { --efb-sp-dot-size: 24px; }
   .efb-sp .efb.efb-sp__current { display: flex; }
   .efb-sp #steps-efb.efb-sp__steps .efb.efb-sp__label { display: none; }
   .efb-sp .efb.efb-sp__curname { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
   .efb-sp *,
   .efb-sp *::before,
   .efb-sp *::after { transition: none !important; animation: none !important; }
}

/* RTL is keyed on a class rather than [dir=rtl] because the plugin's RTL sheet
   is enqueued before this one in wp-admin and after it on the front end, so an
   equal-specificity override there would only work on one of the two. */
.efb-sp.efb-sp--rtl #steps-efb.efb-sp__steps,
.efb-sp.efb-sp--rtl .efb.efb-sp__meta { direction: rtl; }

/* == efb-sp:steps-circles == */
.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item {
   flex: 1 1 0;
   width: auto;
   flex-direction: column;
   align-items: center;
   gap: var(--efb-sp-gap);
   padding: 0 4px;
}
.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item::before {
   width: var(--efb-sp-dot-size);
   height: var(--efb-sp-dot-size);
   font-size: calc(var(--efb-sp-dot-size) * .42);
   font-weight: 700;
   background: #ffffff;
   border: 2px solid var(--efb-sp-dot-line);
   position: relative;
   z-index: 1;
}
/* The connector belongs to the step it leaves, not the one it arrives at, so a
   finished step paints its own line in its own colour. Logical inset keeps it
   correct once the row is mirrored. */
.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item::after {
   content: "";
   display: block;
   position: absolute;
   top: calc(var(--efb-sp-dot-size) / 2 - 1.5px);
   inset-inline-start: 50%;
   width: 100%;
   height: 3px;
   border-radius: 3px;
   background: var(--efb-sp-line);
   transition: background-color .35s ease;
   z-index: 0;
}
.efb-sp--circles #steps-efb.efb-sp__steps .efb-sp__item:last-of-type::after { content: none; }
.efb-sp--circles #steps-efb.efb-sp__steps .efb-sp__item.is-done::after { background: var(--efb-sp-dot); }
.efb-sp--circles #steps-efb.efb-sp__steps .efb-sp__item.is-done::before {
   background: var(--efb-sp-dot);
   border-color: var(--efb-sp-dot);
   color: var(--efb-sp-dot-on);
}
.efb-sp--circles #steps-efb.efb-sp__steps .efb-sp__item.is-active::before {
   background: var(--efb-sp-dot);
   border-color: transparent;
   color: var(--efb-sp-dot-on);
   box-shadow: 0 0 0 6px var(--efb-sp-dot-soft);
}
/* Numbers replace the captions once they no longer fit, and they have to beat
   both the bi-* glyph and the finished step's tick. */
.efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item::before,
.efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb-sp__item.is-done::before {
   content: attr(data-num);
   /* !important: the bi-* icon rule is !important too, and the icon font has
      no digits, so the number fell back to the browser's default font. */
   font-family: inherit !important;
   font-weight: 700 !important;
   font-size: 13px;
}
.efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item { padding: 0 2px; }
.efb-sp--dense.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item::before { font-size: 11px; border-width: 1px; }
.efb-sp--dense.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item { padding: 0 1px; }
.efb-sp--dense.efb-sp--circles #steps-efb.efb-sp__steps .efb-sp__item.is-active::before { box-shadow: 0 0 0 4px var(--efb-sp-dot-soft); }

@media screen and (max-width: 782px) {
   .efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item::before { font-size: 15px; }
   .efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item::before { font-size: 12px; }
   /* A long form on a phone gets a dot rail: a numbered circle is unreadable at
      this size and a scroll bar under twelve of them is worse. */
   .efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps { gap: 5px; }
   .efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item::after { display: none; }
   .efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item { flex: 1 1 0; padding: 0; }
   .efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb.efb-sp__item::before,
   .efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb-sp__item.is-done::before {
      content: "";
      width: 100%;
      max-width: 28px;
      height: 9px;
      border: none;
      border-radius: 100px;
      background: var(--efb-sp-dot-line);
      font-size: 0;
   }
   .efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb-sp__item.is-done::before { background: var(--efb-sp-dot); }
   .efb-sp--compact.efb-sp--circles #steps-efb.efb-sp__steps .efb-sp__item.is-active::before {
      background: var(--efb-sp-dot);
      box-shadow: none;
   }
}

/* == efb-sp:steps-pills == */
.efb-sp--pills #steps-efb.efb-sp__steps {
   flex-wrap: wrap;
   gap: 10px;
   align-items: stretch;
}
.efb-sp--pills #steps-efb.efb-sp__steps .efb.efb-sp__item {
   flex: 1 1 170px;
   width: auto;
   align-items: center;
   justify-content: flex-start;
   gap: 10px;
   min-height: 48px;
   padding: 6px 16px;
   border: 1px solid transparent;
   border-radius: 100px;
   background: var(--efb-sp-dot-bg);
}
.efb-sp--pills #steps-efb.efb-sp__steps .efb.efb-sp__item::before {
   width: 26px;
   height: 26px;
   font-size: 14px;
   background: var(--efb-sp-dot-line);
}
.efb-sp--pills #steps-efb.efb-sp__steps .efb.efb-sp__label {
   text-align: start;
   font-weight: 600;
   white-space: nowrap;
}
.efb-sp--pills #steps-efb.efb-sp__steps .efb-sp__item.is-done {
   background: #ffffff;
   border-color: var(--efb-sp-dot-line);
}
.efb-sp--pills #steps-efb.efb-sp__steps .efb-sp__item.is-done::before { background: var(--efb-sp-dot-soft); }
.efb-sp--pills #steps-efb.efb-sp__steps .efb-sp__item.is-active {
   background: var(--efb-sp-dot);
   box-shadow: 0 8px 20px var(--efb-sp-dot-soft);
}
.efb-sp--pills #steps-efb.efb-sp__steps .efb-sp__item.is-active::before {
   background: rgba(255, 255, 255, .22);
   color: var(--efb-sp-dot-on);
}
.efb-sp--pills #steps-efb.efb-sp__steps .efb-sp__item.is-active .efb.efb-sp__label {
   color: var(--efb-sp-dot-on) !important;
   opacity: 1;
}
/* Past ten steps a pill cannot shrink below its text, so the row becomes a
   strip that scrolls and efbStepsSyncEfb() keeps the active chip in view. */
.efb-sp--compact.efb-sp--pills #steps-efb.efb-sp__steps {
   flex-wrap: nowrap;
   overflow-x: auto;
   overflow-y: hidden;
   scrollbar-width: thin;
   -webkit-overflow-scrolling: touch;
   padding-bottom: 6px;
   gap: 8px;
}
.efb-sp--compact.efb-sp--pills #steps-efb.efb-sp__steps .efb.efb-sp__item {
   flex: 0 0 auto;
   min-height: 38px;
   padding: 4px 14px;
}
.efb-sp--compact.efb-sp--pills #steps-efb.efb-sp__steps .efb.efb-sp__item::after {
   content: attr(data-num);
   display: block;
   position: static;
   width: auto;
   height: auto;
   background: none;
   font-size: 13px;
   font-weight: 600;
}
/* The number sits on the fill on an active chip, so it takes the readable
   colour the same way the glyph beside it does. */
.efb-sp--compact.efb-sp--pills #steps-efb.efb-sp__steps .efb-sp__item.is-active::after { color: var(--efb-sp-dot-on); }

@media screen and (max-width: 782px) {
   .efb-sp--pills #steps-efb.efb-sp__steps {
      flex-wrap: nowrap;
      gap: 6px;
      overflow-x: auto;
      scrollbar-width: thin;
   }
   .efb-sp--pills #steps-efb.efb-sp__steps .efb.efb-sp__item {
      flex: 0 0 auto;
      min-height: 40px;
      padding: 4px 12px;
   }
   /* Only the step being filled in keeps its name. */
   .efb-sp--pills #steps-efb.efb-sp__steps .efb-sp__item.is-active { flex: 0 1 auto; padding: 4px 16px; }
   .efb-sp--pills:not(.efb-sp--compact) #steps-efb.efb-sp__steps .efb-sp__item.is-active .efb.efb-sp__label { display: block; }
}

/* == efb-sp:steps-chevrons == */
.efb-sp--chevrons #steps-efb.efb-sp__steps {
   border-radius: 12px;
   overflow: hidden;
   gap: 0;
}
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb.efb-sp__item {
   flex: 1 1 0;
   width: auto;
   align-items: center;
   justify-content: center;
   gap: 8px;
   min-height: 54px;
   padding: 4px 10px;
   background: var(--efb-sp-dot-bg);
   margin-inline-start: -15px;
   clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
}
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item:first-of-type {
   margin-inline-start: 0;
   clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item:last-of-type {
   clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
}
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb.efb-sp__item::before {
   width: auto;
   height: auto;
   font-size: 16px;
   background: none;
}
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb.efb-sp__label { font-weight: 600; white-space: nowrap; }
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item.is-active { background: var(--efb-sp-dot); }
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item.is-done { background: var(--efb-sp-dot); filter: brightness(.82); }
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item.is-done::before,
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item.is-active::before { color: var(--efb-sp-dot-on); }
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item.is-done .efb.efb-sp__label,
.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item.is-active .efb.efb-sp__label {
   color: var(--efb-sp-dot-on) !important;
   opacity: 1;
}
.efb-sp--compact.efb-sp--chevrons #steps-efb.efb-sp__steps {
   flex-wrap: nowrap;
   overflow-x: auto;
   overflow-y: hidden;
   scrollbar-width: thin;
   -webkit-overflow-scrolling: touch;
   padding-bottom: 6px;
   /* A ribbon that scrolls clips against its scroll container, so the rounded
      ends it would otherwise keep are dropped. */
   border-radius: 0;
}
.efb-sp--compact.efb-sp--chevrons #steps-efb.efb-sp__steps .efb.efb-sp__item {
   flex: 0 0 auto;
   min-width: 74px;
   min-height: 46px;
}
.efb-sp--compact.efb-sp--chevrons #steps-efb.efb-sp__steps .efb.efb-sp__item::after {
   content: attr(data-num);
   display: block;
   position: static;
   width: auto;
   height: auto;
   background: none;
   font-size: 13px;
   font-weight: 600;
}
.efb-sp--compact.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item.is-done::after,
.efb-sp--compact.efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item.is-active::after { color: var(--efb-sp-dot-on); }

/* clip-path is written in physical coordinates, so the ribbon is mirrored as a
   whole and each item's content mirrored back. */
.efb-sp--chevrons.efb-sp--rtl #steps-efb.efb-sp__steps .efb.efb-sp__item { transform: scaleX(-1); }
.efb-sp--chevrons.efb-sp--rtl #steps-efb.efb-sp__steps .efb.efb-sp__item > * { transform: scaleX(-1); }
.efb-sp--chevrons.efb-sp--rtl #steps-efb.efb-sp__steps .efb.efb-sp__item::before,
.efb-sp--chevrons.efb-sp--rtl #steps-efb.efb-sp__steps .efb.efb-sp__item::after { transform: scaleX(-1); }

@media screen and (max-width: 782px) {
   .efb-sp--chevrons #steps-efb.efb-sp__steps .efb.efb-sp__item {
      min-height: 46px;
      margin-inline-start: -10px;
      flex: 0 0 auto;
      min-width: 42px;
      padding: 4px 6px;
      clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
   }
   .efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item:first-of-type {
      clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
   }
   .efb-sp--chevrons #steps-efb.efb-sp__steps .efb-sp__item:last-of-type {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
   }
   /* The step being filled in is the only one that keeps its name, and it takes
      whatever the others leave rather than an equal share of the row. */
   .efb-sp--chevrons:not(.efb-sp--compact) #steps-efb.efb-sp__steps .efb-sp__item.is-active {
      flex: 1 1 auto;
      min-width: 0;
      padding-inline-end: 14px;
   }
   .efb-sp--chevrons:not(.efb-sp--compact) #steps-efb.efb-sp__steps .efb-sp__item.is-active .efb.efb-sp__label {
      display: block;
      font-size: 14px;
   }
}

/* == efb-sp:prog-bar == */
/* The id carries the track colour so the legacy prg_bar_color class - which
   used to sit here and paint the whole strip - cannot win: the author's colour
   now belongs to the fill, which is what a progress bar is supposed to show. */
#f-progress-efb .efb.progress.efb-sp__track {
   display: flex;
   width: 100%;
   height: 12px;
   margin: 0;
   overflow: hidden;
   border-radius: 100px;
   background-color: var(--efb-sp-track) !important;
}
#f-progress-efb .efb.efb-sp__fill {
   display: block;
   position: relative;
   width: 0;
   height: 100%;
   border-radius: 100px;
   background-color: var(--efb-sp-accent);
   transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
/* A sheen rather than a gradient background: background-image would paint over
   the author's background-color and hide the colour they picked. */
#f-progress-efb .efb.efb-sp__fill::before {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: inherit;
   background-image: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 65%);
   pointer-events: none;
}
.efb-sp.efb-sp--rtl #f-progress-efb .efb.progress.efb-sp__track { direction: rtl; }
.efb-sp.efb-sp--rtl #f-progress-efb .efb.efb-sp__fill::before {
   background-image: linear-gradient(-90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 65%);
}
@media screen and (max-width: 782px) {
   #f-progress-efb .efb.progress.efb-sp__track { height: 8px; }
}

/* == efb-sp:prog-segments == */
.efb-sp .efb.efb-sp__segs {
   display: flex;
   gap: 6px;
   width: 100%;
   margin: 0 0 10px 0;
}
.efb-sp .efb.efb-sp__seg {
   display: block;
   flex: 1 1 0;
   min-width: 4px;
   height: 10px;
   border-radius: 100px;
   background: var(--efb-sp-track);
   transition: background-color .4s ease;
}
.efb-sp .efb-sp__seg.is-done { background: var(--efb-sp-accent-dark); }
.efb-sp .efb-sp__seg.is-active { background: var(--efb-sp-accent); }
.efb-sp--prog-segments .efb.efb-sp__meta { margin: 0; }
.efb-sp.efb-sp--rtl .efb.efb-sp__segs { direction: rtl; }
@media screen and (max-width: 782px) {
   .efb-sp .efb.efb-sp__seg { height: 8px; }
}

/* == efb-sp:prog-ring == */
.efb-sp .efb.efb-sp__ringwrap {
   display: flex;
   align-items: center;
   gap: 16px;
}
.efb-sp .efb.efb-sp__ring {
   display: flex;
   align-items: center;
   justify-content: center;
   flex: 0 0 auto;
   width: 58px;
   height: 58px;
   border-radius: 50%;
   background: conic-gradient(var(--efb-sp-accent) calc(var(--efb-sp-pct, 0) * 1%), var(--efb-sp-track) 0);
   transition: background .4s ease;
}
.efb-sp .efb.efb-sp__ring-in {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 44px;
   height: 44px;
   border-radius: 50%;
   background: #ffffff;
   font-size: 14px;
   font-weight: 700;
   color: var(--efb-sp-accent);
}
.efb-sp .efb.efb-sp__ringtext {
   display: flex;
   flex-direction: column;
   gap: 3px;
   min-width: 0;
}
.efb-sp .efb.efb-sp__ringtext .efb-sp__curname { font-size: 16px; font-weight: 600; }
.efb-sp .efb.efb-sp__ringsub {
   font-size: 13px;
   color: #8a91b4;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}
.efb-sp.efb-sp--rtl .efb.efb-sp__ring {
   background: conic-gradient(from 0deg, var(--efb-sp-track) calc((100 - var(--efb-sp-pct, 0)) * 1%), var(--efb-sp-accent) 0);
   transform: scaleX(-1);
}
.efb-sp.efb-sp--rtl .efb.efb-sp__ring-in { transform: scaleX(-1); }
@media screen and (max-width: 782px) {
   .efb-sp .efb.efb-sp__ring { width: 52px; height: 52px; }
   .efb-sp .efb.efb-sp__ring-in { width: 40px; height: 40px; font-size: 13px; }
}

/* == efb-sp:picker == */
/* wp-admin only: the two style pickers in the form settings panel. Never
   inlined on the front end, which has no settings panel. */
.efb.efb-sp-picker {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 8px;
   margin: 0 0 6px 0;
}
.efb.efb-sp-picker__opt {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 7px;
   padding: 10px 6px 8px 6px;
   border: 1px solid #dde2f0;
   border-radius: 12px;
   background: #fff;
   cursor: pointer;
   transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.efb.efb-sp-picker__opt:hover { border-color: #b9c3e6; background: #fbfcff; }
.efb.efb-sp-picker__opt.active {
   border-color: #202a8d;
   background: #f5f7ff;
   box-shadow: 0 0 0 3px rgba(32, 42, 141, .12);
}
.efb.efb-sp-picker__name {
   font-size: 11px;
   font-weight: 600;
   line-height: 1.3;
   text-align: center;
   color: #4a5075;
}
.efb.efb-sp-picker__opt.active .efb-sp-picker__name { color: #202a8d; }
.efb .efb-sp-picker__art {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
   height: 26px;
   pointer-events: none;
}
.efb .efb-sp-picker__art svg { width: 100%; height: 100%; overflow: visible; }
/* The thumbnails are drawn left to right, and every one of them reads as a
   direction: done steps behind, the arrow pointing forward, the bar filling
   towards the end. In an RTL panel that is backwards, and the ribbon in
   particular would advertise arrows pointing the opposite way to the ones the
   form actually draws. There is no text inside them, so mirroring the whole
   drawing is enough. */
[dir="rtl"] .efb .efb-sp-picker__art svg { transform: scaleX(-1); }
