.support-heading,
.terms-heading,
.ticket-heading {
  padding: 27px 0 24px;
}
.support-heading p,
.terms-heading p,
.ticket-heading p {
  margin: 0;
  color: #a8477c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.support-heading h1,
.terms-heading h1,
.ticket-heading h1 {
  margin: 7px 0 11px;
  font: 700 clamp(32px, 9vw, 45px) / 1 Unbounded;
  letter-spacing: -0.07em;
}
.support-heading > span,
.terms-heading > span,
.ticket-heading > span {
  display: block;
  color: #897a82;
  font-size: 10px;
  line-height: 1.55;
}
.support-form {
  display: grid;
  gap: 13px;
  padding: 18px;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 15px 38px #5b374815;
}
.form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.form-section-title span,
.ticket-section-head span {
  color: #a8477c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.form-section-title b {
  font-size: 8px;
}
.support-form label,
.reply-form label {
  display: grid;
  gap: 7px;
}
.support-form label > span,
.reply-form label > span {
  font-size: 9px;
  font-weight: 800;
}
.support-form select,
.support-form textarea,
.reply-form textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 15px;
  outline: 0;
  background: #f7f2f5;
  color: #241b20;
  font: 500 11px Manrope;
}
.support-form select {
  height: 52px;
  padding: 0 13px;
}
.support-form textarea,
.reply-form textarea {
  min-height: 108px;
  padding: 13px;
  resize: vertical;
  line-height: 1.5;
}
.support-form select:focus,
.support-form textarea:focus,
.reply-form textarea:focus {
  border-color: #d17caa;
  box-shadow: 0 0 0 4px #d17caa18;
}
.support-form label > small {
  justify-self: end;
  margin-top: -2px;
  color: #9a8992;
  font-size: 8px;
}
.ticket-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 2px 12px;
}
.ticket-section-head b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 99px;
  background: #241b20;
  color: #fff;
  font-size: 8px;
}
.ticket-list {
  display: grid;
  gap: 8px;
}
.ticket-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 83px;
  padding: 14px;
  border-radius: 19px;
  background: #fff;
  color: #241b20;
  text-align: left;
}
.ticket-row small,
.ticket-row b,
.ticket-row p {
  display: block;
}
.ticket-row small {
  color: #a8477c;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.ticket-row b {
  margin-top: 5px;
  font-size: 11px;
}
.ticket-row p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #897a82;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-row > i {
  padding: 6px 8px;
  border-radius: 99px;
  background: #f3dfe9;
  color: #a8477c;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}
.ticket-row > i.answered {
  background: #e6f5ed;
  color: #21845b;
}
.ticket-row > i.closed {
  background: #ece7ea;
  color: #80717a;
}
.admin-scope {
  width: 100%;
  min-height: 48px;
  margin: -8px 0 14px;
  border-radius: 15px;
  background: #241b20;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.ticket-context {
  margin-bottom: 17px;
  padding: 13px;
  border-radius: 16px;
  background: #f3dfe9;
  color: #704458;
  font-size: 9px;
}
.conversation {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}
.message {
  max-width: 88%;
  padding: 12px 13px;
  border-radius: 17px;
  background: #fff;
}
.message.admin {
  justify-self: end;
  background: #d17caa;
  color: #fff;
}
.message p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.message time {
  display: block;
  margin-top: 6px;
  color: #95838c;
  font-size: 7px;
}
.message.admin time {
  color: #ffffffa0;
}
.reply-form {
  display: grid;
  gap: 10px;
}
.reply-form .pay-button {
  margin-top: 0;
}
.close-ticket {
  width: 100%;
  min-height: 48px;
  margin-top: 9px;
  background: transparent;
  color: #9a526f;
  font-size: 9px;
  font-weight: 800;
}
.terms-summary {
  margin-bottom: 24px;
  padding: 17px;
  border-radius: 20px;
  background: #241b20;
  color: #fff;
}
.terms-summary b {
  font-size: 11px;
}
.terms-summary p {
  margin: 7px 0 0;
  color: #c9bac1;
  font-size: 10px;
  line-height: 1.55;
}
.terms-content {
  display: grid;
}
.terms-content section {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #ded4d9;
}
.terms-content i {
  color: #a8477c;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.terms-content h2 {
  margin: 0;
  font-size: 13px;
}
.terms-content p {
  margin: 7px 0 0;
  color: #786871;
  font-size: 10px;
  line-height: 1.65;
}
.terms-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 65px;
  margin-top: 8px;
  padding: 0 16px;
  border-radius: 19px;
  background: #f3dfe9;
  color: #5c3348;
}
.terms-support span {
  font-size: 9px;
}
.terms-support b {
  font-size: 10px;
}
.support-order-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.support-order-field legend {
  padding: 0;
  font-size: 9px;
  font-weight: 800;
}
.support-order-field > p {
  margin: -5px 0 2px;
  color: #897a82;
  font-size: 8px;
  line-height: 1.45;
}
.support-order-choices {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.support-order-choices::-webkit-scrollbar {
  display: none;
}
.support-order-choice {
  flex: 0 0 174px;
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #f7f2f5;
  color: #241b20;
  text-align: left;
  scroll-snap-align: start;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}
.support-order-choice:active {
  transform: scale(0.975);
}
.support-order-choice.is-selected {
  border-color: #d17caa;
  background: #f8e7f0;
  box-shadow: 0 0 0 3px #d17caa12;
}
.support-order-choice small {
  color: #a8477c;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.support-order-choice b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-order-choice span {
  color: #85747d;
  font-size: 8px;
}
.manual-order input {
  width: 100%;
  height: 52px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 15px;
  outline: 0;
  background: #f7f2f5;
  color: #241b20;
  font: 500 10px Manrope;
}
.manual-order input:focus {
  border-color: #d17caa;
  box-shadow: 0 0 0 4px #d17caa18;
}
.manual-order input[aria-invalid="true"] {
  border-color: #bd4169;
}
.manual-order small {
  justify-self: start !important;
  color: #9a8992;
}
.manual-order small.is-valid {
  color: #21845b;
}
.manual-order small.is-invalid {
  color: #bd4169;
}
#supportPage,
#ticketPage {
  padding-top: 6px;
}
.support-heading {
  max-width: 470px;
  padding: 20px 0 26px;
}
.support-heading h1 {
  font-size: clamp(34px, 10vw, 48px);
}
.support-heading > span {
  max-width: 430px;
  font-size: 11px;
}
.admin-scope {
  display: block;
  width: auto;
  min-height: 38px;
  margin: -7px 0 24px auto;
  padding: 0 13px;
  border-radius: 99px;
  background: #f0e4ea;
  color: #7b4962;
  font-size: 8px;
}
.support-form {
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.form-section-title {
  padding: 0 0 15px;
  border-bottom: 1px solid #ded4d9;
}
.form-section-title span {
  font-size: 9px;
}
.support-order-field {
  padding: 20px 0;
  border-bottom: 1px solid #ded4d9;
}
.support-form > label {
  padding: 20px 0;
  border-bottom: 1px solid #ded4d9;
}
.support-form select,
.support-form textarea,
.reply-form textarea,
.manual-order input {
  background: #fff;
}
.support-form textarea {
  min-height: 132px;
}
.support-order-choice {
  background: #fff;
}
.support-order-choice.is-selected {
  border-color: transparent;
  background: #f3dfe9;
  box-shadow: inset 0 0 0 1px #d17caa;
}
.support-form .pay-button {
  margin-top: 22px;
}
.attachment-picker {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  cursor: pointer;
}
.attachment-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.attachment-picker > span {
  display: block;
  flex: 1;
}
.attachment-picker b,
.attachment-picker small {
  display: block;
}
.attachment-picker b {
  font-size: 10px;
}
.attachment-picker small {
  margin-top: 4px;
  color: #897a82;
  font-size: 8px;
}
.attachment-picker > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3dfe9;
  color: #a8477c;
  font-size: 18px;
  font-style: normal;
}
.attachment-picker.compact {
  padding: 12px 0;
  border-top: 1px solid #ded4d9;
}
.attachment-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0 18px;
}
.attachment-preview img {
  width: 72px;
  height: 72px;
  border-radius: 15px;
  object-fit: cover;
}
.attachment-preview b {
  display: block;
  font-size: 9px;
}
.attachment-preview button {
  margin-top: 7px;
  padding: 0;
  background: transparent;
  color: #a8477c;
  font-size: 8px;
  font-weight: 800;
}
.message-attachments:empty {
  display: none;
}
.message-attachments img {
  display: block;
  width: min(260px, 100%);
  max-height: 320px;
  margin-bottom: 8px;
  border-radius: 13px;
  object-fit: cover;
}
.message-attachments img.is-broken {
  min-height: 80px;
  background: #eee3e8;
}
.ticket-heading {
  padding-top: 20px;
}
.ticket-context {
  padding: 0 0 16px;
  border-bottom: 1px solid #ded4d9;
  border-radius: 0;
  background: transparent;
  color: #897a82;
}
.conversation {
  gap: 12px;
}
.message {
  padding: 13px 14px;
  border-radius: 18px;
}
.message.user {
  border-bottom-left-radius: 6px;
}
.message.admin {
  border-bottom-right-radius: 6px;
}
.reply-form {
  padding-top: 16px;
  border-top: 1px solid #ded4d9;
}
.ticket-row {
  border-radius: 17px;
  box-shadow: 0 8px 24px #5b37480b;
}
#ticketPage {
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}
.ticket-heading {
  padding: 18px 0 20px;
}
.ticket-heading > p {
  font-size: 8px;
}
.ticket-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
}
.ticket-heading h1 {
  margin: 0;
  font: 700 clamp(27px, 8vw, 36px) / 1 Unbounded;
  letter-spacing: -0.055em;
}
.ticket-status {
  flex: none;
  padding: 7px 10px;
  border-radius: 99px;
  background: #f3dfe9;
  color: #a8477c;
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
}
.ticket-status.answered {
  background: #e6f5ed;
  color: #21845b;
}
.ticket-status.closed {
  background: #ebe6e9;
  color: #786c72;
}
.ticket-context {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  margin-bottom: 22px;
  padding: 14px 0 17px;
}
.ticket-context small {
  color: #a8477c;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.ticket-context b {
  grid-row: 2;
  font-size: 11px;
}
.ticket-context span {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  max-width: 155px;
  overflow: hidden;
  color: #94858c;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation {
  gap: 10px;
  margin-bottom: 24px;
}
.message {
  display: grid;
  width: fit-content;
  max-width: 84%;
  padding: 11px 12px;
  border: 0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 20px #5b37480b;
}
.message.user {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: #f1dbe7;
}
.message.admin {
  justify-self: start;
  border-bottom-right-radius: 17px;
  border-bottom-left-radius: 5px;
  background: #241b20;
  color: #fff;
}
.message header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 7px;
}
.message header b {
  color: #a8477c;
  font-size: 7px;
  letter-spacing: 0.08em;
}
.message.admin header b {
  color: #e79bc4;
}
.message header time {
  margin: 0;
  color: #99878f;
  font-size: 6px;
}
.message.admin header time {
  color: #baaeb4;
}
.message p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}
.message-attachments img {
  width: min(190px, 62vw);
  max-height: 240px;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
}
.message-attachments:not(:empty) + p {
  margin-top: 8px;
}
.reply-form {
  position: relative;
  gap: 9px;
  margin: 0 -4px;
  padding: 17px 4px 0;
  border-top: 1px solid #ded4d9;
}
.reply-form > label:first-child > span {
  font-size: 8px;
  letter-spacing: 0.08em;
}
.reply-form textarea {
  min-height: 94px;
  border-radius: 18px;
}
.reply-form .attachment-picker {
  min-height: 52px;
  padding: 8px 0;
}
.reply-form .pay-button {
  min-height: 58px;
  border-radius: 18px;
}
.close-ticket {
  margin-top: 13px;
}
.conversation + .reply-form {
  scroll-margin-bottom: 18px;
}

/* Support overview and progressive ticket form */
#supportPage {
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}
#supportPage .support-heading {
  padding-bottom: 18px;
}
#supportPage .support-heading h1 {
  margin-bottom: 9px;
}
.support-presence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px #5b37480b;
}
.support-presence > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-presence i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35a875;
  box-shadow: 0 0 0 4px #35a87518;
}
.support-presence b {
  font-size: 9px;
}
.support-presence small {
  color: #897a82;
  font-size: 8px;
}
.support-new {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 0 17px;
  border-radius: 22px;
  background: #241b20;
  color: #fff;
  text-align: left;
  box-shadow: 0 14px 32px #35212b24;
}
.support-new small,
.support-new b {
  display: block;
}
.support-new small {
  color: #e29bc1;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.support-new b {
  margin-top: 4px;
  font: 700 16px Unbounded;
  letter-spacing: -0.05em;
}
.support-new > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 50%;
  background: #d17caa;
  font-size: 22px;
  font-style: normal;
  transition: transform 0.2s ease;
}
.support-new.is-open > i {
  transform: rotate(180deg);
}
#supportPage .ticket-section-head {
  margin-top: 25px;
}
#supportPage .ticket-list .empty {
  min-height: 170px;
  padding: 18px;
  border-radius: 21px;
  background: #fff !important;
}
#supportPage .ticket-list .empty span {
  font-size: 35px;
}
#supportPage .ticket-list .empty b {
  margin-top: 8px;
  font-size: 13px;
}
#supportPage .ticket-list .empty p {
  margin-top: 5px;
  font-size: 9px;
}
#supportPage .ticket-row {
  min-height: 88px;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 9px 26px #5b37480e;
}
#supportPage .ticket-row b {
  font-size: 12px;
}
#supportPage .ticket-row p {
  font-size: 9px;
}
#supportPage .support-form {
  margin-top: 28px;
  padding: 20px 17px 18px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 42px #5b374815;
  scroll-margin-top: 10px;
  animation: support-form-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes support-form-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
#supportPage .form-section-title {
  padding-bottom: 18px;
}
#supportPage .form-section-title > span small,
#supportPage .form-section-title > span b {
  display: block;
}
#supportPage .form-section-title > span small {
  color: #a8477c;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
#supportPage .form-section-title > span b {
  margin-top: 4px;
  font-size: 13px;
}
#supportPage .form-section-title > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3dfe9;
  color: #8c4768;
  font-size: 18px;
}
#supportPage .support-order-field {
  padding: 18px 0;
}
#supportPage .support-order-field legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-bottom: 13px;
}
#supportPage .support-order-field legend > i,
#supportPage .support-field > span > i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #f3dfe9;
  color: #a8477c;
  font-size: 7px;
  font-style: normal;
}
#supportPage .support-order-field legend b,
#supportPage .support-order-field legend small {
  display: block;
}
#supportPage .support-order-field legend b {
  font-size: 10px;
}
#supportPage .support-order-field legend small {
  margin-top: 2px;
  color: #897a82;
  font-size: 8px;
  font-weight: 500;
}
#supportPage .support-field {
  gap: 11px;
}
#supportPage .support-field > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
#supportPage .support-field > span > b {
  font-size: 10px;
}
#supportPage .support-message-field textarea {
  min-height: 138px;
}
#supportPage .attachment-picker {
  margin-top: 2px;
  padding: 12px 0;
}
.support-privacy {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 13px;
  background: #f7f2f5;
  color: #897a82;
  font-size: 8px;
  line-height: 1.5;
}
#supportPage .support-form .pay-button {
  min-height: 62px;
  margin-top: 14px;
}
#supportPage .admin-scope {
  margin: 12px 0 0 auto;
}
@media (max-width: 360px) {
  .support-presence {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-block: 10px;
  }
  #supportPage .support-form {
    padding-inline: 14px;
  }
}
