/************ Evidon cookie cookie consent customization - START *************/

/**
 * Media queries for cookie consent banner - Desktop
 */
@media only screen and (min-width: 1001px) {
  div#_evidon_banner {
    width: 1040px !important;
    height: 112px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  div#_evidon-message {
    margin: 21px 0px 19px 20px !important;
    text-align: left;
    font-size: 14px !important;
    width: 662px !important;
    height: 72px;
    font-weight: 500 !important;
    font-family: SSTPro-Roman !important;
    line-height: 1.71;
    letter-spacing: normal;
    color: #ffffff !important;
  }

  div#_evidon-message a {
    text-decoration: underline white !important;
    color: #ffff;
    font-family: SSTPro-Medium;
  }
}

/**
 * Media queries for cookie consent banner - Mobile
 */
 @media only screen and (max-width: 1000px) {
  div#_evidon-message a {
    text-decoration: underline white !important;
    color: #ffff;
    font-family: SSTPro-Medium;
  }
}

/************ Evidon cookie cookie consent customization - END *************/

/**
 * Handle hover and active state for accept and decline button on the banner
 */
 button#_evidon-decline-button:focus,
  button#_evidon-accept-button:focus {	
  outline: 0 !important;	
  border: solid 1px #ffffff !important;	
  background-color: #cccccc !important;	
  box-shadow: inset 0 0 0 0.0625rem #000 !important;	
}	
button#_evidon-decline-button:hover,
button#_evidon-accept-button:hover {	
  border: solid 1px #ffffff !important;	
  box-shadow: inset 0 0 0 0.0625rem #000 !important;	
}

/* 
* Hides show purpose button on the cookie banner (a.k.a. site notice)
*/
button#iabpurposebutton {
  display: none;
}

/************ Evidon cookie preference customization START *************/

/* 
* Hides show vendor button on the cookie banner (a.k.a. site notice)
*/
button#iabvendorbutton {
  display: none;
}

/**
 * Toggle Swtich - ON
 */
.evidon-switch-slider.slideron {
  background-color: #0070cc !important;
}

/**
 * Toggle Switch - OFF
 */
.evidon-switch-slider {
  background-color: #cacaca !important;
}

button#evidon-prefdiag-closeicon:hover,
button#evidon-prefdiag-closeicon:active,
button#evidon-prefdiag-closeicon:focus {
  border: 0px !important;
}

/**
 * Hides all '1 of X allowed' text and switch
 */
label[id$="-cat-all-toggle"],
label[id$="-cat-all-toggle-label"] {
  display: none;
}

/**
 * This is overcome color changed by JS since Evidon uses JS to 
 * midify button text color when toggling different tabs
 */
button#evidon-prefdiag-accept {
  color: #ffffff !important;
  margin-right: 0px !important;
}

/**
 * Target all anchors displayed on preference dialog.
 * This is also done through Evidon portal however in cases it didn't work,
 * hence this would serve as a fallback option just in case.
 */
#evidon-prefdiag-overlay a {
  color: #0070cc;
}

@media only screen and (max-width: 1047px) {
  div#evidon-prefdiag-overlay {
    top: 0px !important;
    padding: 0px 0px 0px 0px !important;
    width: 100% !important;
    height: 100% !important;
  }

  div#evidon-prefdiag-navcontainer {
    inset: 0px 0px 81px !important;
  }

  div#evidon-prefdiag-tabcontainer {
    display: inline-block !important;
  }

  ul#evidon-navigation-list > li > div {
    text-align: center !important;
    border-top: 1px solid;
    padding: 20px 32px 27px 20px !important;
  }

  div#evidon-prefdialog-tabpanel {
    display: block !important;
    position: fixed !important;
    top: 149px !important;
    left: 0 !important;
    width: 100% !important;
  }

  div#evidon-prefdiag-tabfooter {
    height: 81px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  .evidon-prefdiag-acceptbtn:focus {
    outline: 0 !important;
    border: solid 1px #0070cc !important;
    background-color: #005499 !important;
    box-shadow: inset 0 0 0 0.0625rem #fff !important;
}
  .evidon-prefdiag-acceptbtn:hover {
    border: solid 1px #0070cc !important;
    box-shadow: inset 0 0 0 0.0625rem #fff !important;
    color: #fff !important;
}

  .evidon-prefdiag-declinebtn:focus {
  outline: 0 !important;
  border: solid 1px #d1d1d1 !important;
  background-color: #b8b8b8 !important;
  box-shadow: inset 0 0 0  0.0625rem #fff !important;
}
  .evidon-prefdiag-declinebtn:hover {
  border: solid 1px #d1d1d1 !important;
  box-shadow: inset 0 0 0  0.0625rem #fff !important;
  background-color: #d1d1d1 !important;
}
}

@media only screen and (min-width: 1048px) {
  div#evidon-prefdiag-overlay {
    top: 127px !important;
    left: 0px !important;
    right: 0px !important;
    padding: 0px 10px 0px 0px !important;
  }
  div#evidon-prefdiag-tabcontainer {
    margin: 50px 35px 23px 24px !important;
    height: 373px !important;
  }

  div#evidon-prefdiag-tabcontainer > div {
    height: 100% !important;
    box-sizing: content-box;
    padding: 0px !important;
  }

  div#evidon-prefdialog-tabpanel {
    padding: 50px 35px 23px 25px !important;
  }

  div#evidon-prefdiag-closeicon {
    top: 31px;
    right: 30px;
    height: 24px;
    width: 24px;
  }

  div#evidon-prefdiag-tabfooter {
    font-family: SSTPro;
    font-size: 15px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
    height: 79px !important;
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
    margin-left: 25px !important;
    margin-right: 35px !important;
    width: auto !important;
    border-top: 1px solid #979797 !important;
  }

  .evidon-prefdiag-acceptbtn:focus {
    outline: 0 !important;
    border: solid 1px #0070cc !important;
    background-color: #005499 !important;
    box-shadow: inset 0 0 0 0.0625rem #fff !important;
}
.evidon-prefdiag-acceptbtn:hover {
    border: solid 1px #0070cc !important;
    box-shadow: inset 0 0 0 0.0625rem #fff !important;
    color: #fff !important;
}

.evidon-prefdiag-declinebtn:focus {
  outline: 0 !important;
  border: solid 1px #d1d1d1 !important;
  background-color: #b8b8b8 !important;
  box-shadow: inset 0 0 0  0.0625rem #fff !important;
}
.evidon-prefdiag-declinebtn:hover {
  border: solid 1px #d1d1d1 !important;
  box-shadow: inset 0 0 0  0.0625rem #fff !important;
  background-color: #d1d1d1 !important;
}

  div#evidon-prefdiag-nav-spacerdiv2 {
    height: 0px !important;
  }

  div#evidon-prefdiag-nav-1 > div > img {
    width: 24px !important;
    height: 12px !important;
  }

  a#iabv2-seeall-vendors {
    color: #0070cc !important;
    text-decoration: none !important;
    background-color: transparent !important;
    font-family: SSTPro !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
  }

  a#iabv2-seeall-purposes {
    color: #0070cc !important;
    text-decoration: none !important;
    background-color: transparent !important;
    font-family: SSTPro !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
  }

  button#evidon-prefdiag-closeicon {
    margin-right: 26px !important;
    margin-top: 31px !important;
  }
}

/************ Evidon cookie preference customization END *************/
