@font-face {
  font-family: Roboto;
  src: url('assets/roboto-400.ttf');
}
@font-face {
  font-family: Roboto;
  src: url('assets/roboto-500.ttf');
  font-weight: 500;
}
@font-face {
  font-family: Roboto;
  src: url('assets/roboto-700.ttf');
  font-weight: 700;
}
@font-face {
  font-family: Tinos;
  src: url('assets/tinos-bold.ttf');
  font-weight: 700;
}
@font-face {
  font-family: Devanagari;
  src: url('assets/noto-sans-devanagari.ttf');
  font-weight: 100 900;
}
:root {
  font-family: Roboto, Arial, sans-serif;
  color: #402617;
  background: #fff7f0;
  --copper: #b65320;
  --brown: #452716;
  --muted: #967764;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
button,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid #b65320;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.support-app {
  height: 100dvh;
  max-width: 430px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  background:
    radial-gradient(ellipse at 18% 12%, #ffe9d9b3, transparent 58%),
    linear-gradient(145deg, #fffaf5, #fff5ee 65%, #fffaf5);
  overflow: hidden;
}
.sheet-handle {
  width: 54px;
  height: 5px;
  border-radius: 9px;
  background: #deb091;
  margin: 12px auto 15px;
  flex-shrink: 0;
}
.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 0 10px;
}
.support-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-brand img {
  width: 36px;
  height: 32px;
  object-fit: contain;
}
.support-brand span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.support-brand strong {
  font:
    700 19px/1 Tinos,
    Georgia,
    serif;
  white-space: nowrap;
  color: #432718;
}
.support-brand small {
  font:
    500 7px/1.2 Roboto,
    sans-serif;
  letter-spacing: 0.2px;
  white-space: nowrap;
  color: #9e6944;
}
.support-header nav {
  display: flex;
  gap: 7px;
}
.support-header button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid #c77543;
  border-radius: 10px;
  background: linear-gradient(140deg, #fffdf9, #fbe6d6);
  color: #a84a1c;
  box-shadow:
    inset 0 1px 1px white,
    0 3px 6px #b65b2820;
}
.support-header svg {
  width: 20px;
  height: 20px;
}
#product-choice {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  scrollbar-width: thin;
  padding: 0 0 4px;
}
.headset-halo {
  position: relative;
  width: 148px;
  min-height: 128px;
  height: 148px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle,
    #f9d6bc88 42%,
    #fbe2cf70 43%,
    #fbe2cf70 59%,
    #fbe5d652 60%,
    #fbe5d652 70%,
    transparent 71%
  );
  margin: 3px 0 0;
}
.headset-halo img {
  width: 117px;
  height: 117px;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px #9b481b22);
}
.support-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font:
    700 18px/1.25 Tinos,
    Georgia,
    serif;
  color: #ae4d1a;
  margin: 2px 0 13px;
}
.support-kicker:before,
.support-kicker:after {
  content: '';
  width: 34px;
  height: 1px;
  background: #d59c77;
}
#choice-title {
  font:
    700 clamp(27px, 8.5vw, 35px) / 1.1 Tinos,
    Georgia,
    serif;
  letter-spacing: -0.7px;
  color: #402313;
}
.choice-subtitle {
  font:
    16px/1.5 Georgia,
    serif;
  color: #786151;
  margin: 12px 0 22px;
  max-width: 310px;
}
.product-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  width: 100%;
  padding: 0 1px;
}
.product-card {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 18px 8px 13px;
  min-height: 175px;
  border: 1.3px solid #c9733d;
  border-bottom-color: #aa4c1b;
  border-radius: 20px;
  background: linear-gradient(130deg, #fffdf9, #fce5d3);
  box-shadow:
    inset 0 2px 2px #fff,
    0 10px 14px -9px #ab551f6b;
  color: #4a2a17;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.product-card.usdt {
  background: linear-gradient(135deg, #fff7ee, #ffdebf);
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 2px white,
    0 11px 16px -8px #ab551f80;
}
.product-card:active {
  transform: translateY(1px);
}
.product-symbol {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff9f0, #fbd3b4);
  box-shadow:
    inset 0 2px 4px #cd8d602a,
    inset 0 -1px 2px #fff9f0,
    0 3px 8px #a25b2310;
}
.product-symbol img {
  filter: drop-shadow(0 2px 1px #c1855360);
  width: 42px;
  height: 42px;
}
.product-card strong {
  font:
    700 clamp(21px, 6.4vw, 27px) / 1.2 Tinos,
    Georgia,
    serif;
  margin: 13px 0 5px;
  white-space: nowrap;
}
.product-arrow {
  font:
    32px/1 Roboto,
    sans-serif;
  color: #b6541e;
}
.choice-note {
  font:
    13px/1.6 Georgia,
    serif;
  color: #876956;
  margin: 20px 5px 14px;
}
.registration-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 8px;
  color: #ae5426;
  font:
    italic 14px/1.4 Georgia,
    serif;
}
.registration-note:before,
.registration-note:after {
  content: '';
  height: 1px;
  width: 40px;
  background: #e6c5af;
}
#product-notice {
  font:
    12px/1.5 Roboto,
    sans-serif;
  color: #a84c20;
  background: #fce7d5;
  border: 1px solid #edc7aa;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
  width: 100%;
}
#pay-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.room-header {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #edd7c6;
  border-bottom: 1px solid #edd7c6;
  padding: 13px 0;
  flex-shrink: 0;
}
.room-header img {
  object-fit: contain;
}
.room-header > div {
  flex: 1;
}
.room-header h2 {
  font:
    700 18px/1.2 Tinos,
    Georgia,
    serif;
}
.room-header p {
  font-size: 10px;
  line-height: 1.5;
  color: #9b7a62;
  margin-top: 4px;
}
.room-header > span {
  font-size: 10px;
  color: #b26537;
  align-self: flex-start;
  margin-top: 4px;
}
.history-control {
  flex-shrink: 0;
  text-align: center;
}
.history-control button {
  background: transparent;
  border: 0;
  color: #a57655;
  font-size: 11px;
  padding: 8px;
}
.chat-messages {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 1px;
  scrollbar-width: thin;
  scrollbar-color: #e8c9b3 transparent;
  touch-action: pan-y;
}
#empty-chat {
  height: 100%;
  display: grid;
  place-items: center;
  color: #a08069;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}
.message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 17px;
}
.message.own {
  align-items: flex-end;
}
.message-author {
  font-size: 10px;
  color: #ac8b74;
  margin-bottom: 6px;
}
.bubble {
  border: 1px solid #efd9c8;
  max-width: 88%;
  border-radius: 5px 16px 16px;
  background: linear-gradient(135deg, #fffefa, #fff6ec);
  box-shadow: 0 4px 10px #8f4b1c09;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #62422e;
}
.own .bubble {
  background: linear-gradient(135deg, #f9d3b6, #f4bd93);
  border-color: #edbc98;
  border-radius: 16px 5px 16px 16px;
  color: #613613;
  box-shadow: 0 4px 9px #b3652720;
}
.message-status {
  font-size: 9px;
  color: #ac815f;
  margin-top: 4px;
}
#customer-hint {
  font-size: 10px;
  color: #a1826a;
  min-height: 21px;
  padding: 3px 0 5px;
  line-height: 1.5;
  flex-shrink: 0;
}
#customer-hint.error {
  color: #b44e24;
}
#customer-composer {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  flex-shrink: 0;
  background: linear-gradient(140deg, #fffefa, #fff5ec);
  border: 1px solid #e7c3a9;
  border-radius: 15px;
  padding: 9px 10px 9px 13px;
  box-shadow:
    inset 0 1px white,
    0 4px 12px #b35f2210;
}
#customer-question {
  resize: none;
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.6;
  color: #65422d;
  max-height: 100px;
  padding: 3px 0;
}
#customer-question::placeholder {
  color: #b49782;
  font-size: 13px;
}
#customer-send {
  width: 34px;
  height: 34px;
  border: 1px solid #b95a28;
  border-radius: 10px;
  padding: 7px;
  background: linear-gradient(135deg, #e9a16d, #b65320);
  color: #fff6ed;
  box-shadow:
    inset 0 1px #f6c9a9,
    0 3px 5px #a14e2420;
}
#customer-send svg {
  width: 19px;
  height: 19px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
html[lang='hi'] body,
html[lang='hi'] .choice-subtitle,
html[lang='hi'] .choice-note,
html[lang='hi'] .registration-note,
html[lang='hi'] #choice-title,
html[lang='hi'] .support-kicker {
  font-family: Devanagari, Roboto, sans-serif;
}
html[lang='hi'] #choice-title {
  font-size: 29px;
  line-height: 1.35;
}
html[lang='hi'] .choice-subtitle {
  font-size: 13px;
  line-height: 1.6;
}
html[lang='hi'] .registration-note {
  font-size: 12px;
}
@media (max-height: 630px) {
  .headset-halo {
    width: 112px;
    height: 110px;
    min-height: 110px;
  }
  .headset-halo img {
    width: 93px;
    height: 93px;
  }
  .support-kicker {
    font-size: 16px;
    margin-bottom: 9px;
  }
  .choice-subtitle {
    margin: 9px 0 17px;
    font-size: 14px;
  }
  .product-card {
    min-height: 151px;
    padding: 13px 8px 10px;
  }
  .product-symbol {
    width: 59px;
    height: 59px;
  }
  .product-card strong {
    font-size: 24px;
    margin-top: 11px;
  }
  .choice-note {
    margin: 17px 0 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.support-header button {
  width: 42px;
  height: 42px;
  padding: 10px;
}
.support-header nav {
  gap: 6px;
}
@media (max-width: 350px) {
  .support-app {
    padding-left: 16px;
    padding-right: 16px;
  }
  .support-brand strong {
    font-size: 17px;
  }
  .support-brand img {
    width: 31px;
    height: 29px;
  }
  .support-header button {
    width: 40px;
    height: 40px;
  }
}

.support-app {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.support-header nav {
  flex-shrink: 0;
}
.support-header .room-header {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  gap: 8px;
}
.support-header .room-header > div {
  min-width: 0;
}
.support-header .room-header img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.support-header .room-header h2 {
  font-size: clamp(15px, 4.6vw, 18px);
}
.support-header .room-header p {
  font-size: 10px;
  line-height: 1.4;
}
.support-header:has(.room-header:not([hidden])) {
  border-bottom: 1px solid #edd7c6;
  padding-bottom: 12px;
}
@media (max-height: 530px) {
  .sheet-handle {
    margin-top: 8px;
    margin-bottom: 10px;
  }
  .headset-halo {
    height: 70px;
    min-height: 70px;
    width: 85px;
  }
  .headset-halo img {
    width: 70px;
    height: 70px;
  }
  .support-kicker {
    font-size: 14px;
    margin: 2px 0 6px;
  }
  #choice-title {
    font-size: 26px;
  }
  .choice-subtitle {
    font-size: 12px;
    margin: 7px 0 12px;
  }
  .product-card {
    min-height: 128px;
    padding: 10px 7px;
  }
  .product-symbol {
    width: 47px;
    height: 47px;
  }
  .product-symbol img {
    width: 32px;
    height: 32px;
  }
  .product-card strong {
    font-size: 21px;
    margin: 9px 0 2px;
  }
  .product-arrow {
    font-size: 25px;
  }
  .choice-note {
    font-size: 11px;
    margin: 12px 0 8px;
  }
}

#product-choice {
  justify-content: space-between;
  gap: clamp(3px, 1.6dvh, 14px);
  padding-top: 8px;
  padding-bottom: 12px;
}
#product-choice > * {
  flex-shrink: 0;
}
.headset-halo {
  margin-top: 0;
}
.support-kicker {
  margin-bottom: 0;
}
.choice-subtitle {
  margin-top: 0;
  margin-bottom: 0;
}
.choice-note {
  margin-bottom: 0;
  margin-top: 12px;
}
#customer-upload {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #fbe6d5;
  color: #ae5426;
  padding: 6px;
}
#customer-upload svg {
  width: 22px;
  height: 22px;
}
.bubble.image-bubble {
  padding: 5px;
  max-width: 78%;
  overflow: hidden;
}
.image-message {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 240px;
  border: 0;
  border-radius: 10px;
  cursor: zoom-in;
}
.image-loading {
  font-size: 12px;
  color: #9b6948;
  padding: 12px;
}
#image-viewer {
  max-width: 94vw;
  max-height: 94dvh;
  padding: 40px 10px 10px;
  background: #fff7f0;
  border: 1px solid #dbb69b;
  border-radius: 16px;
}
#image-viewer::backdrop {
  background: #201309cc;
}
#image-viewer img {
  display: block;
  max-width: 86vw;
  max-height: 78dvh;
  object-fit: contain;
}
#image-close {
  position: absolute;
  right: 8px;
  top: 4px;
  border: 0;
  background: transparent;
  color: #9e471e;
  font-size: 30px;
}
.chat-messages {
  padding-right: 0;
}
.chat-messages .message.own {
  margin-right: 10px;
}

.image-message {
  max-height: 180px;
  max-width: 200px;
  object-fit: contain;
}
.bubble.image-bubble {
  max-width: 72%;
  padding: 5px;
}
.image-loading {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0;
  display: block;
  cursor: zoom-in;
}
.chat-messages {
  overflow-anchor: none;
}
.bubble.image-bubble {
  padding: 0;
  border: 1px solid #edbc98;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}
.image-bubble .image-loading,
.image-bubble .image-message {
  border-radius: 11px;
}
.support-app,
.support-app * {
  -webkit-user-select: none;
  user-select: none;
}
.support-app textarea {
  -webkit-user-select: text;
  user-select: text;
}
.support-app img {
  -webkit-user-drag: none;
}
.chat-messages {
  scrollbar-width: thin;
  scrollbar-color: #f1ddce transparent;
}
@supports selector(::-webkit-scrollbar) {
  .chat-messages {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  .chat-messages::-webkit-scrollbar {
    width: 3px;
  }
  .chat-messages::-webkit-scrollbar-track {
    background: transparent;
  }
  .chat-messages::-webkit-scrollbar-thumb {
    background: #f1ddce;
    border-radius: 8px;
  }
}
.image-loading {
  position: relative;
}
.image-loading.is-loading,
.image-loading.is-error {
  background: #fff5ec;
  cursor: progress;
}
.image-loading.is-loading .image-message,
.image-loading.is-error .image-message {
  visibility: hidden;
}
.image-loading.is-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  box-sizing: border-box;
  border: 2px solid #efdccd;
  border-top-color: #c57c49;
  border-radius: 50%;
  animation: image-loading-spin 0.9s linear infinite;
}
.image-loading.is-error {
  cursor: pointer;
}
.image-retry {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #9b6948;
}
@keyframes image-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .image-loading.is-loading::after {
    animation-duration: 2s;
  }
}

#change-product {
  flex: 0 0 26px;
  width: 26px;
  height: 30px;
  padding: 0;
  font:
    26px/1 Arial,
    sans-serif;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 8px;
}
#change-product:hover {
  background: #f8e4d3;
}

/* Chat author identity and a clearer product-back control, shared visual treatment for A/B. */
.message-author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
}
.message-support-avatar {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
  border-radius: 50%;
}
.message.own .message-author {
  min-height: 0;
}
#change-product {
  flex-basis: 34px;
  width: 34px;
  height: 36px;
}
#change-product .support-back-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.3;
}
.room-header > img,
.headset-halo img {
  border-radius: 50%;
  object-fit: cover;
}

/* Header actions do not acquire a colored frame when focused or tapped. */
#minimize, #close { border-color: transparent; outline: none; }
#minimize:focus, #close:focus { outline: none; }
#minimize:focus-visible svg, #close:focus-visible svg { transform: scale(1.15); }
