
#main-window:not([customizing]) #nav-bar :is(#back-button, #forward-button)[disabled=true]:is([open],[checked],:hover:active,:active) > .toolbarbutton-icon,
#main-window:not([customizing]) #nav-bar :is(#back-button, #forward-button)[disabled=true]:is([open],[checked],:hover:active,:active) > .toolbarbutton-text,
#main-window:not([customizing]) #nav-bar :is(#back-button, #forward-button)[disabled=true]:is([open],[checked],:hover:active,:active) > .toolbarbutton-badge-stack,
#nav-bar :is(#back-button, #forward-button)[type="menu-button"] .toolbarbutton-icon,
#nav-bar :is(#back-button, #forward-button) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
#nav-bar :is(#back-button, #forward-button)[open] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#nav-bar :is(#back-button, #forward-button)[open] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
#nav-bar :is(#back-button, #forward-button):not([checked]):not([open]):not(:active) > .toolbarbutton-icon,
#nav-bar :is(#back-button, #forward-button):not([checked]):not([open]):not(:active) > .toolbarbutton-text,
#nav-bar :is(#back-button, #forward-button):not([checked]):not([open]):not(:active) > .toolbarbutton-badge-stack,
#nav-bar :is(#back-button, #forward-button):not([buttonover]):not([open]):not(:active) > .toolbarbutton-menubutton-dropmarker:not([disabled]) > .dropmarker-icon,
#nav-bar :is(#back-button, #forward-button):not([disabled=true]) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
#nav-bar :is(#back-button, #forward-button):not([disabled=true]):is(:hover,[open]) > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#nav-bar :is(#back-button, #forward-button):not([disabled=true]):is(:hover,[open]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
#nav-bar :is(#back-button, #forward-button):not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-icon,
#nav-bar :is(#back-button, #forward-button):not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-text,
#nav-bar :is(#back-button, #forward-button):not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-stack,
#nav-bar :is(#back-button, #forward-button):not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled]) > .dropmarker-icon,
#nav-bar :is(#back-button, #forward-button)[type="menu"][open]:not([disabled]) .toolbarbutton-icon,
#nav-bar :is(#back-button, #forward-button)[type="menu-button"]:not([open]):hover:not([disabled]):active .toolbarbutton-icon,
#nav-bar :is(#back-button, #forward-button) > .toolbarbutton-menubutton-button:not([disabled=true]):is(:hover:active,:active, [open]) > .toolbarbutton-icon,
#nav-bar :is(#back-button, #forward-button)[open] > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon,
#nav-bar :is(#back-button, #forward-button):not([disabled=true]):is([open],[checked],:hover:active,:active) > .toolbarbutton-icon,
#nav-bar :is(#back-button, #forward-button):not([disabled=true]):is([open],[checked],:hover:active,:active) > .toolbarbutton-text,
#nav-bar :is(#back-button, #forward-button):not([disabled=true]):is([open],[checked],:hover:active,:active) > .toolbarbutton-badge-stack  {
  background: unset !important;
  border-color: unset !important;
  box-shadow: unset !important;
  transition: unset !important;
  fill: unset !important;
  outline:unset !important;
}


#main-window #navigator-toolbox #nav-bar :is(#back-button, #forward-button) .toolbarbutton-icon {
  padding: 0 !important;
  background: unset !important;
  box-shadow: unset !important;
  border: unset !important;
  border-radius: unset !important;
  outline:unset !important;
}

#main-window #navigator-toolbox #nav-bar #back-button .toolbarbutton-icon {
  width: 26px !important;
  height: 26px !important;
}


#main-window #navigator-toolbox #nav-bar #forward-button .toolbarbutton-icon {
  width: 26px !important;
  height: 26px !important;
}

#main-window #nav-bar #nav-bar-customization-target > :is(#back-button) {
  padding: unset !important;
}


#main-window #navigator-toolbox #nav-bar :is(#back-button, #forward-button):not([disabled]):hover .toolbarbutton-icon {
  filter: brightness(1.3) !important;
}
#main-window #navigator-toolbox #nav-bar :is(#back-button, #forward-button):not([disabled]):is(:active,:hover:active,[open]) .toolbarbutton-icon {
  filter: brightness(0.9) contrast(140%) !important;
}
#main-window #navigator-toolbox #nav-bar #back-button[disabled] .toolbarbutton-icon {
  opacity: 1.0 !important;
}
#main-window #navigator-toolbox #nav-bar :is(#back-button, #forward-button)[disabled] {
  opacity: 1.0 !important;
}


#back-button > image,
#forward-button > image {
    outline: none !important;
}

#back-button:hover, #back-button:hover .toolbarbutton-icon{
  background: transparent !important;
}

/*-------------------------------------------------*/

#nav-bar #back-button .toolbarbutton-icon{
  margin-left: 6px !important;
}

#main-window #navigator-toolbox #nav-bar #back-button .toolbarbutton-icon {
  list-style-image: url("../images/back.png") !important;
}

#main-window #navigator-toolbox #nav-bar #back-button[disabled] .toolbarbutton-icon {
  list-style-image: url("../images/back_dim.png") !important;
  width:26px !important;
  height:26px !important;
}
#main-window #navigator-toolbox #nav-bar #forward-button .toolbarbutton-icon {
  list-style-image: url("../images/back.png") !important;
  transform: scaleX(-1);
}

#main-window #navigator-toolbox #nav-bar #forward-button[disabled] .toolbarbutton-icon {
  list-style-image: url("../images/back_dim.png") !important;
  width:26px !important;
  height:26px !important;
  transform: scaleX(-1);
}

/*--------------------------Library Back and Forward-----------*/
#placesToolbar #forward-button .toolbarbutton-icon{
  transform: scaleX(-1);

}

#placesToolbar #back-button .toolbarbutton-icon{
  margin-left: 4px !important;
}
#placesToolbar #forward-button{
  transform: translateX(-3px)}
#placesToolbar #back-button::before{
  z-index: -1;
  content: "" ;
  display: inline-block ;
  position: absolute;
  left: 7px;
  top:2px;
  width: 57px ;
  height: 25px ;
  background-image: url('../images/frame.png') ;
  background-size: cover ;
  background-repeat: no-repeat ;
}
