html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-size: 16px;
  font-family: "Wix Madefor Display", sans-serif;
  background: #f9f9f9 url("/img/background.svg");
}

.state-hidden {
  display: none;
}

a {
  color: #5151b2;
  font-weight: 500;
}
a:hover {
  color: #52629d;
}

header {
  padding: 0 1.5rem;
  background: #91eae4;
  color: #5151b2;
  text-align: center;
}

main {
  padding: 1rem;
}

h1 {
  font-size: 0.875rem;
  line-height: 2.875em;
  margin: 0;
}
h2 {
  font-size: 1rem;
  margin: 0;
  color: #222;
}

ul {
  margin-top: 0;
}
article {
  margin-bottom: 2rem;
}
article:last-of-type {
  margin-bottom: 0;
}

.empty-state-text {
  font-style: italic;
  color: #777;
  font-size: 0.875em;
}

.page-content--doctors .empty-state-text {
  text-align: center;
  font-size: 1em;
}
.page-content--doctors .filters {
  background: #eee;
  margin: -1rem -1rem 1rem;
  padding: 1rem;
  text-align: center;
}

.filters input,
.filters .select2 {
  margin: 0.188rem 0;
}
.filters input::placeholder {
  text-align: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 35px;
}
.select2 .select2-selection--single {
  height: 37px;
  border-radius: 8px;
  border-color: #bbb;
}

.doctors-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doctors-list__item {
  margin-bottom: 0.5rem;

}
.doctors-list__item__link {
  display: flex;
  padding: 1rem;
  border: 1px solid #f0f0f0;
  color: #111;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 1px 1px 13px 0 rgba(0,0,0,0.12);
  background: #fff;
}
.doctors-list__item__link:hover {
  background: #eee;
  border-color: #ccc;
  color: #000;
}
.doctors-list__item__link img {
  margin-right: 0.875rem;
  width: 60px;

  border-radius: 5px;
}

.doctors-list__item__settlements,
.doctors-list__item__specialty {
  color: #666;
  font-size: 0.875em;
}

.page-content--404,
.page-content--500 {
  text-align: center;
}
.page-content--404 h3,
.page-content--500 h3 {
  font-weight: 400;
}
.page-content--404 img,
.page-content--500 img {
  max-height: 200px;
}


input,
button,
select {
  font-family: 1rem "Wix Madefor Display", sans-serif;
}

::-webkit-input-placeholder { /* WebKit */
  font: italic 0.75rem/2rem "Wix Madefor Display", sans-serif;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
  font: italic 0.75rem/2rem "Wix Madefor Display", sans-serif;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
  font: italic 0.75rem/2rem "Wix Madefor Display", sans-serif;
}


button:disabled,
input[type=submit]:disabled {
  color: #bbb;
  background: #f5f5f5;
  cursor: not-allowed;
  border-color: #ddd;
}

input[type=checkbox] {
  margin: 0 4px 0 0;
  vertical-align: middle;
  accent-color: #7169ce;
}
input[type=radio] {
  margin: 0 0.188em 0 0;
  vertical-align: middle;
  accent-color: #7169ce;
}

input[type=text],
input[type=password],
input[type=number],
input[type=email],
input[type=tel],
input[type=url],
input[type=date],
input[type=time],
textarea,
select,
.invisible-span-for-autowidth {
  font: 0.875rem "Wix Madefor Display", sans-serif;
  height: 2.25rem;
  width: 100%;
  box-sizing: border-box;
  z-index: 1;
}
input[type=date],
input[type=time] {
  min-width: 4rem;
}

select,
input[type=text],
input[type=password],
input[type=number],
input[type=email],
input[type=tel],
input[type=url],
input[type=date],
input[type=time],
textarea,
.invisible-span-for-autowidth {
  padding: 0 0.625rem 0;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #fff;
}

fieldset:disabled input,
input[disabled],
input[readonly] {
  background: #f3f3f3;
}

textarea {
  padding: 0.375rem 0.625rem;
  min-height: 3.75em;
  resize: none;
}

.input--error {
  border: 1px solid #f00 !important;
  box-shadow: 0 0 4px 0 #f00;
}


label {
  font-size: 0.875rem;
  color: #222;
}

a:not(.button):focus-visible {
  outline: 2px solid #5151b2;
}
textarea:focus-visible,
select:focus-visible,
input:focus-visible,
button:focus-visible,
a.button:focus-visible {
  border: 1px solid #5151b2;
  box-shadow: 0 0 4px 0 #5151b2;
  outline: none; /* Chrome... */
}

input[type="button"]:focus,
input[type="button"]:focus-visible,
input[type="submit"]:focus,
input[type="submit"]:focus-visible,
button:focus,
button:focus-visible,
a.button:focus,
a.button:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -3px;
}

button::-moz-focus-inner {  /* Firefox... */
  border: 0;
}
button:focus::after {
  content: "";
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  right: 2px;
  border-radius: 8px;
  border: 1px dotted currentcolor;
}

.button {
  transition: all 0.3s;

  box-sizing: border-box;
  position: relative;

  min-width: 5em;
  line-height: 2em;
  height: 2.25em;
  padding: 0 1em;

  border: 1px solid transparent;
  border-radius: 8px;

  font-weight: 600;
  text-align: center;
  white-space: nowrap;

  cursor: pointer;
}
.button:hover {
  opacity: 0.8;
}

.button img.icon {
  margin-right: 0.25em;
}

.button--primary {
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  background-color: #7169ce;

/*
  &:hover:not(:disabled) {
    background: darken(..., 8%);
  }
*/
}
.button--secondary {
  color: #7169ce;
  border-color: #7169ce;
  background: #fff;

/*
  &:hover:not(:disabled) {
    background: darken(..., 5%);
  }
*/
}

.button--cancel {
  color: #666;
  background: #eee;
  border-color: #dadada;

  /*
  &:hover:not(:disabled) {
    color: darken($color, 5%);
    background: darken($background-color, 5%);
  }
  &:focus::after {
    border: 1px dotted $color;
  }
  */
}

.button img {
  max-width: 1rem;
  max-height: 1rem;
}

.button--small.state--disabled {
  pointer-events: none;
  opacity: 0.25;
}

.input-row {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  /* max-width: 25rem; */
  width: 100%;
}
.input-row:last-of-type{
  margin-bottom: 0;
}

.input-group {
  display: flex;
  width: 100%;
  max-width: 25rem;
}
.input-group .input-row {
  margin-top: 0;
  margin-left: 1rem;
  max-width: 50%;
  white-space: nowrap;
}
.input-group .input-row:first-of-type {
  margin-left: 0;
}

.input-row:first-of-type {
  margin-top: 0;
}
.input-row.required label::after {
  content: " *";
  font-weight: 700;
}

/*
.input-row label:has(+ input:valid)::after,
.input-row label:has(+ select:valid)::after,
.input-row label:has(+ textarea:valid)::after {
  content: " \2705";
}
.input-row.required label:has(+ input:valid)::after,
.input-row.required label:has(+ select:valid)::after,
.input-row.required label:has(+ textarea:valid)::after {
  content: " * \2705";
}
.input-row label:has(+ input:invalid)::after,
.input-row label:has(+ select:invalid)::after,
.input-row label:has(+ textarea:invalid)::after {
  content: " \274C";
}
.input-row.required label:has(+ input:invalid)::after,
.input-row.required label:has(+ select:invalid)::after,
.input-row.required label:has(+ textarea:invalid)::after {
  content: " * \274C";
}
*/

.radio-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-around;

  box-sizing: border-box;
  height: 2.25rem; /* same as inputs */
  width: 100%;

  background: #eee;
  color: #000;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.radio-buttons-row span {
  display: flex;
}


.info-row {
  margin: 0.5rem 2rem 0;
}

.input-hint {
  padding: 0.5rem;
  width: 100%;
  box-sizing: border-box;

  font-size: 0.75rem;
  text-align: center;

  border: 1px solid #bbb;
  border-top-width: 0;

  margin-top: -2px;
}
.input-hint:last-of-type {
  border-radius: 0 0 3px 3px;
}
.input-hint--info {
  color: #059cbf;
  background-color: #e6f7fb;
}
.input-hint--warning {
  color: #e58600;
  background-color: #fff4e5;
}

span.info-label {
  font-weight: 700;
  margin-right: 0.5rem;
}



.input--error,
.validation-error-message {
  border-color: #ff3b30;
}

.box--warning,
.box--error,
.box--success,
.box--info {
  min-width: 18rem;
  box-sizing: border-box;
  font-weight: 700;
  border: 1px solid currentcolor;
  border-radius: 5px;
  background: no-repeat 1.25rem 1.25rem;
  background-position-y: 1.063rem;
  padding: 1.25rem;
}
.box--warning {
  color: #e58600;
  background-color: #fff4e5;
  background-image: url("/img/icon-warning.svg");
  padding-left: 3.875rem; /* 1.25rem icon left offest + 1.25rem div padding + 1rem icon width + more */
}
.box--error {
  color: #ff3030;
  background-color: #ffecec;
  background-image: url("/img/icon-error.svg");
  padding-left: 3.875rem; /* 1.25rem icon left offest + 1.25rem div padding + 1rem icon width + more */
}
.box--info {
  color: #059cbf;
  background-color: #e6f7fb;
  background-image: url("/img/icon-info.svg");
  padding-left: 3.875rem; /* 1.25rem icon left offest + 1.25rem div padding + 1rem icon width + more */
}
.box--success {
  color: #686f4a;
  background-color: #ddf3d5;
}


.box {
  max-width: 13rem;
  height: 6rem;

  text-align: center;

  display: flex;
  flex-direction: column;
}


.input--error,
.validation-error-message {
  border-color: #ff3b30;
}

.translation-missing {
  color: red;
  font-weight: 500;
}

.validation-error-message {
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;

  width: 100%;
  box-sizing: border-box;

  color: #ff3030;
  background-color: #ffecec;
}



.bookings-period-selector-wrapper {
  width: 100%;
  max-width: 25rem;
}
.bookings-period-selector {
  display: flex;

  box-sizing: border-box;

  background: #eee;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.bookings-period-selector:empty {
  display: none; /* hide border, etc */
}
.period-selector {
  transition: all 0.3s;

  flex-grow: 1;
  display: inline-block;
  margin: 0.25rem;
  padding: 0 0.25rem;
  min-width: auto;

  color: #222;
  border: 1px solid transparent;
  border-radius: 8px;
}
.period-selector:hover {
  color: #7169ce;
}
.period-selector.state--selected {
  color: #000;
  background: #fff;
  border-color: #ccc;
  box-shadow: 1px 1px 5px 0 rgba(0,0,0,0.12);
}

.duplicate-slot-error {
  display: none;
  margin-top: 0.5rem;
}


.schedule__day {
  margin: 0.375rem 0 1.375rem;

  border-top: 1px solid #ddd;
  text-align: center;
}
.schedule__day .day-label {
  position: relative;
  top: -0.75rem;

  margin: 0;
  padding: 0 0.375rem;

  display: inline-block;

  text-transform: capitalize;
  background: #fff;
}
.schedule__slots {
  line-height: 2.5rem;
  text-align: left;
  margin-top: -0.625rem;
}

.schedule__day .day-label,
.slot {
  font-size: 0.875rem;
  text-align: center;
  color: #555;
  font-weight: 600;
}

.slot {
  display: inline-block;

  box-sizing: border-box;
  min-width: 3.625rem;

  margin: 0 0.25rem;
  padding: 0.375rem;

  background: #fff;
  border: 1px solid #555;
  border-radius: 4px;

  text-align: center;

  line-height: initial;
  user-select: none;
}
.slot.state--booked {
  border-color: #eee;
  background: #eee;
  color: #bbb;
  cursor: not-allowed;
}
.slot.state--unbooked {
  background: #fff;
  cursor: pointer;
}
.slot.state--unbooked:hover {
  color: #000;
  border: 1px solid #000;
}
.slot.state--unbooked.state--selected {
  background: #91eae4;
  color: #5151b2;
}

.no-matching-doctors {
  display: none;
}

.doctor-photo {
  max-width: 60px;
  max-height: 90px;
  border: 1px solid #e3e3e3;
}

.page-content--doctor-info .doctor-info {
  font-size: 0.875rem;
  display: flex;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #444;
}
.page-content--doctor-info .doctor-photo {
  margin-right: 0.875rem;
  border-radius: 5px;
}

.card {
  position: relative;
  margin: 0.5rem 0;
  padding: 1rem;
  border: 1px solid #f0f0f0;
  color: #444;
  border-radius: 8px;
  box-shadow: 1px 1px 13px 0 rgba(0,0,0,0.12);
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}
.card__heading {
  font-size: 1em;
  margin: 0 0 0.5em;
  color: #222;

  padding-left: 1.625em;
  background: no-repeat left center;
  cursor: pointer;
}

.card--collapsable .card__heading::after {
  content: url("/img/icon-arrow-down.svg");
  position: absolute;
  right: 1rem;
}

.card--collapsable.state-collapsed .card__heading {
  margin: 0;
}
.card--collapsable.state-collapsed .card__heading::after {
  top: 0.9375em;
}
.card--collapsable.state-collapsed .card__content {
  display: none;
}

.card--collapsable.state-expanded .card__heading::after {
  top: 1.25em;
  transform: rotate(180deg);
}


.card--working-hours .card__heading {
  background-image: url("/img/icon-working-hours.svg");
}
.card--practices .card__heading {
  background-image: url("/img/icon-practices.svg");
}
.card--practice-info .card__heading {
  background-image: url("/img/icon-practice-info.svg");
}
.card--prices .card__heading {
  background-image: url("/img/icon-prices.svg");
}
.card--faq .card__heading {
  background-image: url("/img/icon-faq.svg");
}


.page-content--bookings h2 {
  font-size: 0.9375rem;
  color: #666;
}
.page-content--bookings h2.other {
  margin-top: 1.5rem;
}

.card.booking ~ .card--empty-state {
  display: none;
}
.card.booking .buttons-row {
  text-align: right;
}

.booking__button--delete {
  font-size: 0.875rem;
  color: #5151b2;
}


.create-booking-form {
  max-width: 25rem;
  margin: auto;
}

.create-booking-form .slide:not(.slide--current) {
  display: none;
}


.no-slots-for-the-month {
  display: none;
  margin-top: 0.875rem;
  text-align: center;
}

.doctor__practice {
  margin-bottom: 1.5rem;
}
.doctor__practice div {
  display: flex;
  margin: 0.375rem 0;
}

.schedule-with-bookings {
  margin-bottom: 0;
  padding: 0.75rem;
}
.schedule-with-bookings:empty {
  display: none;
}

.slide--practice button.card {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;

  margin-top: 0;

  text-align: left;
  cursor: pointer;
}

.slide--practice button.card:hover {
  color: #7169ce;
  background: #fbfbfb;
  border-color: #7169ce;
}
.slide--practice button.card:focus::after {
  border: none;
}


.slide--practice .card img {
  margin-left: 1rem;
  max-height: 1.25rem;
}

.page-content--booking-create .buttons-row {
  margin: 0.5rem 0 0.75rem;
  display: flex;
  justify-content: space-between;
}
.page-content--booking-create .buttons-row-right {
  display: block;
  text-align: right;
}

.slide--confirmation .card {
  position: fixed;
  top: 50%;
  left: 1rem;
  right: 1rem;
  transform: translateY(-50%);
  max-width: 25rem;
  margin: 0 auto;

  text-align: center;
}
.slide--confirmation .card .buttons-row {
  display: block;
  margin-top: 1.5rem;
}

.progress-bar {
  display: flex;
  justify-content: space-around;

  margin-bottom: 0.5rem;

  font-size: 0.875rem;
  color: #777;
}
.progress-bar__step {
  margin: 0.188rem;
  position: relative;
  text-align: center;
}

.progress-bar__step__number {
  display: inline-block;

  width: 2em;
  height: 2em;
  line-height: 2;

  border: 1px solid currentcolor;
  border-radius: 50%;

  background: #f9f9f9;
  outline: 0.375rem solid #f9f9f9;
}

.progress-bar__step:first-of-type::after,
.progress-bar__step:last-of-type::before {
  content: "";
  position: absolute;
  height: 1px;
  width: 12rem;
  max-width: 50vw;
  background: #999;
  top: 1rem;
  z-index: -1;
}
.progress-bar__step:first-of-type::after {
  left: 50%;
}
.progress-bar__step:last-of-type::before {
  right: 50%;
}

.progress-bar__step.current .progress-bar__step__number {
  background: #91eae4;
  border-color: #91eae4;
  color: #5151b2;
  font-weight: 700;
}
.progress-bar__step.current .progress-bar__step__title {
  color: #5151b2;
  font-weight: 600;
}

.progress-bar__step.done .progress-bar__step__number {
  background: #eee url("/img/checkmark-purple.svg") no-repeat center center;
  border-color: #e3e3e3;
  color: transparent;
}


.page-content--booking-create .button {
  font-size: 1rem;
}


.notices:not(:empty) {
  margin-bottom: 1rem;
}
.box--info.doctor-notice {
  padding: 1rem 1rem 1rem 2.75rem;
  margin-bottom: 0.5rem;

  font-size: 0.9375em;
  font-weight: 400;
  color: #046d86; /* darken(#059cbf, 30%) */

  border-color: #059cbf;
  background-position: 0.75rem 1rem;
  background-size: 1.25rem;
}
