.yyt-quick-question {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 9200;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: bottom 240ms ease;
}

.yyt-quick-question--raised {
  bottom: calc(7.75rem + max(1rem, env(safe-area-inset-bottom)));
}

body.yingyingtravel-theme .yyt-quick-question__launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.5rem;
  padding: .8rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: #d69b37;
  color: #231c12;
  box-shadow: 0 .7rem 2rem rgba(26, 21, 14, .24);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
}

body.yingyingtravel-theme .yyt-quick-question__launcher:hover,
body.yingyingtravel-theme .yyt-quick-question__launcher:focus-visible {
  border-color: #fff;
  background: #e1ad51;
  color: #18130d;
  transform: translateY(-2px);
}

.yyt-quick-question__launcher-icon {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
}

.yyt-quick-question__launcher-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.yyt-quick-question__panel[hidden] {
  display: none;
}

.yyt-quick-question__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .85rem);
  width: min(25rem, calc(100vw - 2rem));
  max-height: min(43rem, calc(100vh - 7rem));
  overflow: auto;
  border: 1px solid rgba(54, 45, 32, .16);
  border-radius: 1.25rem;
  background: #fffdf9;
  box-shadow: 0 1.5rem 4.5rem rgba(25, 20, 13, .3);
  color: #2b2925;
  overscroll-behavior: contain;
}

.yyt-quick-question__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #201f1d;
  color: #fff;
}

body.yingyingtravel-theme .yyt-quick-question__heading {
  margin: 0;
  color: #fff;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

body.yingyingtravel-theme .yyt-quick-question__close {
  display: grid;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  place-items: center;
  cursor: pointer;
}

body.yingyingtravel-theme .yyt-quick-question__close:hover,
body.yingyingtravel-theme .yyt-quick-question__close:focus-visible {
  border-color: #d69b37;
  background: rgba(214, 155, 55, .16);
  color: #fff;
}

.yyt-quick-question__body {
  padding: 1.15rem;
}

.yyt-quick-question__intro {
  margin: 0 0 1rem;
  color: #625b50;
  font-size: .9rem;
  line-height: 1.55;
}

.yyt-quick-question__form .form-item {
  margin: 0 0 .85rem;
}

.yyt-quick-question__form label {
  display: block;
  margin-bottom: .35rem;
  color: #37332d;
  font-size: .78rem;
  font-weight: 750;
}

.yyt-quick-question__form .form-required::after {
  color: #a85d33;
}

.yyt-quick-question__name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.yyt-quick-question__name-row > .form-item {
  min-width: 0;
}

body.yingyingtravel-theme .yyt-quick-question__form input[type="text"],
body.yingyingtravel-theme .yyt-quick-question__form input[type="email"],
body.yingyingtravel-theme .yyt-quick-question__form textarea.form-textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: .72rem .8rem;
  border: 1px solid #d7d0c3;
  border-radius: .65rem;
  background: #fff;
  color: #29251f;
  box-shadow: none;
  font-size: .9rem;
  line-height: 1.4;
}

body.yingyingtravel-theme .yyt-quick-question__form textarea.form-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

body.yingyingtravel-theme .yyt-quick-question__form input:focus,
body.yingyingtravel-theme .yyt-quick-question__form textarea:focus {
  border-color: #a97726;
  outline: 3px solid rgba(214, 155, 55, .18);
  outline-offset: 1px;
}

.yyt-quick-question__form .form-type-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  align-items: start;
}

.yyt-quick-question__form .form-type-checkbox input {
  margin-top: .2rem;
}

.yyt-quick-question__form .form-type-checkbox label {
  margin: 0;
  color: #655f55;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.45;
}

.yyt-quick-question__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.yyt-quick-question__form .form-actions {
  margin: 1rem 0 0;
}

body.yingyingtravel-theme .yyt-quick-question__submit,
body.yingyingtravel-theme .yyt-quick-question__success-close {
  width: 100%;
  min-height: 2.9rem;
  padding: .75rem 1rem;
  border: 1px solid #a97726;
  border-radius: 999px;
  background: #d69b37;
  color: #231c12;
  box-shadow: none;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

body.yingyingtravel-theme .yyt-quick-question__submit:hover,
body.yingyingtravel-theme .yyt-quick-question__submit:focus-visible,
body.yingyingtravel-theme .yyt-quick-question__success-close:hover,
body.yingyingtravel-theme .yyt-quick-question__success-close:focus-visible {
  border-color: #7f5920;
  background: #7f5920;
  color: #fff;
}

.yyt-quick-question__form .form-item--error-message,
.yyt-quick-question__form .messages--error {
  color: #8f2f25;
  font-size: .75rem;
  line-height: 1.4;
}

.yyt-quick-question__success {
  padding: 1.4rem .25rem .25rem;
  text-align: center;
}

.yyt-quick-question__success-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin: 0 auto .9rem;
  border-radius: 50%;
  background: #e8f3df;
  color: #3f6f2c;
  font-size: 1.5rem;
  place-items: center;
}

.yyt-quick-question__success h3 {
  margin: 0 0 .55rem;
  color: #2b2925;
  font-size: 1.35rem;
}

.yyt-quick-question__success p {
  margin: 0 0 1.2rem;
  color: #625b50;
  font-size: .9rem;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .yyt-quick-question {
    right: max(.75rem, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
  }

  .yyt-quick-question--raised {
    bottom: calc(12.5rem + max(.75rem, env(safe-area-inset-bottom)));
  }

  .yyt-quick-question__panel {
    width: min(24rem, calc(100vw - 1.5rem));
    max-height: calc(100vh - 6rem);
  }

  .yyt-quick-question__launcher-label {
    display: none;
  }

  body.yingyingtravel-theme .yyt-quick-question__launcher {
    width: 3.5rem;
    padding: .8rem;
  }
}

@media (max-width: 420px) {
  .yyt-quick-question__name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yyt-quick-question,
  body.yingyingtravel-theme .yyt-quick-question__launcher {
    transition: none;
  }
}
