@font-face {
  font-family: 'Onest';
  src: url('../../webpage/webfonts/onest-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../../webpage/webfonts/onest-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,body {
  font-size: 17px;
}

body {
  font-family: 'Onest', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #343434;
  height: 100vh;
  flex-direction: column;
  line-height: 1.35;
}

h1 {
  font-family: 'Onest', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #343434;
  margin-bottom: 0.5em;
  font-weight: 700;
}

body, header section, footer {
  display: flex;
}

section {
  flex-grow: 1;
}

p {
  margin-bottom: 2em;
}

a {
  color: #007961;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

label {
  display: block;
  clear: both;
  font-weight: 500;
  color: #343434;
  padding-bottom: .5em;
}

.cd-content {
  max-width: 800px;
  margin: 1em auto;
}

.cd-main-content {
  background-color: white;
  padding: 2em;
}

span.mandatory {
  font-size: small;
}

span.errorMessage {
  line-height: 1.7;
  color: #c70000;
}

/* ==== Header ==== */

.headerPanel {
  top: 0;
  width: 100%;
  background-color: white;
  padding: 1.5em;
  border-bottom: 1px solid #E5E5E5;
}

.headerContent {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.filler {
  flex-grow: 1;
  width: 1em;
}

.logo {
  display: inline-flex;
}

.logo img {
  height: 40px;
}

.headerText {
  color: #1aaf94;
  display: inline-flex;
  font-size: 2em;
  font-weight: 200;
  padding-left: 0.2em;
}

.headerText a {
  text-decoration: none;
}

.rightSideLogo {
  display: inline-flex;
}

.rightSideLogo img {
  height: 40px;
}

.partnerLabel {
  font-size: 10px;
  padding-right: 1em;
}

.userPanel {
  width: 100%;
  background-color: white;
  border-bottom: 1px solid #E5E5E5;
  padding: 0.5em 1.5em;
}

.userContent {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  font-size: 0.8em;
}

.userName {
  text-align: left;
}

.userName .desktop {
  display: inherit;
}

.userName .mobile {
  display: none;
}

.userDetails {
  padding-left: 0;
  font-size: smaller;
  line-height: 1.2em;
}

.userIcon {
  padding-right: 10px;
  color: #1aaf94;
}

span.mandatory {
  padding-left: .2em;
}

.smallerText {
  font-size: 12px;
  margin-top: 2em;
  margin-bottom: 1em;
}

.backLink-col {
  flex-direction: row-reverse;
}

.backLink {
  font-size: 0.8em;
}

.infoMessage {
  margin: 1em 0;
}

.value {
  margin-bottom: 1em;
}

/* ==== Forms ==== */

.formbody input[type=text], .formbody input[type=password], .formbody select, .formbody textarea {
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  padding: .7em .7em;
  border-radius: 0;
  border: 1px solid #343434;
  margin-bottom: 1.5em;
  width: 100%;
  color: #343434;
  line-height: normal;
  transition: border-color .15s ease-out;
}

.formbody input[type=text]:hover, .formbody input[type=password]:hover, .formbody select:hover, .formbody textarea:hover {
  border-color: #007961;
  outline: 1px solid #007961;
}

.formbody select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url(../images/arrow-down-16x16.png);
  background-repeat: no-repeat;
  background-position: right .7em top 50%, 0 0;
}

.formbody input[type=checkbox], .formbody input[type=radio] {
  margin-right: .3em;
  width: auto;
  background: none;
  border: none;
  margin-bottom: 0;
}

.formbody .formfield,  .formbody .formfieldleft, .formbody .formfieldright{
  margin-bottom: .2em;
  margin-left: 2px;
  margin-right: 2px;
}

.formbody .formfieldleft {
  padding-right: 0.5em;
}

.formbody .formfieldmiddle {
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.formbody .formfieldright {
  padding-left: 0.5em;
}

.formbody  .afterinput {
  display: flex;
  line-height: 1.7;
}

.formbody button, .formbody input[type=submit] {
  margin: 0 2.5em 0 2em; /* != style guide */
  padding: .5em 1.3em;
  background-color: #00deb7;
  border-radius: 2px;
  border: none;
  color: #343434;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  position: relative;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  float: right;
}

.formbody button:after, .formbody input[type=submit]:after {
  content: "\f061"; /* != style guide */
  font-family: "Font Awesome 6 Free"; /* != style guide */
  margin-left: 1px;
  background: inherit;
  padding: .3em .5em 0; /* != style guide */
  height: 100%;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 120%;
  display: block;
  position: absolute;
  top: 0;
  left: 100%;
  bottom: 0;
  -webkit-transition: padding ease-in-out .25s, border-color ease-in-out .25s;
  transition: padding ease-in-out .25s, border-color ease-in-out .25s;
}

.formbody .widget.primary button, .formbody button.primary, .formbody .widget.primary input[type=submit], .formbody input[type=submit].primary {
  background-color: #00deb7;
}

.formbody button:hover, .formbody input[type=submit]:hover {
  background-color: #343434;
  color: #fff;
  text-decoration: none;
}

.formbody button:hover:after, .formbody input[type=submit]:hover:after {
  padding-left: .6em;
  padding-right: .4em;
}

.formbody input.cdLink {
  color: #1aaf94 !important;
  background-color: white;
  border: none;
  padding: .5em 0.1em;
  margin-right: 1em;
  cursor: pointer;
  float: right;
}

.formbody input.cdLink:hover {
  text-decoration: underline;
}

.formbody textarea.readOnly {
  font-family: Courier, serif;
  font-size: 9pt;
  color: #666;
  width: 100%;
  height: 140px;
  margin-top: 0.5em;
  resize: none;
}

.formbody .submit_container {
  min-height: 2.5em;
  margin-top: 1em;
}

/* ==== Footer ==== */

footer {
  color: #343434;
  padding: 0.5em 2em;
  text-align: center;
  border-top: 1px solid #E5E5E5;
  line-height: 1.5em;
}

.middlePart {
  text-align: center;
  flex-direction: row;
  justify-content: center;
}

.separator {
  margin: 0 1em;
}

.nowrap {
  white-space: nowrap;
}

footer a {
  color: #343434;
  transition: color 0.65s;
  text-decoration: none;
}

footer a:hover {
  color: #007961;
  text-decoration: underline;
}

.title-row {
  margin-bottom: 2em;
}

.introMessage-row {
  margin-bottom: 2.5em;
}

.introMessage-row a {
  display: contents;
}

/* ==== media settings ==== */

@media (max-width: 576px) {

  .headerPanel {
    padding: 1.2em 1em;
  }

  .headerText {
    font-size: 1em;
  }

 .cd-main-content {
    padding: 0 1em;
  }

  .nowrap {
    white-space: inherit;
  }

  footer {
    font-size: 0.8em;
  }

  /* override layout.css */
  .logo img {
    height: 18px;
  }

  .rightSideLogo img {
    height: 18px;
  }

  .formbody .formfieldleft {
    padding-right: 0;
  }

  .formbody .formfieldmiddle {
    padding-left: 0;
    padding-right: 0;
  }

  .formbody .formfieldright {
    padding-left: 0;
  }

  .userPanel {
    padding: 0.5em 1em;
  }
  .userName .desktop {
    display: none;
  }

  .userName .mobile {
    display: inherit;
  }
}

/* ==== checkbox/radiobutton styling ==== */

.widget-radio,.widget-checkbox {
  margin-bottom: .9em;
}

.widget-radio label,.widget-checkbox label {
  margin: 0;
  clear: none;
}

.widget-radio .switch,.widget-checkbox .switch {
  padding: 3px;
  width: 1.5em;  /* != style guide */
  height: 1.5em;  /* != style guide */
  background: #fff;
  border: 1.5px solid #343434;
  border-radius: 2px;
  line-height: 1;
  display: inline-block;
  float: left;
  text-align: left;
  -webkit-transition: background .25s, border-color .25s;
  -moz-transition: background .25s, border-color .25s;
  -ms-transition: background .25s, border-color .25s;
  -o-transition: background .25s, border-color .25s;
  transition: background .25s, border-color .25s;
}

.widget-radio .switch + .text,.widget-checkbox .switch + .text {
  margin-left: 1.9em;
  display: block;
  padding-top: 3px;
}

.widget-radio .switch:after,.widget-checkbox .switch:after {
  content: "";
  padding-top: .2em;
  width: 1.25em;
  height: 1.25em; /* != style guide */
  font-size: 80%;
  background: transparent;
  color: transparent;
  border-radius: 2px;
  display: inline-block;
  text-align: center;
}

.widget-radio input:checked + label .switch,.widget-radio .switch.active,.widget-checkbox input:checked + label .switch,.widget-checkbox .switch.active {
  background-color: #fff;
  border-color: #343434;
}

.widget-radio input:checked + label .switch:after,.widget-radio .switch.active:after,.widget-checkbox input:checked + label .switch:after,.widget-checkbox .switch.active:after {
  background: #343434;
  border-color: #fff;
  color: #343434;
}

.widget-radio input,.widget-checkbox input {
  margin: -1px 0 0 -1px;
  font-size: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.widget-checkbox .switch {
  width: 2.5em; /* != style guide */
  margin-right: 6px;
}

.widget-checkbox .switch + .text {
  margin-left: 2.9em;
}

.widget-checkbox .switch:after {
  background: #343434;
  color: #343434;
  -webkit-transition: margin-left .25s;
  -moz-transition: margin-left .25s;
  -ms-transition: margin-left .25s;
  -o-transition: margin-left .25s;
  transition: margin-left .25s;
}

.widget-checkbox input:checked + label .switch,.widget-checkbox .switch.active {
  background: #343434;
}

.widget-checkbox input:checked + label .switch:after,.widget-checkbox .switch.active:after {
  margin-left: 1.25em;
  background: #fff;
  color: #fff;
}

/* coupon link */

.couponLink {
  margin-bottom: 1.5em;
}


a.cd-inline-text-link {
  color: #007961;
  text-decoration: underline;
}