.BlockButton {
  text-transform: uppercase;
  text-wrap: nowrap;
  vertical-align: middle;
}

.BlockButton--sizeLg {
  font-size: var(--input-button-text-size--md);
  font-weight: 500;
  padding: 0.5em 1.25em;
}

.BlockButton--sizeMd {
  font-size: var(--input-button-text-size--sm);
  padding: 0.375em 0.75em;
}

.BlockButton--sizeSm {
  font-size: var(--input-button-text-size--xs);
  padding: 0.25em 0.5em;
}

.ClearButton,
.RadioButton {
  display: flex;
  background: none;
  border: none;
  color: var(--body-secondary-text-color);
  gap: 0.5em;
}

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

.ClearButton--sizeMd {
  font-size: var(--input-button-text-size--md);
}

.ClearButton--sizeSm {
  font-size: var(--input-button-text-size--sm);
}

.RadioButton {
  align-items: flex-start;
  flex-direction: column;
  font-size: var(--body-secondary-text-size--sm);
  padding: 1em 2em;
  width: 75%;
}

.RadioButton[active] {
  outline: 2px solid var(--body-secondary-text-color);
  cursor: default !important;
}

.RadioButton:not([active]) {
  outline: 1px solid var(--input-button-transparent-hover-background);
}

.ClearButton:focus,
.ClearButton:hover,
.RadioButton:focus:not([active]),
.RadioButton:hover:not([active]) {
  background: var(--input-button-transparent-hover-background);
  fill: var(--input-button-transparent-hover-background);
}

.IconButton {
  align-items: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--input-button-color);
  display: flex;
  justify-content: center;
  padding: 0.2rem !important;
}

.IconButton:disabled {
  opacity: 0.3;
}

.IconButton:enabled:hover {
  background: #00000014;
}

.IconButton--sizeSm {
  max-height: 1rem;
  min-height: 1rem;
  max-width: 1rem;
  min-width: 1rem;
}

.Label {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.Label--positionEnd {
  flex-direction: row-reverse;
  gap: 1.5em;
}

.Label--positionTop {
  flex-direction: column;
  gap: 0.75em;
}

.Label-header {
  /* even translucent border color will be made opaque */
  color: color-mix(in srgb, var(--input-field-border-color) 1000%, transparent);
  display: flex;
  flex-direction: row;
}

.Label-matter {
  display: block;
  width: 100%
}

.Count {
  align-items: center;
  display: flex;
  position: relative;
}

.Count > input {
  -moz-appearance: textfield;
  padding-right: 20px !important;
  width: 64px;
}

.Count > input::-webkit-outer-spin-button,
.Count > input::-webkit-inner-spin-button {
  appearance: none;
}

.Count > input:disabled {
  filter: grayscale(1);
}

.Count-buttons {
  box-sizing: border-box;
  height: 100%;
  padding: 2px;
  position: absolute;
  right: 0;
}

.Radio {
  display: inline-block;
  position: relative;
  margin: 0 0 10px;
  line-height: 24px;
}

.Radio-input {
  position: absolute;
  top: 4px;
  left: 0;
  width: 40px;
  height: 20px;
  opacity: 0;
  z-index: 0;
  box-sizing: border-box;
}

.Radio-label {
  display: block;
  padding: 0 0 0 30px;
  cursor: pointer;
  box-sizing: border-box;
}

.Radio-label:before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: 2px solid rgba(0, 0, 0, 0.54);
  border-radius: 14px;
  z-index: 1;
  transition: border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.Radio-label:after {
  content: '';
  position: absolute;
  top: 6px;
  left: 5px;
  width: 10px;
  height: 10px;
  background-color: var(--radio-color);
  border-radius: 50%;
  z-index: 2;
  transform: scale(0, 0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.Radio-input:checked + .Radio-label:before {
  border-color: var(--radio-color);
}

.Radio-input:checked + .Radio-label:after {
  transform: scale(1, 1);
}

.Select {
  display: flex;
  flex-direction: row;
  position: relative;
}

.Select-arrow {
  position: absolute;
  right: 0;
  pointer-events: none;
  top: 50%;
  transform: translate(-100%, -50%);
}

.Select-input {
  appearance: none;
  padding-right: 2rem !important;
  text-align: start;
  width: 100%;
}

.Select-input:disabled {
  filter: grayscale(1);
}

.TextField {
  width: 100%;
}

.TextField--alignStart {
  text-align: start;
}

.TextField--alignCenter {
  text-align: center;
}

.TextField--sizeMd {
  max-width: 19rem;
}

.PhoneField {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.Layout {
  display: grid;
}

.Layout--dirX {
  display: flex;
  flex-direction: row;
}

.Layout--dirY {
  display: flex;
  flex-direction: column;
}

.Layout--fitAlongCenter {
  justify-content: center;
}

.Layout--fitAlongEnd {
  justify-content: flex-end;
}

.Layout--fitAlongSpace {
  justify-content: space-between;
}

.Layout--fitOrthoCenter {
  align-content: center;
}

.Layout--fitOrthoEnd {
  align-content: flex-end;
}

.Layout--fitOrthoSpace {
  align-content: space-between;
}

.Layout--fixAlongCenter {
  justify-items: center;
}

.Layout--fixAlongEnd {
  justify-items: flex-end;
}

.Layout--fixAlongSpace {
  justify-items: space-between;
}

.Layout--fixOrthoCenter {
  align-items: center;
}

.Layout--fixOrthoEnd {
  align-items: flex-end;
}

.Layout--fixOrthoSpace {
  align-items: space-between;
}

.Layout--gapXs {
  gap: 0.25rem;
}

.Layout--gapSm {
  gap: 0.5rem;
}

.Layout--gapMd {
  gap: 1rem;
}

.Layout--gapLg {
  gap: 1.5rem;
}

.Layout--gapXl {
  gap: 2.5rem;
}

.Layout--gapXXs {
  grid-column-gap: 0.25rem;
}

.Layout--gapXSm {
  grid-column-gap: 0.5rem;
}

.Layout--gapXMd {
  grid-column-gap: 1rem;
}

.Layout--gapXLg {
  grid-column-gap: 1.5rem;
}

.Layout--gapXXl {
  grid-column-gap: 2.5rem;
}

.Layout--gapYXs {
  grid-row-gap: 0.25rem;
}

.Layout--gapYSm {
  grid-row-gap: 0.5rem;
}

.Layout--gapYMd {
  grid-row-gap: 1rem;
}

.Layout--gapYLg {
  grid-row-gap: 1.5rem;
}

.Layout--gapYXl {
  grid-row-gap: 2.5rem;
}

.Layout--height75pr {
  height: 75%;
}

.Layout--height100pr {
  height: 100%;
}

.Layout--width75pr {
  width: 75%;
}

.Layout--width100pr {
  width: 100%;
}

.Loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.Space {
  display: block;
  visibility: hidden;
}
.Space--flex { flex: 1; }

.Space--xXl { min-width: 2.5rem }
.Space--xLg { min-width: 2rem; }
.Space--xMd { min-width: 1.25rem; }
.Space--xSm { min-width: 0.625rem; }
.Space--xXs { min-width: 0.25rem; }

.Space--yXl { min-height: 2.5rem; }
.Space--yLg { min-height: 2rem; }
.Space--yMd { min-height: 1.25rem; }
.Space--ySm { min-height: 0.625rem; }
.Space--yXs { min-height: 0.25rem; }

.Steps-text {
  font-size: var(--body-secondary-text-size--sm);
  color: #666;
}

.Steps-dot {
  height: 5px;
  width: 5px;
  background-color: #D9D9D9;
  border-radius: 99px;
  display: inline-block;
  margin-right: 5px;
}

.Steps-dot--active {
  background-color: var(--brand-color);
}

.Steps-dot--complete {
  opacity: 0.5;
}

.content {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 360px;
  width: 100%;
}

header {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  padding: 0 1.25rem;
  width: 100%;
}

.header-toolbar {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  height: 55px;
  width: 100%;
}

.language-selector {
  color: #777;
  display: flex;
  justify-content: center;
  align-items: center;
}

.language-selector select {
  background: transparent;
  border: 0;
  padding: 0;
  vertical-align: middle;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-block;
  margin-inline-start: 3px;
}

.header-content {
  align-items: center;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
}

.header-logo {
  display: block;
  max-width: var(--logo-width);
}

.content--classic .header-logo {
  max-height: var(--logo-height);
}

.content--modern .header-logo {
  max-height: 4rem;
}

main {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-width: 48rem;
  padding: 0 1.25rem;
  text-align: center;
  width: 100%;
}

@media (max-width: 640px) {
  main {
    max-width: 36rem;
  }
}

.content--modern h1 {
  margin-bottom: 0.5em;
}

.annotation {
  color: #777;
  max-width: 250px;
}

.floatingBar {
  bottom: 0;
  background-color: white;
  box-shadow:
    rgba(0, 0, 0, 0.2) 0px 3px 3px -2px,
    rgba(0, 0, 0, 0.14) 0px 3px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;
  box-sizing: border-box;
  height: var(--floating-bar-height);
  left: 0;
  padding: 1.25rem 0 0.625rem 0;
  position: fixed;
  width: 100%;
  z-index: 10;
}

.floatingBarSpaceMaker {
  box-sizing: border-box;
  height: var(--floating-bar-height);
  width: 100%;
}

[data-page] {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

[data-page][hidden] {
  display: none;
}

.pageContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--body-secondary-text-size--xl);
  width: 100%;
}

.errorMessage {
  color: #770000;
  font-size: var(--body-primary-text-size--sm);
  line-height: 1;
  margin: 0.25rem 0;
  height: 1rem;
}

.formFixedWidth {
  text-align: start;
  max-width: 32rem;
  width: 100%;
}

.formFixedWidth > * {
  width: 100%;
}

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

.content[dir="rtl"] .goBack-arrow {
  transform: rotate(180deg);
}

@media (max-width: 540px) {
  .goBack {
    border-radius: 50%;
    padding: 0.5em;
  }
  .goBack-text {
    display: none;
  }
}

.itemList {
  --item-gap: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--item-gap);
  width: 100%;
}

.item {
  line-height: 120%;
  padding: 0px 0px var(--item-gap) 0px;
  border-bottom: 1px solid #d8d8d8;
}

.itemComment {
  resize: none;
  flex: 1;
}

.itemImage {
  max-height: 5rem;
  max-width: 4rem;
}

.itemImageLink {
  color: var(--body-secondary-text-color);
  text-decoration: none;
}

.itemImageWrapper {
  min-height: 5rem;
  min-width: 4rem;
}

.itemImageWrapper--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.itemHead {
  font-weight: 700;
}

.itemBody {
  font-size: var(--body-secondary-text-size--sm);
}

.itemCondition {
  box-sizing: border-box;
  width: 100%;
}

.summary {
  text-align: start;
}

.summaryHead {
  font-weight: 700;
}

.textIcon {
  height: var(--body-primary-text-size);
  width: var(--body-primary-text-size);
}

.tinyText {
  font-size: var(--body-primary-link-size--md);
}

/* CSS spinner from loading.io/css */
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 25px;
}
.lds-ellipsis div {
  position: absolute;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

@media (min-width: 540px) {
  .mobile {
    display: none;
  }
  .itemHeader {
    display: flex !important;
  }
}

@media (max-width: 540px) {
  .nonMobile {
    display: none;
  }
}

.MultiSelect {
  width: 100%;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 10px 1px 10px;
  min-height: 28px;
  cursor: pointer;

  background: #fff;
  border: 1px solid var(--input-field-border-color);
  border-radius: var(--input-field-border-radius);
  color: var(--body-secondary-text-color);
}

.MultiSelect-arrow {
  width: 20px;
}

.MultiSelect-chips {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.MultiSelect-input {
  display: none;
  z-index: 1;
  position: absolute;
  width: 100%;
  max-height: 180px;
  border: none;
  box-shadow: 0 0 3px rgba(0,0,0, 0.2);
  border-radius: 12px;
  margin-left: -11px;
}

.MultiSelect-option {
  font-size: 12px;
  padding: 6px 10px;
  margin-bottom: 5px;
}

.MultiSelect-option:hover {
  background-color: #00063b1a;
  border-radius: 12px;

}
.MultiSelect-option:focus-visible {
  outline: none
}

.MultiSelect-chip {
  display: flex;
  align-items: center;
  background-color: white;
  color: var(--body-secondary-text-color);
  border: 1px solid #00063b1a;
  padding: 0px 8px;
  border-radius: 20px;
  font-size: 11px;
}

.MultiSelect-chipClose {
  margin-left: 8px;
  cursor: pointer;
  color: #fff;
  background-color: var(--body-secondary-text-color);
  border-radius: 100%;
  width: 12px;
  height: 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  padding-bottom: 1.2px;
}
