body:has(.wizard-stage.active) {
  overflow: hidden;
}

body:has(#ryb-connect.start) {
  overflow: hidden;
  height: 100vh;
}

#ryb-connect .dropdown-wrapper {
  margin-bottom: 1rem;
}

#ryb-connect .full-view {
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 0 20px;
}

#ryb-connect .full-view h2 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

#ryb-connect .full-view p {
  font-size: 14px;
  line-height: 20px;
  font-weight: 200;
}

#ryb-connect .standard-select {
  border-radius: 10px;
  border: 1px solid #0000001a;
  padding: 0 10px;
  height: 50px;
  width: 250px;
}

#ryb-connect #ryb-openings-result .step-view h2.step-title {
  font-size: 48px;
  line-height: 58px;
  color: #0a2723;
  font-weight: 800;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

#ryb-connect #ryb-openings-result .step-view .line {
  width: 20px;
  border-bottom: 1px solid #0000001a;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
}

#ryb-connect .box.classes.show #available-categories {
  height: calc(100vh - 430px);
  overflow: auto;
}

.top-right-contacts {
  display: flex;
  gap: 2rem;
  align-items: center;
}

#ryb-connect .wizard-card .card {
  display: flex;
  gap: 2rem;
  align-items: center;
}

#ryb-connect .wizard-card {
  width: 100%;
  border: 1px solid #0000001a;
  padding: 1rem;
  transition: 0.4s;
  box-sizing: border-box;
  margin-bottom: 1rem;
  cursor: pointer;
}

#available-categories > div {
  width: 100%;
}

#available-categories > div:not(:has(div.results > div)) {
  display: none;
}

#available-categories .loader-container {
  display: flex;
  flex-flow: column;
  align-items: center;
}

#available-categories h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 300;
}

#ryb-connect .wizard-card:hover {
  border: 1px solid #333;
  transition: 0.4s;
}

#ryb-connect .wizard-card.active {
  transition: 0.4s;
  border: 1px solid #53d89a;
}

#ryb-connect .wizard-card .card .bg-image {
  width: 150px;
  height: 100px;
  background: #ededed;
}

#ryb-connect .box.classes.show .controls {
  padding: 2rem 0;
  display: flex;
  justify-content: end;
}

#ryb-connect #ryb-openings-result .step-view h3.step-subtitle {
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #1f2323bf;
  font-weight: 200;
  margin-top: 0;
  margin-bottom: 0;
  text-transform: uppercase;
}

#ryb-connect #ryb-openings-result .step-view .filter-top h3.step-subtitle {
  text-align: left;
}

#ryb-connect #ryb-openings-result .step-view.step-three .full-view {
  padding-top: 100px;
}

#ryb-connect #ryb-openings-result {
  position: relative;
  overflow: auto;
  height: 100%;
}

#ryb-connect #ryb-openings-result .step-loading {
  position: absolute;
  top: 0;
  left: 0;
  backdrop-filter: blur(5px);
  z-index: 90;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s all;
}

#ryb-connect #ryb-openings-result .step-loading.active {
  opacity: 1;
  pointer-events: all;
  transition: 0.3s all;
}

#ryb-connect #ryb-openings-result .step-view {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

#ryb-connect .wizard-results {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 45px;
}

#ryb-connect .box-top {
  margin-top: 3rem;
}

#ryb-connect .full-view .class-icon {
  margin-top: 3rem;
}

.check {
  display: inline-block;
  transform: rotate(45deg);
  height: 12px;
  width: 5px;
  border-bottom: 4px solid #fff;
  border-right: 4px solid #fff;
}

.selected {
  position: absolute;
  top: -22px;
  left: calc(100% - 140px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  background-color: #53d89a;
  align-items: center;
  justify-content: space-around;
  z-index: 20;
}

/* No idea why I have p tags, but this "fixes" it */
#ryb-openings-result > p {
  display: none;
}

.ryb-connect-content > p {
  display: none;
}

a.close-link {
  text-decoration: none;
  transition: 0.3s all;
}
a.close-link:hover {
  color: #56dad4;
  transition: 0.3s all;
}

/* Error overlay */
.error-overlay {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.error-overlay.show {
  transition: 0.3s ease;
  backdrop-filter: blur(4px);
}

.error-overlay .error-modal {
  margin: auto;
  width: 360px;
  height: 200px;
  border-radius: 15px;
  background-color: #fff;
  text-align: center;
  opacity: 0;
  transform: scale(0.5);
  padding: 25px;
  pointer-events: none;
  transition: 0.4s;
  filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07))
    drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
}

.error-overlay.show .error-modal {
  opacity: 1;
  transform: scale(1);
  transition: 0.4s;
  pointer-events: all;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-around;
}

.error-overlay .error-modal h2 {
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  margin-bottom: 20px;
}

.error-overlay .error-modal p {
  font-size: 14px;
  line-height: 20px;
  font-weight: 200;
}

.error-modal .error-buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 20px;
}

.error-button {
  background: #fff;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  color: #00000099;
  padding: 15px;
  width: 100px;
  border-radius: 25px;
  border: 2px solid #00000099;
  font-weight: 700;
  line-height: 17.58px;
  font-size: 15px;
  transition: 0.3s all;
  text-decoration: none;
}

.error-button:hover {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: 0.3s all;
}

#ryb-connect #ryb-openings-result .step-loading .box {
  width: 280px;
  height: 360px;
  padding: 20px 40px;
  text-align: center;
  border: none;
  box-shadow: 0px 10px 20px 0px #a4a4a44d;
}

.loading-title {
  font-weight: 300;
  font-size: 20px;
  line-height: 24px;
  color: #0a2723;
  margin-top: 50px;
  margin-bottom: 20px;
}

.loading-text {
  font-weight: 200;
  font-size: 14px;
  line-height: 20px;
  color: #1f2323bf;
}

.d-none {
  display: none;
}

/* Location step */

#ryb-connect .map-view {
  display: flex;
  padding: 0;
  min-height: 550px;
  gap: 2rem;
}

#ryb-connect .map-view > div {
  flex: 1;
}

#ryb-connect-map {
  height: 100%;
  min-height: 100%;
  border-radius: 10px;
}

.location-card {
  border: 1px solid #0000001a;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px;
  transition: 0.4s;
}

.location-card.active {
  transition: 0.4s;
  border: 1px solid #56dad44d;
  background-color: #56dad41a;
}

.location-card h3,
.location-card h4,
.location-card h5 {
  text-align: left;
  margin-top: 0;
}

.location-card .location-title h3.name {
  font-size: 16px;
  font-weight: 700;
  line-height: 19.36px;
  color: #0f172a;
  margin-bottom: 0;
}

.location-card .location-title h5.location-address {
  font-weight: 200;
  color: #1f2323bf;
  font-size: 14px;
  line-height: 18px;
  margin-top: 0;
  margin-bottom: 1rem;
}

.location-card .location-title h4.location {
  font-size: 14px;
  line-height: 18px;
  color: #000;
  font-weight: 500;
  margin-bottom: 0;
}

.location-card .location-button {
  border: 2px solid #000;
  font-size: 14px;
  line-height: 16.94px;
  font-weight: 700;
  padding: 10px 0;
  width: 120px;
  text-align: center;
  border-radius: 25px;
  background-color: #fff;
  transition: 0.4s;
  cursor: pointer;
}

.location-button:focus,
.location-button:focus-visible {
  outline: transparent;
}

.location-card .location-button:hover {
  border: 2px solid #53d89a;
  box-shadow: 0px 10px 20px 0px #56dac980;
}

.location-card.active .location-button {
  background-color: #53d89a;
  border: 2px solid #53d89a;
  color: #fff;
  box-shadow: 0px 10px 20px 0px #56dac980;
  transition: 0.4s;
}

/*  */
.main-title {
  font-weight: 300 !important;
}

.mobile-show-map {
  display: none;
}

.mobile-toggler {
  display: none;
  font-weight: 300;
  font-size: 0.825rem;
  width: fit-content;
  margin-bottom: 1rem;
  color: #53d89a;
  cursor: pointer;
}

.filter-box .mobile-toggler {
  margin-bottom: 0;
}

.wizard-stage {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  transition: 0.4s all;
  height: calc(100vh - 130px);
}

.wizard-stage.active {
  display: grid;
  margin-top: 0 !important;
  top: 0;
  pointer-events: all;
  transition: 0.4s all;
  z-index: 99;
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}

.admin-bar .wizard-stage > .bg-white + div {
  height: calc(100vh - 110px);
}

.wizard-stage > .bg-white + div {
  height: calc(100vh - 80px);
}

.wizard-stage .user-type {
  list-style-type: none;
  padding-inline-start: 0;
}

.wizard-stage h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  color: #000;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.wizard-stage .line {
  background-color: #00000033;
  height: 2px;
  width: 40px;
}

.wizard-stage h2 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 2rem;
  color: #000;
}

.wizard-stage .box.child .form-info h2 {
  margin-top: 0;
}

.user-type li {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 6px;
  border: 1px solid #c0c0c0;
  padding: 8px 13px;
  margin-bottom: 1rem;
  transition: 0.4s;
  cursor: pointer;
}

.user-type li:hover {
  border: 1px solid #53d89a;
  transition: 0.4s;
}

.user-type li:hover .point {
  background-color: #53d89a;
  transition: 0.4s;
}
.user-type li .point {
  width: 10px;
  height: 10px;
  transition: 0.4s;
  border-radius: 50%;
  display: block;
  background-color: #c0c0c0;
}

.wizard-stage img {
  width: 100%;
  height: 100%;
  background-color: #ededed;
  object-fit: cover;
  object-position: center bottom;
}

.wizard-stage .box {
  /* display: none; */
  opacity: 0;
  transform: translateY(-50px);
  transition: 0.4s;
  pointer-events: none;
  position: absolute;
}

.wizard-stage .box.show {
  /* display: block; */
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  transition: 0.4s;
  position: relative;
}

.wizard-stage .box.child h2 {
  margin-top: 2rem;
  padding-right: 6rem;
  margin-bottom: 2rem;
}

.wizard-stage .box.child p {
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}

#ryb-connect .wizard-stage .dropdown-wrapper select {
  width: 100%;
}

.wizard-stage .box.child .form-box .form-info {
  display: none;
  opacity: 0;
  position: absolute;
}

.wizard-stage .box.child .form-box.show .form-info {
  display: block;
  opacity: 1;
  position: relative;
}

.wizard-stage .bg-white {
  display: flex;
  justify-content: center;
  align-items: center;
}
.wizard-stage .bg-white .container-wrapper {
  width: 80%;
  position: relative;
}

#ryb-connect #ryb-openings-result .step-view .box {
  text-align: center;
}

.wizard-stage button {
  border-radius: 25px;
  font-size: 15px;
  line-height: 17.58px;
  font-weight: 600;
  padding: 15px 0;
  text-align: center;
  width: 160px;
  border: 2px solid #53d89a;
}

.step-box .form-loader {
  display: none;
  text-align: center;
}

.step-box .form-loader.active {
  display: block;
}

.step-box:has(.form-loader.active) > div:not(.form-loader) {
  display: none;
}

.step-box.step-box:has(.form-loader.active) + .step-control {
  display: none;
}

.wizard-stage button:hover {
  transition: 0.4s;
  cursor: pointer;
}

.wizard-stage .button-section {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.wizard-stage button.registered {
  color: #53d89a;
  background-color: #fff;
}

.wizard-stage button.new-user {
  background: linear-gradient(228.01deg, #56dad4 0%, #53d89a 82.24%);
  border: none;
  padding: 16px 0;
  box-shadow: 0px 10px 20px 0px #56dac980;
  transition: 0.4s;
  font-weight: 500;
  color: #fff;
}

.wizard-stage button.registered:hover {
  background-color: #53d89a;
  color: #fff;
}

.dropdown-wrapper > #location.location-select {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 0.9rem 1.625rem;
  color: rgba(0, 0, 0);
  font-size: 1rem;
  line-height: 19px;
  border-radius: 5px;
  cursor: pointer;
}

#location.location-select .dropdown-location {
  width: 50%;
  position: absolute;
  left: 0;
  top: 101%;
  background-color: #fff;
  box-shadow: 0px 20px 30px 20px rgba(0, 0, 0, 0.05);
  padding-inline-start: 0;
  list-style-type: none;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}
#location.location-select .dropdown-location.show {
  opacity: 1;
  pointer-events: all;
  transition: 0.4s;
  z-index: 9;
}

#location.location-select li > span {
  font-size: 13px;
  line-height: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.58);
}

@media only screen and (max-width: 767px) {
  #location.location-select .dropdown-location {
    width: 100%;
  }
}

#location.location-select .dropdown-location li {
  position: relative;
  padding: 20px;
  transition: 0.4s;
}

#location.location-select .dropdown-location li:hover {
  transition: 0.4s;
  background-color: rgba(215, 214, 214, 0.3);
}

#location.location-select .dropdown-location li::after {
  position: absolute;
  bottom: -1px;
  left: 10%;
  content: " ";
  width: 80%;
  height: 2px;
  background-color: rgba(215, 214, 214, 0.3);
}

#location.location-select .dropdown-location li:last-child::after {
  display: none;
}

.wizard-stage button.new-user:hover {
  box-shadow: none;
}

@media only screen and (max-width: 1024px) {
  #ryb-connect aside.filters {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #fff;
    transform: translateX(-100%);
    transition: 0.4s all;
  }

  #ryb-connect aside.filters.show {
    transform: translateX(0);
    transition: 0.4s all;
    z-index: 90;
  }

  .mobile-toggler {
    display: block;
  }
}

@media only screen and (max-width: 767px) {
  #ryb-connect .ryb-connect-content {
    height: calc(100vh - 200px);
  }

  #ryb-connect .skip-step {
    display: none !important;
  }

  #ryb-connect aside.filters {
    width: 90vw;
  }

  #ryb-connect aside.filters.show:has(.inner-filter.active) {
    transform: translateX(-70%);
  }

  #ryb-connect #ryb-openings-result .step-view.result {
    margin-left: 0px;
    margin-right: 0px;
  }

  .ryb-connect-overlay.show .ryb-connect-modal {
    margin-left: 10px;
    margin-right: 10px;
  }

  /* step 1 stuff */
  .step .step-title {
    display: none;
  }
  .step.active .step-title {
    display: block;
  }

  /* step result */
  .bar {
    height: 80px !important;
  }

  .bar-col {
    flex-flow: column;
    align-items: flex-start;
  }

  .bar-col + .bar-col {
    align-items: flex-end;
  }

  #class-finder .results .result-card {
    padding: 10px;
  }

  #class-finder .results .result-card {
    grid-template-areas:
      "overview overview price button"
      "age gender calendar calendar";
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  #class-finder .results .result-card .overview {
    grid-area: overview;
  }

  #class-finder .results .result-card .age {
    grid-area: age;
    align-items: unset;
    justify-content: unset;
  }

  #class-finder .results .result-card .gender {
    grid-area: gender;
  }

  #class-finder .results .result-card .calendar {
    grid-area: calendar;
    justify-content: end;
  }

  #class-finder .results .result-card .price {
    grid-area: price;
    justify-content: end;
  }

  #class-finder .results .result-card .button {
    grid-area: button;
  }
}

@media only screen and (max-width: 420px) {
  #class-finder .results .result-card {
    gap: 10px;
  }

  #ryb-connect #ryb-openings-result .step-view {
    margin-left: 20px;
    margin-right: 20px;
  }

  #ryb-connect #ryb-openings-result .step-view.result,
  #ryb-connect #ryb-openings-result .step-view.step-two {
    margin-left: 0px;
    margin-right: 0px;
  }

  #ryb-connect .wizard-results {
    margin-top: 40px;
  }
}

.main-error-message + .error-message {
  color: red;
  font-size: 0.8rem;
  margin-top: 5px;
  margin-bottom: 10px;
}
