/*
 * A STUDIO modal page (review/thanks), opened by js/studio.js over the page when the form has been sent.
 * STUDIO's own rules for its modals (design-canvas__modal); the page's own background goes to the backdrop.
 */
.design-canvas__modal {
  pointer-events: none;
  z-index: 2;
  width: 100%;
  height: 100%;
  transition: none;
  position: fixed;
  top: 0;
  left: 0;
}

.design-canvas__modal[hidden] {
  display: none;
}

.design-canvas__modal:focus {
  outline: none;
}

.design-canvas__modal .design-canvas__modal__base {
  pointer-events: auto;
  z-index: -1;
  width: 100%;
  height: 100%;
  transition: all .4s cubic-bezier(.4,.4,0,1);
  position: fixed;
  top: 0;
  left: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: default;
}

.design-canvas__modal .studio-canvas {
  pointer-events: none;
  height: 100%;
  transition: all .3s cubic-bezier(.4,.4,0,1);
}

.design-canvas__modal.isNone .studio-canvas,
.design-canvas__modal.isNone .design-canvas__modal__base {
  transition: none;
}

.design-canvas__modal .studio-canvas > * {
  pointer-events: none;
  background: 0 0 !important;
  height: 100%;
  min-height: 0;
}

/* STUDIO's elements take the clicks (.sd { pointer-events: all }) */
.design-canvas__modal .studio-canvas > * * {
  pointer-events: auto;
}

/* the thank-you page (review/thanks), its classes prefixed with thanks- */


/* box --------------------------------------------------------------------- */

/* The layout most elements share: an element's own class rule (written after this) decides where it differs. */
:where(.design-canvas__modal) .box {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  max-width: 100%;
}

/* page -------------------------------------------------------------------- */


/* hero -------------------------------------------------------------------- */

.thanks-hero__box {
  color: rgb(51, 51, 51);
  font-family: sans-serif;
  line-height: 1;
  word-spacing: 1px;
  list-style-type: none;
}

.thanks-hero__inner {
  display: flex;
  min-height: 100dvh;
}

.thanks-hero__inner-2 {
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: clip;
  background-color: rgba(0, 0, 0, 0.16);
}

.thanks-hero__inner-3 {
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 19, 32, 0.796);
}

.thanks-hero__col {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-content: center;
  align-items: center;
  max-width: calc(100% - 40px);
  margin: 20px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 15px 0px;
}

.thanks-hero__icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-content: center;
  align-items: center;
  max-width: 100%;
  padding: 0px;
  color: #fbed3f;
  font-family: "Material Icons";
  font-size: 24px;
  line-height: 1;
  word-spacing: 1px;
  word-break: break-word;
  overflow-wrap: normal;
  overflow: visible;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  background-position: 0px 0px;
  border: 0px none currentcolor;
  cursor: pointer;
  text-rendering: optimizelegibility;
}

.thanks-hero__col-2 {
  flex-direction: column;
  padding: 30px 20px;
  background-color: rgb(60, 63, 68);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.thanks-hero__title {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  max-width: 100%;
  margin-top: 11px;
  margin-bottom: 17px;
  overflow: visible;
  color: #fbed3f;
  font-family: 'A1ゴシック B JIS2004', "Noto Sans JP";
  font-size: 2vw;
  font-weight: 400;
  font-feature-settings: "palt";
  line-height: 1.4;
  text-align: left;
  word-break: break-word;
}

.thanks-hero__text {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  color: rgb(255, 255, 255);
  font-family: 'A1ゴシック R JIS2004', "Noto Sans JP";
  font-size: 1.2vw;
  font-feature-settings: "palt";
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
}

.thanks-hero__inner-4 {
  flex-direction: column;
  width: 100%;
  padding: 10px 20px 30px;
  background-color: rgb(60, 63, 68);
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.thanks-hero__image {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-content: center;
  align-items: center;
  width: 12vw;
  max-width: 12vw;
  height: auto;
  margin-top: 20px;
}

@media (max-width: 840px) {
  .thanks-hero__title {
    font-size: 6vw;
  }
  .thanks-hero__text {
    font-size: 2.5vw;
  }
  .thanks-hero__image {
    width: 20vw;
    max-width: 20vw;
  }
}

@media (max-width: 540px) {
  .thanks-hero__title {
    font-size: 8vw;
  }
  .thanks-hero__text {
    font-size: 4vw;
  }
  .thanks-hero__image {
    width: 30vw;
    max-width: 30vw;
  }
}


/* STUDIO resets buttons (no background, no border); the copy kept only the rest of the × button */
:where(.design-canvas__modal .studio-canvas) button {
  background-color: transparent;
  border: 0;
}
