/* A1 theme switch — supplied reference design, isolated and border-free. */
.theme-switch{
  position:relative;
  display:flex;
  justify-content:center;
  direction:rtl;
  flex:0 0 auto;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  line-height:0;
}
#theme-checkbox{display:none;}
#theme-checkbox + label{
  font-size:2rem;
  height:1em;
  width:2.5em;
  border-radius:.25em;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  background-color:#cecece;
  position:relative;
  margin:0;
  padding:0;
  border:0;
  box-shadow:none;
  overflow:hidden;
  box-sizing:border-box;
  line-height:1;
}
#theme-checkbox:checked + label{background-color:#3a3a3a;}
#theme-checkbox + label:active{transform:scale(.85);transition:transform .2s;}
#theme-checkbox + label div{
  width:.8em;
  height:.8em;
  border-radius:inherit;
  position:absolute;
  top:.1em;
  left:.1em;
  z-index:10;
  transition:.5s cubic-bezier(1,.33,.11,1.34);
  background-color:#f2f2f2;
  box-shadow:none;
}
#theme-checkbox:checked + label div{left:1.6em;background-color:#212121;}
#theme-checkbox + label span{display:flex;}
#theme-checkbox + label svg{display:inline-block;height:1em;width:1em;padding:.15em;box-sizing:border-box;}
#theme-checkbox + label span:first-of-type{color:#3a3a3a;}
#theme-checkbox + label span:last-of-type{color:#cecece;}

/* Header placement */
.a1-unified-header .header-actions{direction:ltr!important;}
.a1-unified-header .header-actions .theme-switch{order:1!important;}
.a1-unified-header .header-actions .header-cta-price{order:2!important;}
.a1-unified-header .header-actions .header-cta-expert{order:3!important;}

@media(max-width:900px){
  .a1-main-header.a1-unified-header .mobile-theme-row .theme-switch{
    display:flex!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
  }
  #theme-checkbox + label{font-size:1.75rem;}
}
