:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202632;
  background: #fafaf9;
  font-synthesis: none;
  --blue: #315ee7;
  --blue-hover: #244dcd;
  --muted: #6b7280;
  --line: #e8e9ec;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #a8bdfb;
  outline-offset: 4px;
}
.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1176px;
  margin: auto;
  padding: 23px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 800;
}
.brand > span:first-child {
  color: var(--blue);
}
.brand-divider {
  height: 18px;
  width: 1px;
  background: #dfe2e7;
  margin: 0 17px;
}
.brand small {
  color: #646c7b;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
}
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: #505b6c;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.github-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.page {
  max-width: 1176px;
  margin: 0 auto;
  padding: 34px 28px 24px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  margin: 0 0 30px;
  font-size: 12px;
  color: #424a58;
}
.breadcrumb span {
  color: #8a909a;
}
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.gallery {
  min-width: 0;
}
.photo-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #f0f0ee;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-count {
  position: absolute;
  bottom: 16px;
  right: 16px;
  border: 1px solid #ffffff80;
  border-radius: 20px;
  padding: 6px 11px;
  background: #ffffffec;
  color: #434b58;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.photo-placeholder {
  display: grid;
  justify-items: center;
  gap: 16px;
  font-size: 13px;
  color: #7b828e;
  text-align: center;
  padding: 24px;
}
.loading-mark {
  width: 30px;
  height: 30px;
  border: 2px solid #dce1ea;
  border-top-color: var(--blue);
  border-radius: 50%;
}
.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.thumbnails:empty {
  display: none;
}
.thumbnails button {
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 10px;
  flex-shrink: 0;
}
.thumbnails button.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.thumbnails button:hover:not(.selected) {
  border-color: #b9c1d0;
}
.thumbnails img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.gallery-note {
  font-size: 11px;
  color: #838a96;
  margin: 14px 0 0;
}
.details {
  padding-top: 8px;
}
.product-labels {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: #7b8290;
}
.channel {
  font-size: 10px;
  font-weight: 600;
  color: #8a5b29;
  background: #f5ede2;
  border-radius: 5px;
  padding: 4px 7px;
}
.details h1 {
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.85px;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.price {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -0.7px;
  margin: 0 0 18px;
}
.seller-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.seller-row .icon {
  width: 16px;
  height: 16px;
}
.product-link {
  color: #505b6c;
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.product-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.inquiry-intro {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 25px;
}
.inquiry-intro h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0 0 9px;
}
.inquiry-intro > p:not(.hint) {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 380px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 550;
}
.primary:hover:not(:disabled) {
  background: var(--blue-hover);
}
.contact {
  width: 100%;
  min-height: 52px;
  font-size: 14px;
  padding: 14px 18px;
  justify-content: flex-start;
}
.contact-arrow {
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
}
.hint {
  color: #828995;
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
  margin: 12px 0 0;
}
.page-footer {
  margin-top: 46px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  font-size: 11px;
  color: #8a909b;
}
.page-footer strong {
  font-weight: 600;
  color: #626c7b;
}
.error {
  font-size: 12px;
  line-height: 1.6;
  color: #a1392c;
  background: #fff0ec;
  border: 1px solid #f8dcd3;
  border-radius: 9px;
  padding: 11px 13px;
  overflow-wrap: anywhere;
}
.details > .error {
  margin-top: 16px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--blue);
  padding: 10px 4px;
  min-height: 40px;
  font-size: 12px;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.small {
  font-size: 11px;
}
.chat-launcher {
  position: fixed;
  z-index: 9;
  right: 26px;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 28px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  box-shadow: 0 6px 22px #254cc733;
}
.chat-launcher:hover {
  background: var(--blue-hover);
}
.unread-count {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #fff;
  color: var(--blue);
  font-size: 10px;
}
.chat {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: min(710px, calc(100dvh - 48px));
  background: #fff;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e4ec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 20px 70px #182d5026,
    0 2px 8px #182d5008;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.support-avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #edf2ff;
  color: var(--blue);
  flex-shrink: 0;
}
.support-heading {
  flex: 1;
  min-width: 0;
}
.support-heading strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-heading small {
  display: block;
  color: #818896;
  font-size: 10px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.sound-off,
.sound-toggle[aria-pressed="false"] .sound-waves {
  display: none;
}
.sound-toggle[aria-pressed="false"] .sound-off {
  display: block;
}
.composer-note .text-button {
  color: #6f7785;
  white-space: nowrap;
  font-size: 11px;
  padding: 6px 4px;
  min-height: 30px;
}
.composer-note .text-button[data-confirm="1"] {
  color: #a1392c;
  background: #fff0ec;
  border-radius: 7px;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #717b8a;
  background: transparent;
  border: 0;
  border-radius: 9px;
  flex-shrink: 0;
}
.icon-button:hover:not(:disabled) {
  background: #f0f3f8;
  color: #394659;
}
.chat-error {
  margin: 10px 14px 0;
  flex-shrink: 0;
  max-height: 105px;
  overflow: auto;
}
.retry-chat {
  align-self: flex-start;
  margin: 0 14px;
  flex-shrink: 0;
}
.messages {
  background: #f8f9fb;
  flex: 1;
  min-height: 60px;
  overflow: auto;
  padding: 20px 18px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.empty {
  text-align: center;
  margin: 22px auto;
  max-width: 280px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  height: 48px;
  width: 48px;
  color: #7588bc;
  background: #edf1fa;
  border-radius: 15px;
}
.empty h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}
.empty p {
  font-size: 12px;
  color: #7b8493;
  line-height: 1.7;
  margin: 0;
}
.suggestions {
  display: grid;
  gap: 8px;
  margin-top: 23px;
}
.suggestions button {
  padding: 12px 13px;
  min-height: 42px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  border: 1px solid #e3e7ee;
  border-radius: 9px;
  color: #59677d;
  background: #fff;
}
.suggestions button:hover {
  border-color: #a9bbef;
  color: var(--blue);
}
.suggestions button span {
  color: #9da9bd;
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 19px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.msg {
  max-width: 87%;
  min-width: 0;
  align-self: flex-start;
}
.msg.customer {
  align-self: flex-end;
}
.who {
  display: block;
  color: #848e9e;
  font-size: 10px;
  margin: 0 3px 6px;
}
.customer .who,
.customer .meta {
  text-align: right;
}
.bubble {
  color: #344054;
  background: #fff;
  border: 1px solid #e9ecf2;
  border-radius: 3px 13px 13px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.customer .bubble {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 13px 3px 13px 13px;
}
.meta {
  color: #8993a2;
  font-size: 9px;
  margin: 6px 3px 0;
}
.card-link {
  display: block;
  color: #354259;
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 6px;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.5;
}
.card-link .cs {
  font-size: 10px;
  color: #8692a5;
  margin-bottom: 5px;
}
.card-link .ct {
  font-weight: 550;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.att {
  background: #fff;
  border-radius: 9px;
  padding: 5px;
  margin-top: 5px;
}
.att img,
.att video {
  max-width: 100%;
  max-height: 240px;
  border-radius: 6px;
  display: block;
}
.att a {
  display: block;
  color: #66758b;
  font-size: 10px;
  margin: 5px;
  overflow-wrap: anywhere;
}
.older {
  display: block;
  margin: 0 auto 18px;
  min-height: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 15px;
  color: #6e7c91;
  font-size: 11px;
}
.new-messages {
  position: absolute;
  align-self: center;
  bottom: calc(var(--composer-height, 100px) + 12px);
  padding: 9px 15px;
  background: #fff;
  border: 1px solid #dbe2f0;
  border-radius: 20px;
  box-shadow: 0 3px 12px #253b6020;
  color: var(--blue);
  font-size: 11px;
}
.composer {
  padding: 13px 14px 11px;
  border-top: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
.compose-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: #f8f9fb;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  padding: 5px;
}
.compose-row:focus-within {
  border-color: #9fb5f4;
  box-shadow: 0 0 0 3px #edf2ff;
}
.compose-row textarea {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 136px;
  resize: none;
  border: 0;
  background: transparent;
  color: #344054;
  padding: 10px 6px;
  font-size: 13px;
  line-height: 20px;
  outline: none;
  scrollbar-width: thin;
}
.compose-row textarea::placeholder {
  color: #929baa;
}
.send-button {
  height: 38px;
  width: 38px;
  margin: 1px;
  padding: 0;
  border-radius: 9px;
  flex-shrink: 0;
}
.send-button:disabled {
  opacity: 1;
  background: #e4e9f2;
  color: #a0adbf;
}
.composer-note {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 1px 0;
  color: #959dab;
  font-size: 9px;
  line-height: 1.5;
  align-items: center;
}
.send-status {
  font-size: 11px;
  color: #788396;
  margin: 8px 0 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.send-status.err {
  color: #a1392c;
}
.send-status:empty {
  display: none;
}
.draft-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 140px;
  overflow: auto;
}
.draft-file {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  padding: 5px;
  background: #f6f8fb;
  border-radius: 6px;
  margin-bottom: 6px;
}
.draft-file img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}
.draft-file .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.draft-file .muted {
  font-size: 10px;
}
.draft-file button {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 8px;
}
.closed-panel {
  padding: 18px;
  text-align: center;
  border-top: 1px solid var(--line);
  max-height: min(310px, 45%);
  overflow: auto;
  flex-shrink: 0;
  background: #fff;
}
.closed-panel p {
  font-size: 12px;
  color: #69778b;
  line-height: 1.6;
}
.stars {
  display: flex;
  justify-content: center;
}
.stars button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  color: #cbd2df;
  font-size: 30px;
  padding: 3px;
}
.stars button.on {
  color: #e8a434;
}
.closed-panel textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  padding: 10px;
  font-size: 12px;
  min-height: 56px;
  margin: 10px 0;
}
.row {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.row > button {
  font-size: 12px;
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  min-height: 40px;
}
.row > button:not(.primary) {
  color: #727e91;
  background: #f3f5f8;
}
@media (max-width: 900px) and (min-width: 721px) {
  .details h1 {
    font-size: 25px;
  }
  .product {
    gap: 32px;
  }
}
@media (max-width: 720px) {
  .topbar-inner {
    padding: 14px 20px;
    gap: 12px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-divider {
    margin: 0 13px;
  }
  .page {
    padding: 23px 20px 95px;
  }
  .breadcrumb {
    font-size: 11px;
    margin-bottom: 21px;
  }
  .product {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .photo-wrap {
    border-radius: 14px;
  }
  .photo-count {
    bottom: 12px;
    right: 12px;
  }
  .thumbnails {
    gap: 9px;
    margin-top: 11px;
  }
  .thumbnails button {
    width: 57px;
    height: 57px;
  }
  .gallery-note {
    margin-top: 10px;
    font-size: 10px;
  }
  .details {
    padding: 0;
  }
  .product-labels {
    margin-bottom: 14px;
  }
  .details h1 {
    font-size: 26px;
    letter-spacing: -0.6px;
    margin-bottom: 21px;
  }
  .price {
    font-size: 28px;
  }
  .inquiry-intro {
    margin-top: 23px;
    padding-top: 23px;
  }
  .inquiry-intro > p:not(.hint) {
    max-width: none;
  }
  .page-footer {
    margin-top: 33px;
    flex-direction: column;
    gap: 7px;
  }
  .chat-launcher {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 50px;
  }
  body.chat-open {
    overflow: hidden;
  }
  .chat {
    top: var(--chat-top, 0px);
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: none;
    height: var(--chat-height, 100dvh);
    border: 0;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
  }
  .chat-head {
    padding: 8px 14px;
    gap: 10px;
  }
  .support-avatar,
  .support-heading small {
    display: none;
  }
  .messages {
    padding: 20px 16px;
  }
  .empty {
    margin-top: 28px;
  }
  .bubble {
    font-size: 14px;
  }
  .composer,
  .closed-panel {
    padding-bottom: max(13px, env(safe-area-inset-bottom));
  }
  .compose-row textarea,
  .closed-panel textarea {
    font-size: 16px;
  }
  .composer-note {
    font-size: 9px;
    justify-content: space-between;
  }
  .icon-button {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.15s,
      border-color 0.15s,
      color 0.15s,
      box-shadow 0.15s;
  }
  .loading-mark {
    animation: spin 0.9s linear infinite;
  }
  .chat {
    animation: chat-enter 0.2s ease-out;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes chat-enter {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
