.booking-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 8% 88%, rgba(31, 82, 215, 0.56), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(0, 110, 92, 0.48), transparent 36%),
    linear-gradient(135deg, #061024, #051421 48%, #062a26 100%);
  overflow: auto;
}

.booking-success-overlay.is-mobile,
.booking-success-overlay.is-mobile * {
  box-sizing: border-box;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.booking-success-overlay.is-mobile {
  align-items: flex-start;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  padding: 14px 12px 24px;
  overflow-x: hidden;
}

.booking-success-overlay.is-mobile .booking-success-shell {
  width: min(100%, 322px) !important;
  max-width: calc(100vw - 24px) !important;
  margin: 0 auto;
  overflow: visible;
}

.booking-success-overlay.is-mobile .booking-success-close {
  top: 4px;
  right: 4px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  aspect-ratio: 1 / 1;
  flex: 0 0 30px;
  padding: 0;
  border-radius: 50% !important;
  font-size: 22px;
  line-height: 30px;
  background: rgba(255, 255, 255, 0.24);
}

.booking-success-overlay.is-mobile .booking-success-logo {
  width: clamp(96px, 30vw, 118px);
  margin: 4px auto 14px;
}

.booking-success-overlay.is-mobile .booking-success-mobile-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 18px 14px 17px;
  border-radius: 22px;
  background: #ffffff;
  color: #050505;
}

.booking-success-overlay.is-mobile .booking-success-mobile-head .booking-success-check {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #9c89ff, #0db6ef);
}

.booking-success-overlay.is-mobile .booking-success-mobile-head .booking-success-check::before {
  width: 22px;
  height: 12px;
  border-left-width: 6px;
  border-bottom-width: 6px;
}

.booking-success-overlay.is-mobile .booking-success-mobile-head h2 {
  margin: 0;
  color: #050505;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.booking-success-overlay.is-mobile .booking-success-card {
  display: block;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 22px 18px 22px;
  border-radius: 22px;
}

.booking-success-overlay.is-mobile .booking-success-course {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
}

.booking-success-overlay.is-mobile .booking-success-course img {
  width: 74px;
  height: 94px;
}

.booking-success-overlay.is-mobile .booking-success-course h3 {
  margin: 4px 0 5px;
  font-size: 18px;
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: anywhere;
}

.booking-success-overlay.is-mobile .booking-success-course p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.booking-success-overlay.is-mobile .booking-success-price {
  font-size: 25px;
}

.booking-success-overlay.is-mobile .booking-success-order {
  position: static;
  max-width: none;
  margin: 28px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dedede;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.booking-success-overlay.is-mobile .booking-success-details {
  margin-top: 0;
  width: 100%;
  border-top: 1px solid #dedede;
}

.booking-success-overlay.is-mobile .booking-success-row {
  align-items: center;
  grid-template-columns: 94px minmax(0, 1fr);
  min-height: 34px;
  padding: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.booking-success-overlay.is-mobile .booking-success-row span:last-child {
  font-size: 14px;
}

.booking-success-overlay.is-mobile .booking-success-right {
  display: block;
  padding-top: 16px;
}

.booking-success-overlay.is-mobile .booking-success-right .booking-success-check,
.booking-success-overlay.is-mobile .booking-success-right h2 {
  display: none;
}

.booking-success-overlay.is-mobile .booking-success-save {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  font-size: 19px;
}

.booking-success-overlay.is-open {
  display: flex;
}

.booking-success-shell {
  position: relative;
  width: min(1120px, calc(100vw - 180px));
  color: #ffffff;
}

.booking-success-close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
  line-height: 1;
}

.booking-success-logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 22px;
}

.booking-success-mobile-head {
  display: none;
}

.booking-success-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 40px;
  width: 100%;
  min-height: 500px;
  padding: 46px;
  border-radius: 44px;
  color: #050505;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.booking-success-left,
.booking-success-right {
  min-width: 0;
}

.booking-success-course {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  align-items: start;
}

.booking-success-course img {
  width: 132px;
  height: 164px;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(135deg, #07153e, #0f244f);
}

.booking-success-course h3 {
  margin: 6px 0 10px;
  color: #050505;
  font-size: clamp(26px, 2.35vw, 34px);
  font-weight: 500;
  line-height: 1.14;
}

.booking-success-course p {
  margin: 0 0 34px;
  color: #050505;
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 800;
}

.booking-success-price {
  display: block;
  color: #050505;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: clamp(34px, 3.1vw, 44px);
  font-weight: 950;
  line-height: 1;
}

.booking-success-order {
  position: absolute;
  top: 52px;
  right: 46px;
  max-width: 520px;
  margin: 0;
  color: #303030;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.booking-success-details {
  display: grid;
  margin-top: 32px;
  width: min(560px, 100%);
  border-top: 1px solid #dedede;
}

.booking-success-row {
  display: grid;
  align-items: center;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  min-height: 58px;
  padding: 0;
  border-bottom: 1px solid #dedede;
  color: #303030;
  font-size: clamp(19px, 1.5vw, 26px);
  line-height: 1.22;
}

.booking-success-row span:first-child {
  font-weight: 950;
}

.booking-success-row span:last-child {
  font-weight: 700;
}

.booking-success-right {
  display: grid;
  align-content: center;
  justify-items: center;
  padding-top: 96px;
}

.booking-success-check {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #55ef77, #10c59c);
}

.booking-success-check::before {
  content: "";
  width: 36px;
  height: 19px;
  border-left: 9px solid #ffffff;
  border-bottom: 9px solid #ffffff;
  transform: rotate(-45deg) translate(4px, -3px);
}

.booking-success-right h2 {
  margin: 22px 0 84px;
  color: #050505;
  font-size: clamp(48px, 4vw, 64px);
  font-weight: 950;
  line-height: 1;
}

.booking-success-save {
  width: min(440px, 100%);
  min-height: 78px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #12a8e8;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 950;
}

.booking-success-save:hover {
  filter: brightness(1.04);
}

@media (max-width: 1024px), (pointer: coarse) {
  .booking-success-overlay,
  .booking-success-overlay * {
    box-sizing: border-box;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .booking-success-overlay {
    align-items: flex-start;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    padding: 14px 12px 24px;
    overflow-x: hidden;
  }

  .booking-success-shell {
    width: min(100%, 322px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto;
    overflow: visible;
  }

  .booking-success-close {
    top: 4px;
    right: 4px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    aspect-ratio: 1 / 1;
    flex: 0 0 30px;
    padding: 0;
    border-radius: 50% !important;
    font-size: 22px;
    line-height: 30px;
    background: rgba(255, 255, 255, 0.24);
  }

  .booking-success-logo {
    width: clamp(96px, 30vw, 118px);
    margin: 4px auto 14px;
  }

  .booking-success-mobile-head {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 18px 14px 17px;
    border-radius: 22px;
    background: #ffffff;
    color: #050505;
  }

  .booking-success-mobile-head .booking-success-check {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #9c89ff, #0db6ef);
  }

  .booking-success-mobile-head .booking-success-check::before {
    width: 22px;
    height: 12px;
    border-left-width: 6px;
    border-bottom-width: 6px;
  }

  .booking-success-mobile-head h2 {
    margin: 0;
    color: #050505;
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
  }

  .booking-success-card {
    display: block;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    padding: 22px 18px 22px;
    border-radius: 22px;
  }

  .booking-success-course {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .booking-success-course img {
    width: 74px;
    height: 94px;
  }

  .booking-success-course h3 {
    margin: 4px 0 5px;
    font-size: 18px;
    line-height: 1.22;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .booking-success-course p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .booking-success-price {
    font-size: 25px;
  }

  .booking-success-order {
    position: static;
    max-width: none;
    margin: 28px 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dedede;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .booking-success-details {
    margin-top: 0;
    width: 100%;
    border-top: 1px solid #dedede;
  }

  .booking-success-row {
    align-items: center;
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 34px;
    padding: 0;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .booking-success-row span:last-child {
    font-size: 14px;
  }

  .booking-success-right {
    display: block;
    padding-top: 16px;
  }

  .booking-success-right .booking-success-check,
  .booking-success-right h2 {
    display: none;
  }

  .booking-success-save {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    font-size: 19px;
  }
}
