/* BioFitness theme — light = unchanged; dark = overrides */

/* Toggle in header flex */
.bf-theme-toggle-slot{
  display:inline-flex;
  align-items:center;
  align-self:center;
  margin:0 12px 0 8px;
  flex:0 0 auto;
  line-height:0;
  order:0;
}
.t-menu-base__additionalwrapper{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap;
}
.t-menu-base__additionalwrapper .t-sociallinks{order:1;}
.t-menu-base__additionalwrapper .bf-theme-toggle-slot{order:2;}
.t-menu-base__additionalwrapper .t-menu-base__buttons{order:3;}

#bf-theme-toggle{
  position:static;
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid rgba(17,17,17,.2);
  background:#fff;
  color:#111;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
  padding:0;
  line-height:0;
  vertical-align:middle;
  -webkit-tap-highlight-color:transparent;
}
#bf-theme-toggle:hover{border-color:#dd1717;}
#bf-theme-toggle:focus-visible{outline:2px solid #dd1717;outline-offset:2px;}
#bf-theme-toggle svg{width:18px;height:18px;display:block;}
#bf-theme-toggle .bf-theme-icon-sun{display:none;}
#bf-theme-toggle .bf-theme-icon-moon{display:block;}
html[data-theme="dark"] #bf-theme-toggle{
  background:#2a2a2a;
  color:#f2f2f2;
  border-color:rgba(255,255,255,.28);
}
html[data-theme="dark"] #bf-theme-toggle .bf-theme-icon-sun{display:block;}
html[data-theme="dark"] #bf-theme-toggle .bf-theme-icon-moon{display:none;}
.bf-theme-toggle-host,
.bf-theme-toggle-host .t-width,
.bf-theme-toggle-host .t-container{
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
}
/* Fallback until JS mounts into header: keep clear of phone+CTA (~380px) */
#bf-theme-toggle:not([data-bf-mounted="1"]){
  position:fixed;
  top:18px;
  right:380px;
  z-index:100000;
}
@media (max-width:1400px){
  #bf-theme-toggle:not([data-bf-mounted="1"]){right:320px;}
}
@media (max-width:1200px){
  .bf-theme-toggle-slot{margin:0 8px;}
  #bf-theme-toggle{width:34px;height:34px;}
  #bf-theme-toggle:not([data-bf-mounted="1"]){
    top:auto;
    bottom:96px;
    left:16px;
    right:auto;
  }
}

html[data-theme="dark"]{color-scheme:dark;}
html[data-theme="dark"] body,
html[data-theme="dark"] .t-body,
html[data-theme="dark"] #allrecords{
  background-color:#111111!important;
  color:#f0f0f0!important;
}

html[data-theme="dark"] .t-rec{background-color:#141414!important;}
html[data-theme="dark"] .t-rec .t-cover,
html[data-theme="dark"] .t-cover__carrier{background-color:transparent!important;}
html[data-theme="dark"] .t396__artboard{background-color:#141414!important;}
html[data-theme="dark"] .t-menu-base,
html[data-theme="dark"] .tmenu-mobile,
html[data-theme="dark"] .t-menubase,
html[data-theme="dark"] .t1272,
html[data-theme="dark"] .t450__container,
html[data-theme="dark"] .t450__panel,
html[data-theme="dark"] .t450__mobile,
html[data-theme="dark"] .t450__burger_container,
html[data-theme="dark"] .t-menusub__menu,
html[data-theme="dark"] .t-menusub__list{
  background-color:#111111!important;
}

html[data-theme="dark"] .t-card,
html[data-theme="dark"] .t-card__col,
html[data-theme="dark"] .t-item,
html[data-theme="dark"] .t-product,
html[data-theme="dark"] .t-store,
html[data-theme="dark"] .t1069__wrapper,
html[data-theme="dark"] .t1069__content,
html[data-theme="dark"] .t1196__content,
html[data-theme="dark"] .t1196__content-inner,
html[data-theme="dark"] .t1196__item,
html[data-theme="dark"] .t778__content,
html[data-theme="dark"] .t778__textwrapper,
html[data-theme="dark"] .t778__wrapper,
html[data-theme="dark"] .t539__wrapper,
html[data-theme="dark"] .t539__content,
html[data-theme="dark"] .t491__col,
html[data-theme="dark"] .t951__card,
html[data-theme="dark"] .t-bgimg + .t-card__container,
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background-color:#ffffff"],
html[data-theme="dark"] [style*="background-color: #ffffff"],
html[data-theme="dark"] [style*="background-color:rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background-color: rgb(255, 255, 255)"]{
  background-color:#1a1a1a!important;
}

html[data-theme="dark"] #allrecords,
html[data-theme="dark"] #allrecords h1,
html[data-theme="dark"] #allrecords h2,
html[data-theme="dark"] #allrecords h3,
html[data-theme="dark"] #allrecords h4,
html[data-theme="dark"] #allrecords h5,
html[data-theme="dark"] #allrecords h6,
html[data-theme="dark"] #allrecords p,
html[data-theme="dark"] #allrecords li,
html[data-theme="dark"] #allrecords td,
html[data-theme="dark"] #allrecords th,
html[data-theme="dark"] #allrecords label,
html[data-theme="dark"] #allrecords .t-title,
html[data-theme="dark"] #allrecords .t-text,
html[data-theme="dark"] #allrecords .t-descr,
html[data-theme="dark"] #allrecords .t-name,
html[data-theme="dark"] #allrecords .t-heading,
html[data-theme="dark"] #allrecords .t-uptitle,
html[data-theme="dark"] #allrecords .t-section__title,
html[data-theme="dark"] #allrecords .t-card__title,
html[data-theme="dark"] #allrecords .t-card__descr,
html[data-theme="dark"] #allrecords .t-card__text,
html[data-theme="dark"] #allrecords .t-card__uptitle,
html[data-theme="dark"] #allrecords .t-sociallinks__item a,
html[data-theme="dark"] #allrecords .t-menusub__link-item,
html[data-theme="dark"] #allrecords .t-menu__link-item,
html[data-theme="dark"] #allrecords .t-menu-base__list-item,
html[data-theme="dark"] #allrecords .t-menu-base a,
html[data-theme="dark"] #allrecords .t450__list_item a,
html[data-theme="dark"] #allrecords .t450__right_descr,
html[data-theme="dark"] #allrecords .t-feed__post-title,
html[data-theme="dark"] #allrecords .t-feed__post-descr,
html[data-theme="dark"] #allrecords .t-input-title,
html[data-theme="dark"] #allrecords .t-checkbox__control,
html[data-theme="dark"] #allrecords .t1196__title,
html[data-theme="dark"] #allrecords .t1196__descr,
html[data-theme="dark"] #allrecords .t1196__price,
html[data-theme="dark"] #allrecords .t1069__title,
html[data-theme="dark"] #allrecords .t1069__descr,
html[data-theme="dark"] #allrecords .t1069__price,
html[data-theme="dark"] #allrecords .t778__title,
html[data-theme="dark"] #allrecords .t778__descr,
html[data-theme="dark"] #allrecords .t539__title,
html[data-theme="dark"] #allrecords .t539__descr,
html[data-theme="dark"] #allrecords .t539__text,
html[data-theme="dark"] #allrecords .t491__title,
html[data-theme="dark"] #allrecords .t491__descr{
  color:#f2f2f2!important;
}

html[data-theme="dark"] .t-menu-base__button .t-btnflex,
html[data-theme="dark"] .t-menu-base__button .t-btnflex__text,
html[data-theme="dark"] .t-menu-base__buttons .t-btn{
  color:#f2f2f2!important;
}

html[data-theme="dark"] .t-menu-base__imglogo,
html[data-theme="dark"] .t-menu-base__imglogomobile,
html[data-theme="dark"] .t-menu-base__logo img{
  filter:invert(1) hue-rotate(180deg);
}
html[data-theme="dark"] .t-sociallinks__svg,
html[data-theme="dark"] .t-sociallinks__item svg{
  filter:invert(1) hue-rotate(180deg);
}

html[data-theme="dark"] .t-menusub__menu{
  border-color:rgba(255,255,255,.12)!important;
}
html[data-theme="dark"] .t-input,
html[data-theme="dark"] .t-input-group .t-input,
html[data-theme="dark"] .t-select,
html[data-theme="dark"] textarea.t-input{
  background-color:#1e1e1e!important;
  color:#f2f2f2!important;
  border-color:rgba(255,255,255,.35)!important;
}
html[data-theme="dark"] .t-input::placeholder,
html[data-theme="dark"] textarea.t-input::placeholder{
  color:rgba(242,242,242,.55)!important;
}

/* Checkboxes: visible light box on dark (Tilda sets opacity:.6) */
html[data-theme="dark"] .t-checkbox__control .t-checkbox__indicator,
html[data-theme="dark"] .t-checkbox__indicator{
  opacity:1!important;
  background-color:#3a3a3a!important;
  border:2px solid #ffffff!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.35)!important;
}
html[data-theme="dark"] .t-checkbox__control:hover .t-checkbox__indicator,
html[data-theme="dark"] .t-checkbox:focus + .t-checkbox__indicator{
  border-color:#dd1717!important;
  box-shadow:0 0 0 1px rgba(221,23,23,.45)!important;
}
html[data-theme="dark"] .t-checkbox:checked + .t-checkbox__indicator{
  opacity:1!important;
  background-color:#dd1717!important;
  border-color:#dd1717!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .t-checkbox:checked + .t-checkbox__indicator::after,
html[data-theme="dark"] .t-checkbox:checked + .t-checkbox__indicator:after{
  border-color:#ffffff!important;
  border-bottom-color:#ffffff!important;
  border-right-color:#ffffff!important;
}
html[data-theme="dark"] .t-checkbox__indicator::before,
html[data-theme="dark"] .t-checkbox__indicator::after{
  border-color:#ffffff!important;
}
html[data-theme="dark"] input[type="checkbox"].t-checkbox{
  accent-color:#dd1717;
}

html[data-theme="dark"] .t-divider,
html[data-theme="dark"] hr{
  border-color:rgba(255,255,255,.12)!important;
  background-color:rgba(255,255,255,.12)!important;
}
html[data-theme="dark"] #allrecords a{color:#f2f2f2;}

html[data-theme="dark"] #allrecords [style*="#dd1717"],
html[data-theme="dark"] #allrecords [style*="#DD1717"],
html[data-theme="dark"] #allrecords [style*="#e31e24"],
html[data-theme="dark"] #allrecords [style*="#E31E24"],
html[data-theme="dark"] #allrecords [style*="#cd0000"],
html[data-theme="dark"] #allrecords [style*="#CD0000"],
html[data-theme="dark"] #allrecords [style*="#e4181f"],
html[data-theme="dark"] #allrecords [style*="rgb(221, 23, 23)"],
html[data-theme="dark"] #allrecords [style*="rgb(227, 30, 36)"],
html[data-theme="dark"] #allrecords [style*="rgb(205, 0, 0)"],
html[data-theme="dark"] #allrecords [style*="rgb(228, 24, 31)"]{
  color:#dd1717!important;
}

html[data-theme="dark"] #allrecords .t-btn[style*="background-color:#dd"],
html[data-theme="dark"] #allrecords .t-btn[style*="background-color: #dd"],
html[data-theme="dark"] #allrecords .t-btn[style*="background:#dd"],
html[data-theme="dark"] #allrecords .t-btn[style*="background: #dd"],
html[data-theme="dark"] #allrecords .t-submit[style*="background"],
html[data-theme="dark"] #allrecords a.t-btn[style*="#dd1717"],
html[data-theme="dark"] #allrecords .t-btnflex_type_button2,
html[data-theme="dark"] #allrecords .t-btnflex[style*="background"]{
  color:#ffffff!important;
}

html[data-theme="dark"] #allrecords .t-card__btn,
html[data-theme="dark"] #allrecords .t-card__btn .t-btnflex__text,
html[data-theme="dark"] #allrecords .t778__btn,
html[data-theme="dark"] #allrecords .t539__btn{
  color:#f2f2f2!important;
  border-color:#dd1717!important;
}

html[data-theme="dark"] #bf-crumbs,
html[data-theme="dark"] .bf-crumbs,
html[data-theme="dark"] .bf-crumbs a{
  color:#f2f2f2!important;
  background:transparent!important;
}
html[data-theme="dark"] .bf-crumbs__here,
html[data-theme="dark"] #bf-crumbs .bf-crumbs__here{
  color:#dd1717!important;
}
html[data-theme="dark"] .t-menuburger span,
html[data-theme="dark"] .t-menuburger::after,
html[data-theme="dark"] .t-menuburger::before{
  background-color:#f2f2f2!important;
}
