/*
|---------------------------------------------------------------
| DESIGN HISTORY PC/SP
|---------------------------------------------------------------
*/
@media screen and (min-width: 567.2px) {
  .d-none--pc {
    display: none !important;
  }
}

@media screen and (max-width: 567px) {
  .d-none--sp {
    display: none !important;
  }
}

.thanksfair__cta__inner {
  text-align: center;
  margin-top: 16px;
}

.thanksfair__cta__attention {
  display: inline-block;
  background-color: #e60012;
  color: #fff;
  padding: 1em 2em;
  line-height: 1.6;
}

.thanksfair__cta__link__desc {
  font-size: clamp(14px, 0.462vw, 16px);
}

.thanksfair__cta__link {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/*
|---------------------------------------------------------------
| HERO
|---------------------------------------------------------------
*/
.thanksfair__hero {
  text-align: center;
  margin-bottom: 48px;
}

/*
|---------------------------------------------------------------
| FORM
|---------------------------------------------------------------
*/

.thanksfair_container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.thanksfair_form__heading__pre {
  text-align: center;
  font-size: 24px;
  color: #e70014;
  font-weight: bold;
}

.thanksfair_form__heading__title {
  text-align: center;
  font-size: 24px;
}

.thanksfair_form__body {
  margin: 0 auto;
  padding: 0 16px 64px;
}

.thanksfair_form__lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: #e60012;
}

.thanksfair_form__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.thanksfair_form__fieldset:disabled .thanksfair_form__choice {
  cursor: default;
}

.thanksfair_form__field {
  margin-bottom: 24px;
  border: 1px solid #3e3a39;
  background-color: #fff;
}

.thanksfair_form__field__head {
  padding: 8px 14px;
  background-color: #3e3a39;
  color: #fff;
}

.thanksfair_form__field__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.thanksfair_form__note {
  color: #e60012;
}

.thanksfair_form__field__body {
  padding: 14px;
}

.thanksfair_form__input,
.thanksfair_form__select {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 6px 10px;
  border: 1px solid #999;
  border-radius: 6px;
  background-color: #fff;
  font-size: 16px;
  color: #333;
}

.thanksfair_form__input:focus,
.thanksfair_form__select:focus {
  outline: none;
  border-color: #3e3a39;
  box-shadow: 0 0 0 2px rgba(62, 58, 57, 0.2);
}

.thanksfair_form__input:disabled,
.thanksfair_form__select:disabled {
  background-color: #f2f2f2;
  color: #888;
  cursor: not-allowed;
}

.thanksfair_form__select {
  max-width: 240px;
}

.thanksfair_form__name {
  display: flex;
  gap: 16px;
}

.thanksfair_form__name__item {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.thanksfair_form__name__label {
  flex-shrink: 0;
}

.thanksfair_form__zip {
  display: flex;
  align-items: center;
  gap: 4px;
}

.thanksfair_form__zip__mark {
  margin-right: 6px;
  font-size: 18px;
}

.thanksfair_form__zip__input {
  width: 60px;
  text-align: center;
}

.thanksfair_form__row + .thanksfair_form__row {
  margin-top: 12px;
}

.thanksfair_form__sublabel {
  margin: 0 0 4px;
  font-size: 14px;
}

.thanksfair_form__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.thanksfair_form__choices.column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.thanksfair_form__choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.thanksfair_form__desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
}

.thanksfair_form__file {
  max-width: 100%;
  font-size: 14px;
}

.thanksfair_form__file:disabled {
  cursor: not-allowed;
}

.thanksfair_form__terms {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #999;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.thanksfair_form__terms__title {
  margin: 0 0 8px;
  font-weight: bold;
}

.thanksfair_form__terms__list {
  margin: 0;
  padding-left: 1.5em;
  list-style: decimal;
}

.thanksfair_form__terms__list li + li {
  margin-top: 6px;
}

.thanksfair_form__submit {
  text-align: center;
}

.thanksfair_form__submit__button {
  min-width: 240px;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  background-color: #3e3a39;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.thanksfair_form__submit__button:hover {
  opacity: 0.8;
}

.thanksfair_form__submit__button:disabled,
.thanksfair_form__submit__button:disabled:hover {
  background-color: #b5b5b5;
  cursor: not-allowed;
  opacity: 1;
}

@media screen and (max-width: 567px) {
  .thanksfair_form__field__title {
    font-size: 16px;
  }

  .thanksfair_form__select {
    max-width: none;
  }
}

.thanksfair_form__sample-link {
  color: #34adf1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/*
|---------------------------------------------------------------
| SAMPLE MODAL
|---------------------------------------------------------------
*/
.thanksfair_sample[hidden] {
  display: none !important;
}

.thanksfair_sample {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.thanksfair_sample__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.72);
}

.thanksfair_sample__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  height: min(920px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  padding: 16px;
  box-sizing: border-box;
  border-radius: 8px;
  background-color: #fff;
}

.thanksfair_sample__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.thanksfair_sample__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
}

.thanksfair_sample__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: -6px -6px 0 0;
  border: none;
  border-radius: 50%;
  background-color: #3e3a39;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.thanksfair_sample__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f3f3f3;
}

.thanksfair_sample__viewport.is-loading .thanksfair_sample__image {
  visibility: hidden;
}

.thanksfair_sample__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.thanksfair_sample__loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.thanksfair_sample__loading[hidden] {
  display: none !important;
}

.thanksfair_sample__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #ddd;
  border-top-color: #3e3a39;
  border-radius: 50%;
  animation: thanksfair-sample-spin 0.8s linear infinite;
}

.thanksfair_sample__spinner[hidden] {
  display: none !important;
}

@keyframes thanksfair-sample-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thanksfair_sample__spinner {
    animation: none;
  }
}

.thanksfair_sample__hint {
  display: none;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #666;
}

@media screen and (max-width: 567px), (any-pointer: coarse) {
  .thanksfair_sample__hint {
    display: block;
  }

  .thanksfair_sample__viewport {
    touch-action: none;
  }
}

@media screen and (max-width: 567px) {
  .thanksfair_sample {
    padding: 0;
  }

  .thanksfair_sample__dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}