.webform-confirmation-modal--content .main-action.javali-buttons,
#main-content .main-action.javali-buttons {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 19px 11px 19px;
  font-size: 0.875rem;
  line-height: 1.05rem;
  border: 1px solid #000000;
  font-family: var(--title-font);
  font-weight: 400;
  transition: all 0.3s ease-in-out;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

#main-content a.javali-buttons {
  font-weight: 400;
}

.webform-confirmation-modal--content .main-action.javali-buttons {
  text-decoration: none;
  color: white;
}

.webform-confirmation-modal--content a.background-white.main-action.javali-buttons,
.webform-confirmation-modal--content a.black.main-action.javali-buttons {
  color: #000;
  border: 1px solid #000;
}

.webform-confirmation-modal--content a.javali-buttons.background-white:hover,
.webform-confirmation-modal--content a.background-white.main-action.javali-buttons:hover,
.webform-confirmation-modal--content a.javali-buttons.black:hover,
.webform-confirmation-modal--content a.black.main-action.javali-buttons:hover {
  text-decoration: none;
  border-color: rgb(0 0 0 / 30%);
}

#main-content .javali-buttons.black {
  background: transparent;
  color: #000;
}

#main-content .javali-buttons.background-white {
  background: white;
  color: #000;
}


#main-content .javali-buttons.background-white:hover,
#main-content .javali-buttons.black:hover {
  text-decoration: none;
  border-color: rgb(0 0 0 / 30%);
}

#main-content .javali-buttons.white {
  background: black;
  color: #fff;
}

#main-content a.download.javali-buttons:hover,
#main-content .javali-buttons.white:hover {
  text-decoration: none;
  background-color: var(--dark-grey);
}

body.node-type-story-item .pane-story-main-content-draft a.back-top.main-action,
body.node-type-story-item .pane-story-main-content a.back-top.main-action,
body.node-type-landing-page .pane-node-body a.back-top.main-action,
.bg-dark .content-main a.back-top,
.bg-light .content-main a.back-top,
.bg-dark.new-display .content-main a.back-top,
.bg-light.new-display .content-main a.back-top,
a.back-top,
body .text a.back-top {
  font-family: var(--title-font);
  font-size: 12px;
  line-height: 12px;
  text-transform: none;
}

a.colour.main-action:hover,
#main-content a.colour.main-action.javali-buttons:hover {
  color: #fff !important;
}

#main-content a.javali-buttons:hover {
  text-decoration: none;
}

.main-action.javali-buttons {
  text-transform: none;
  font-family: var(--title-font);
}

#main-content a.colour.main-action,
#main-content a.colour.main-action:hover {
  color: white;
}

#main-content a.download.javali-buttons {
  color: white;
  background-color: black;
  padding: 10px 19px 11px 19px;
}

span.download-icon {
  display: none;
}

#main-content a.back-top {
  color: #000;
}

a.back-top {
  border: none;
  text-decoration: none;
  color: #000;
  position: relative;
  line-height: 1.5rem;
  font-size: 0.875rem;
  font-family: var(--title-font);
  padding: 5px 8px;
}

a.javali-buttons {
  font-family: var(--title-font);
  text-transform: inherit;
}

.bg-dark .content-main a.back-top::before,
.bg-light .content-main a.back-top::before,
a.back-top::before,
body .text a.back-top::before {
  background: url("../js/plugins/buttons/icons/arrow_up_black.svg") 0px 2px no-repeat;
  content: " ";
  display: inline-block;
  width: 17px !important;
  height: 12px;
  background-size: 10px;
  margin-right: 3px;
}

.bg-dark .content-main a.back-top:hover,
.bg-light .content-main a.back-top:hover,
.bg-dark.new-display .content-main a.back-top:hover,
.bg-light.new-display .content-main a.back-top:hover,
a.back-top:hover,
#main-content a.back-top:hover,
body .text a.back-top:hover {
  color: rgb(0 0 0 / 30%);
}

.bg-dark .content-main a.back-top:hover:before,
.bg-light .content-main a.back-top:hover:before,
.bg-dark.new-display .content-main a.back-top:hover:before,
.bg-light.new-display .content-main a.back-top:hover:before,
.back-top:hover:before,
body .text a.back-top:hover:before {
  background-image: url("../js/plugins/buttons/icons/arrow_up_grey.svg");
}

@media (min-width: 1921px) {

  #main-content a.download.javali-buttons,
  a.back-top,
  #main-content .main-action.javali-buttons {
    font-size: var(--font-body-small);
    line-height: var(--line-height-small);
  }

  .bg-dark .content-main a.back-top::before,
  .bg-light .content-main a.back-top::before,
  a.back-top::before,
  body .text a.back-top::before {
    width: 30px !important;
    height: 18px;
    background-size: 20px;
  }
}

@media (min-width: 1921px) {

  #main-content a.download.javali-buttons,
  a.back-top,
  #main-content .main-action.javali-buttons {
    padding: 16px 40px 20px 40px;
  }

  .bg-dark .content-main a.back-top::before,
  .bg-light .content-main a.back-top::before,
  a.back-top::before,
  body .text a.back-top::before {
    width: 30px !important;
    height: 18px;
    background-size: 20px;
  }
}