@charset "UTF-8";

/* ==================================================
   BASE SWITCHER STYLE (Default)
   ================================================== */
.yesno-wrapper {
  display: inline-block;
  position: relative;
}

.switcher {
  width: 18rem;
  height: 28px;
  margin: 0;
  position: relative;
}

.switcher input {
  top: 0;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  width: 62px;
  height: 28px;
  margin: 0;
  position: absolute;
  inset-inline-start: 0;
}

.switcher input:checked {
  z-index: 1;
}

.switcher input:checked + label {
  z-index: 0;
  opacity: 1;
}

.switcher input:not(:checked) + label {
  z-index: 3;
  opacity: 0;
}

.switcher input:focus ~ .toggle-outside {
  border-color: var(--focus);
  box-shadow: 0 0 0 .2rem #1a466b40;
}

.switcher label {
  margin-bottom: 0;
  text-align: start;
  width: auto;
  min-width: 6rem;
  height: 100%;
  margin-inline-start: 70px;
  line-height: 28px;
  transition: opacity .25s;
  display: inline-block;
  position: absolute;
  inset-inline-start: 0;
}

.switcher .toggle-outside {
  box-sizing: border-box;
  background: #d3d3d3;
  border: 1px solid #0000002e;
  width: 58px;
  height: 100%;
  transition: all .2s;
  position: absolute;
  inset-inline-start: 0;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.switcher input ~ input:checked ~ .toggle-outside {
  background: #2f7d32;
}

.switcher .toggle-inside {
  background: #fff;
  width: 28px;
  height: 28px;
  transition: all .4s;
  position: absolute;
  left: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switcher input ~ input:checked ~ .toggle-outside .toggle-inside {
  left: 30px;
}

/* Hide labels when show_yesno_text is disabled */
.switcher.no-label label {
  display: none;
}

.switcher.no-label {
  width: 58px;
}

/* ==================================================
   SIZE VARIANTS
   ================================================== */
/* Small */
.switcher--sm {
  height: 20px;
}

.switcher--sm input {
  width: 44px;
  height: 20px;
}

.switcher--sm label {
  margin-inline-start: 52px;
  line-height: 20px;
  font-size: 0.875rem;
}

.switcher--sm .toggle-outside {
  width: 40px;
}

.switcher--sm .toggle-inside {
  width: 18px;
  height: 18px;
}

.switcher--sm input ~ input:checked ~ .toggle-outside .toggle-inside {
  left: 21px;
}

.switcher--sm.no-label {
  width: 40px;
}

/* Large */
.switcher--lg {
  height: 36px;
}

.switcher--lg input {
  width: 76px;
  height: 36px;
}

.switcher--lg label {
  margin-inline-start: 86px;
  line-height: 36px;
  font-size: 1.125rem;
}

.switcher--lg .toggle-outside {
  width: 72px;
}

.switcher--lg .toggle-inside {
  width: 34px;
  height: 34px;
}

.switcher--lg input ~ input:checked ~ .toggle-outside .toggle-inside {
  left: 37px;
}

.switcher--lg.no-label {
  width: 72px;
}

/* ==================================================
   COLOR VARIANTS
   ================================================== */
/* Status Colors: Red when No, Green when Yes */
.switcher--status .toggle-outside {
  background: #d32f2f;
}

.switcher--status input ~ input:checked ~ .toggle-outside {
  background: #2f7d32;
}

/* ==================================================
   SHAPE VARIANTS
   ================================================== */
/* Square (default - slightly rounded like original) */
.switcher--square .toggle-outside {
  border-radius: 8px;
}

.switcher--square .toggle-inside {
  border-radius: 50%;
}

/* Rounded (fully rounded pill) */
.switcher--rounded .toggle-outside {
  border-radius: 999px;
}

.switcher--rounded .toggle-inside {
  border-radius: 50%;
}



