.logged-in .tml-register {
  display: none;
}
.intl-tel-input { width: 100%; }

body {
  background-color: white !important;
}

.tml .form-control, 
.tml .form-remark, 
.tml .form-remark *, 
.tml .form-check-input, 
.tml label,
.tml .dropdown-item {
  font-size: 12px!important;
  line-height: 2em;
  border-width: 1px;
}
.tml input.form-control {
  height: 38px;
}
.tml button {
  font-size: 16px!important;
}
.tml .tml-errors .tml-error {
  font-size: 14px!important;
}
.tml .form-control, 
.tml .form-remark,
.tml .form-check-input, 
.tml label {
  color: #898483!important;
}
.tml.tml-profile .form-control, .tml.tml-profile .form-remark, .tml.tml-profile .form-remark a {
  font-size: 16px!important;
}
.cgt-form-control {
  padding-left: 42px;
}
.cgt-form-control.cgt-form-control-noicons {
  padding-left: 1em;
}
.xcgt-form-control-labelled {
  padding-left: 20px;
  padding-right: 20px;
}
.submit-button-wrapper {
  text-align: center;
}
.cgt-submit {
  text-transform: uppercase;
}
.cgt-form-wrapper {
  margin: 40px;
  background-color: white;
  max-width: 500px;
  width: 100%;
  padding: 30px;
  border-radius: 5px;
  margin-left: auto;
  margin-right: auto;
/*
  -webkit-box-shadow: -5px 5px 21px -1px rgba(0,0,0,0.5);
  -moz-box-shadow: -5px 5px 21px -1px rgba(0,0,0,0.5);
  box-shadow: -5px 5px 21px -1px rgba(0,0,0,0.5);
*/
}
.tml .col .form-group {
  margin-bottom: 0;
}
.cgt-form-wrapper.cgt-profile-wrapper {
  max-width: 500px;
  margin-left: 0;
  padding: 0;
}
/*
.cgt-form-wrapper.cgt-profile-wrapper.cgt-changepass-wrapper {
  max-width: 500px;
}
*/
.cgt-form-wrapper input, 
.cgt-form-wrapper input:focus,
.cgt-form-wrapper textarea,
.cgt-form-wrapper textarea:focus {
  border-color: rgb(206, 212, 218);
  box-shadow: none;
  outline: 0 none;
}
.tml .flag-container, .tml .selected-flag, .tml .iti-flag {
  border: none;
  box-shadow: none;
  outline: 0 none;
}
.tml .flag-container {
  border-right: 1px solid rgba(206, 212, 218, 0.3)!important;
  margin-top: 4px;
  margin-bottom: 4px;
  z-index: 1;
}
.tml .intl-tel-input.allow-dropdown input {
  padding-left: 60px;
}
.tml .intl-tel-input .selected-flag {
  margin-right: 4px;
}
.tml .intl-tel-input .selected-flag .iti-arrow {
  border: none!important;
  width: 12px;
  height: 12px;
  background: url('../images/forms/dropdown-off.svg');
  background-repeat: no-repeat;
  background-size: 10px;
  background-position: center center;
  position: absolute!important;
  right: 0px;
  top: 50%;
  margin-top: -6px;
}
.tml .form-check {
  font-size: 12px!important;
}
.tml .form-check-input {
  margin-top: .4em;
}
.tml .intl-tel-input .selected-flag .iti-arrow.up {
  background: url('../images/forms/dropdown-on.svg');
  background-repeat: no-repeat;
  background-size: 10px;
  background-position: center center;
}
.tml .cgt-dropdown-menu {
  border-color: rgb(38, 153, 251);
}
.tml .cgt-dropdown-menu .dropdown-item:hover {
  background-color: #efefef;
}
.tml form .cgt-dropdown-menu .dropdown-item a {
  color: #898483;
  font-size: 12px!important;
  display: inline-block;
  width: 100%;
  padding-right: 20px;
}
.tml form .cgt-dropdown-menu .dropdown-item a:hover {
  text-decoration: none;
}
.tml form .cgt-dropdown-menu .dropdown-item a.selected {
  color: rgb(38, 153, 251);
  background: url('../images/forms/check.svg');
  background-repeat: no-repeat;
  background-size: 12px;
  background-position: center right;
}
.cgt-form-wrapper .form-control-active input,
.cgt-form-wrapper .form-control-active textarea {
  border-color: rgba(38, 153, 251, 1)!important;
  border-width: 1px;
  color: rgba(38, 153, 251)!important;
}

.cgt-form-wrapper .form-control-error input,
.cgt-form-wrapper .form-control-error textarea {
  border-color: rgba(210, 31, 48, 1)!important;
  border-width: 1px;
  color: rgba(210, 31, 48, 1)!important;
}

.cgt-form-wrapper.cgt-profile-wrapper input:focus {
  border-color: rgb(206, 212, 218);
  box-shadow: none;
  outline: 0 none;
}

.cgt-form-wrapper.cgt-profile-wrapper .form-control-active .cgt-label,
.cgt-form-wrapper.cgt-profile-wrapper .form-control-active input {
  border-color: rgba(38, 153, 251, 0.8)!important;
  border-width: 1px;
  color: rgba(38, 153, 251)!important;
  /*box-shadow: 0 0 3pt 2pt rgba(0, 0, 255, 0.5);*/
}
/*
 * ff - do not understand when those styles are listed with comma, so they are here separated but actualy are the same.
 */
.cgt-form-wrapper.cgt-profile-wrapper input:-moz-read-write:hover {
  padding-right: 40px;
  background-image: url(../images/forms/edit-pencil-hover.svg);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 40px 20px;
}
.cgt-form-wrapper.cgt-profile-wrapper input:read-write:hover {
  padding-right: 40px;
  background-image: url(../images/forms/edit-pencil-hover.svg);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 40px 20px;
}
.cgt-form-wrapper.cgt-profile-wrapper .form-control-active input:-moz-read-write {
  padding-right: 40px;
  background-image: url(../images/forms/edit-pencil-active.svg)!important;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 40px 20px;
}
.cgt-form-wrapper.cgt-profile-wrapper .form-control-active input:read-write {
  padding-right: 40px;
  background-image: url(../images/forms/edit-pencil-active.svg)!important;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 40px 20px;
}
.cgt-form-wrapper.cgt-profile-wrapper .form-control-active .cgt-label {
  border-right: none;
}
.cgt-form-wrapper.cgt-profile-wrapper h3 {
  text-align: left;
  margin-bottom: 2em;
  font-size: 26px;
}
.cgt-form-wrapper.cgt-profile-wrapper .form-control {
  line-height: 2;
}
.cgt-form-wrapper h3 {
  text-align: center;
  margin-bottom: 1em;
}
.cgt-form-wrapper p.form-remark {
  font-size: 14px;
  color: #252525;
}
.cgt-form-wrapper label {
  font-size: 14px;
  color: #252525;
}
.tml-field-wrap {
  position: relative;
}
.field-icon, .field-icon-active, .field-icon-error {
  position: absolute;
  top: 0;
  left: 3px;
  width: 38px;
  height: 38px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: 24px 24px;
}
.field-password-state {
  position: absolute;
  top: 0;
  right: 3px;
  width: 38px;
  height: 38px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: 24px 24px;
  display: none;
}
.password-success .field-password-state {
  background-image: url(../images/forms/password-SUCCESS.svg);
  display: block;
}
.password-fail .field-password-state {
  background-image: url(../images/forms/password-FAIL.svg);
  display: block;
}
.field-icon-active {
  display: none;
}
.field-icon-error {
  display: none;
}
.form-control-active .field-icon, .form-control-error .field-icon {
  display: none;
}
.form-control-active .field-icon-active {
  display: block;
}
.form-control-active .field-icon-error.field-icon-active {
  display: none;
}
.form-control-error .field-icon-error {
  display: block;
}
.cgt-profile-wrapper .profilebutton {
  margin-top: 2em;
  text-align: center;
  min-width: 14em;
  line-height: 2em;
  font-size: 14px!important;
  font-weight: bold;
  text-transform: uppercase;
  border-width: 1px;
}
.profilebutton:hover {
  background-color: #2699FB!important;
  border: 1px solid #2699FB!important;
}
.cgt-label {
  width: 170px;
  color: grey !important;
  background-color: white !important;
}
.tml-profile .input-group>.intl-tel-input {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
}
.tml-profile .btn-group > .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.tml-profile .input-group>.intl-tel-input .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.cgt-dropdown {
  width: 100%;
  background: transparent !important;
}
div.btn-group.cgt-dropdown {
  display: block;
}
div.btn-group.cgt-dropdown .form-control[readonly] {
  background-color: white;
}
.g-recaptcha > div {
  margin: 0 auto;
}
.cgt-dropdown-button {
  background: url('../images/forms/dropdown-off.svg');
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: center center;
  position: absolute!important;
  right: 5px;
  top: 50%;
  margin-top: -6px;
  cursor: pointer;
}
.cgt-dropdown-button.cgt-dropdown-ro {
  width: 100%;
  background-position: right center;
}
.form-control-error .cgt-dropdown-button {
  background: url('../images/forms/dropdown-error.svg');
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: center center;
}
.cgt-dropdown-button[aria-expanded=true] {
  background: url('../images/forms/dropdown-on.svg');
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: center center;
}
.cgt-dropdown-button.cgt-dropdown-ro[aria-expanded=true] {
  width: 100%;
  background-position: right center;
}
.cgt-dropdown-button::after {
  content: none!important;
}
.logged-in .tml-register {
  display: block!important;
}
.btn.profilebutton.profile-updated:hover {
  background-color: #EFEFEF!important;
  border: none!important;
}
.cgt-profile-wrapper h3 {
  line-height: 2em;
}
.btn.profilebutton.profile-updated {
  float: right;
  /*display: inline-block;*/
  background-color: #EFEFEF;
  border: none;
  font-weight: normal;
  text-transform: none;
  border-radius: 0;
  margin: 0;
  margin-top: 10px;
  text-align: right;
  padding-left: 50px;
  padding-right: 15px;
  width: auto;
  min-width: 0;
  background-image: url('../images/forms/profile_change.svg');
  background-repeat: no-repeat;
  background-size: 50px 24px;
  background-position: center left;
  opacity: 1;
}
@media not screen and (min-width: 1111px) {
  .cgt-compact .col {
    margin-bottom: 1em;
  }
  .cgt-compact .col:last-child {
    margin-bottom: 0;
  }
  .cgt-form-wrapper {
    max-width: 500px;
    width: calc(100vw - 50px);
    margin: 0 auto;
  }
  .cgt-compact .row {
    flex-wrap: wrap;
  }
  .cgt-compact .row .col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
  }
  .cgt-compact-mobile .row .col {
    width: auto !important;
  }
  .cgt-form-wrapper.cgt-profile-wrapper {

  }
}
