#xgbt-ssa,
#xgbt-ssa * {
  box-sizing: border-box;
}

#xgbt-ssa {
  --xgbt-primary: #944526;
  --xgbt-accent: #e4b17d;
  --xgbt-ink: #2f2925;
  --xgbt-muted: #716a65;
  --xgbt-line: #e9e2dc;
  --xgbt-soft: #f8f5f2;
  --xgbt-safe-bottom: max(20px, env(safe-area-inset-bottom));
  position: fixed;
  right: 20px;
  bottom: var(--xgbt-safe-bottom);
  z-index: 999990;
  width: 58px;
  color: var(--xgbt-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  isolation: isolate;
}

#xgbt-ssa button,
#xgbt-ssa input,
.xgbt-ssa-product-help,
.xgbt-ssa-cart-help button {
  font: inherit;
}

#xgbt-ssa button {
  text-transform: none;
  letter-spacing: 0;
  min-height: 0;
  margin: 0;
  box-shadow: none;
}

.xgbt-ssa-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: var(--xgbt-primary) !important;
  background: linear-gradient(145deg, var(--xgbt-primary), color-mix(in srgb, var(--xgbt-primary), #000 18%)) !important;
  box-shadow: 0 10px 30px rgba(63, 34, 20, .28), 0 2px 8px rgba(63, 34, 20, .16) !important;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.xgbt-ssa-launcher:hover,
.xgbt-ssa-launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(63, 34, 20, .34), 0 3px 10px rgba(63, 34, 20, .18) !important;
}

.xgbt-ssa-launcher svg {
  display: block;
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.xgbt-ssa-badge {
  position: absolute;
  top: -3px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #d9392f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.xgbt-ssa-badge[hidden] {
  display: none !important;
}

.xgbt-ssa-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  color: #fff;
  background: var(--xgbt-primary);
  font-size: 11px;
  font-weight: 800;
}

.xgbt-ssa-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.xgbt-ssa-teaser {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  width: min(350px, calc(100vw - 34px));
  padding: 11px 9px 11px 11px;
  border: 1px solid var(--xgbt-line);
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.98);
  background: #fff;
  box-shadow: 0 16px 44px rgba(53, 39, 31, .18), 0 3px 10px rgba(53, 39, 31, .08);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.xgbt-ssa-teaser.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.xgbt-ssa-teaser .xgbt-ssa-avatar {
  width: 40px;
  height: 40px;
  border-color: #f1e7df;
}

.xgbt-ssa-teaser-main {
  display: flex !important;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  color: var(--xgbt-ink) !important;
  background: transparent !important;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}

.xgbt-ssa-teaser-main strong {
  margin-bottom: 1px;
  font-size: 12px;
  line-height: 1.3;
}

.xgbt-ssa-teaser-main span {
  display: -webkit-box;
  overflow: hidden;
  color: #4d4743;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.xgbt-ssa-teaser-close,
.xgbt-ssa-panel-close {
  display: grid !important;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #766f6a !important;
  background: transparent !important;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.xgbt-ssa-teaser-close:hover,
.xgbt-ssa-panel-close:hover {
  background: rgba(0, 0, 0, .06) !important;
}

.xgbt-ssa-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  width: min(398px, calc(100vw - 34px));
  height: min(680px, calc(100vh - 112px));
  max-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(83, 56, 40, .14);
  border-radius: 20px;
  opacity: 0;
  transform: translateY(12px) scale(.985);
  background: #fff;
  box-shadow: 0 24px 64px rgba(46, 31, 23, .24), 0 4px 14px rgba(46, 31, 23, .1);
  flex-direction: column;
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .22s ease;
}

.xgbt-ssa-panel[hidden] {
  display: none !important;
}

.xgbt-ssa-panel.is-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.xgbt-ssa-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px 12px 12px 15px;
  color: #fff;
  background: var(--xgbt-primary);
  background: linear-gradient(135deg, var(--xgbt-primary), color-mix(in srgb, var(--xgbt-primary), #000 16%));
}

.xgbt-ssa-header .xgbt-ssa-avatar {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, .72);
}

.xgbt-ssa-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.xgbt-ssa-title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xgbt-ssa-subtitle {
  overflow: hidden;
  margin-top: 1px;
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xgbt-ssa-header small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: rgba(255, 255, 255, .86);
  font-size: 10px;
  line-height: 1.2;
}

.xgbt-ssa-header small i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: #39d27a;
}

.xgbt-ssa-header .xgbt-ssa-panel-close {
  color: #fff !important;
}

.xgbt-ssa-header .xgbt-ssa-panel-close:hover {
  background: rgba(255, 255, 255, .14) !important;
}

.xgbt-ssa-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 15px 14px;
  background: linear-gradient(180deg, #fbfaf8 0, var(--xgbt-soft) 100%);
  overscroll-behavior: contain;
  flex: 1 1 auto;
  scrollbar-width: thin;
  scrollbar-color: #d8cec6 transparent;
}

.xgbt-ssa-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  padding: 9px;
  border: 1px solid #eadfd7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(62, 43, 31, .05);
}

.xgbt-ssa-product[hidden] {
  display: none !important;
}

.xgbt-ssa-product img {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 10px;
  background: #f3efeb;
  object-fit: cover;
}

.xgbt-ssa-product > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.xgbt-ssa-product strong {
  display: -webkit-box;
  overflow: hidden;
  color: #312823;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.xgbt-ssa-product-meta,
.xgbt-ssa-selection {
  overflow: hidden;
  margin-top: 3px;
  color: var(--xgbt-muted);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xgbt-ssa-selection {
  color: var(--xgbt-primary);
  font-weight: 650;
}

.xgbt-ssa-agent {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 6px;
  color: #726a65;
  font-size: 10px;
  font-weight: 650;
}

.xgbt-ssa-agent .xgbt-ssa-avatar {
  width: 22px;
  height: 22px;
  border: 1px solid #eadfd7;
  font-size: 7px;
}

.xgbt-ssa-message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 9px;
  padding: 10px 12px;
  border: 1px solid #e8ded7;
  border-radius: 4px 14px 14px 14px;
  color: #38312d;
  background: #fff;
  box-shadow: 0 2px 7px rgba(53, 38, 29, .045);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
}

.xgbt-ssa-message.is-user {
  margin-left: auto;
  border-color: color-mix(in srgb, var(--xgbt-primary), #fff 72%);
  border-radius: 14px 4px 14px 14px;
  color: #fff;
  background: var(--xgbt-primary);
}

.xgbt-ssa-message.is-followup {
  border-color: #ead6bf;
  background: #fffaf3;
}

.xgbt-ssa-category-links {
  display: flex;
  gap: 7px;
  margin: 10px 0 14px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.xgbt-ssa-category-links::-webkit-scrollbar {
  display: none;
}

.xgbt-ssa-category-links[hidden] {
  display: none !important;
}

.xgbt-ssa-category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #e5d8ce;
  border-radius: 999px;
  color: var(--xgbt-primary);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.xgbt-ssa-category-links a:hover {
  border-color: var(--xgbt-primary);
  background: #fffaf6;
}

.xgbt-ssa-intents {
  margin-top: 12px;
}

.xgbt-ssa-intents[hidden] {
  display: none !important;
}

.xgbt-ssa-intents > p {
  margin: 0 0 8px;
  color: #625b56;
  font-size: 12px;
  font-weight: 650;
}

.xgbt-ssa-intents > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.xgbt-ssa-intents button {
  display: inline-flex !important;
  align-items: center;
  min-height: 34px !important;
  padding: 7px 11px !important;
  border: 1px solid #dccdc2 !important;
  border-radius: 10px !important;
  color: #473b34 !important;
  background: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.xgbt-ssa-intents button:hover,
.xgbt-ssa-intents button.is-selected {
  border-color: var(--xgbt-primary) !important;
  color: var(--xgbt-primary) !important;
  background: #fffaf6 !important;
}

.xgbt-ssa-thread:not([hidden]) {
  margin-top: 14px;
}

.xgbt-ssa-typing {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 4px 0 9px;
  padding: 11px 13px;
  border: 1px solid #e8ded7;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
}

.xgbt-ssa-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a89b92;
  animation: xgbtTyping 1s infinite ease-in-out;
}

.xgbt-ssa-typing i:nth-child(2) { animation-delay: .14s; }
.xgbt-ssa-typing i:nth-child(3) { animation-delay: .28s; }

@keyframes xgbtTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: .55; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.xgbt-ssa-success {
  margin: 14px 0 4px;
  padding: 17px 15px;
  border: 1px solid #bfe2ca;
  border-radius: 14px;
  text-align: center;
  background: #f2fbf5;
}

.xgbt-ssa-success[hidden] {
  display: none !important;
}

.xgbt-ssa-success-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 50%;
  color: #fff;
  background: #2f9f5b;
  font-size: 19px;
  font-weight: 800;
}

.xgbt-ssa-success strong {
  display: block;
  color: #236b3d;
  font-size: 14px;
}

.xgbt-ssa-success p {
  margin: 5px 0 0;
  color: #456653;
  font-size: 12px;
  line-height: 1.45;
}

.xgbt-ssa-footer {
  flex: 0 0 auto;
  padding: 11px 12px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--xgbt-line);
  background: #fff;
}

.xgbt-ssa-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 3px 4px 3px 13px;
  border: 1px solid #d9cfc8;
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.xgbt-ssa-composer:focus-within {
  border-color: var(--xgbt-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--xgbt-primary), transparent 88%);
}

.xgbt-ssa-input {
  width: 100% !important;
  min-width: 0;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  color: #332c28 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 38px !important;
}

.xgbt-ssa-input::placeholder {
  color: #918a85;
}

.xgbt-ssa-submit {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  color: #fff !important;
  background: var(--xgbt-primary) !important;
  line-height: 1 !important;
  cursor: pointer;
}

.xgbt-ssa-submit:hover {
  filter: brightness(.93);
}

.xgbt-ssa-submit:disabled {
  opacity: .55;
  cursor: wait;
}

.xgbt-ssa-submit svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  fill: currentColor;
  transform: translateX(1px);
}

.xgbt-ssa-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.xgbt-ssa-status {
  display: none;
  min-height: 0;
  margin: 6px 2px 0;
  color: #b03228;
  font-size: 11px;
  line-height: 1.35;
}

.xgbt-ssa-status.is-visible {
  display: block;
}

.xgbt-ssa-status.is-loading {
  color: var(--xgbt-muted);
}

.xgbt-ssa-direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.xgbt-ssa-direct a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 35px;
  padding: 7px 9px;
  border: 1px solid #e0d5cd;
  border-radius: 10px;
  color: #463a33;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.xgbt-ssa-direct a:hover {
  border-color: var(--xgbt-primary);
  color: var(--xgbt-primary);
}

.xgbt-ssa-direct .xgbt-ssa-zalo {
  border-color: #cdddf6;
  color: #0757b7;
  background: #f5f9ff;
}

.xgbt-ssa-direct svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.xgbt-ssa-privacy {
  display: block;
  margin-top: 6px;
  color: #918984;
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
}

.xgbt-ssa-product-help {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px !important;
  margin: 10px 0 0 8px !important;
  padding: 9px 15px !important;
  border: 1px solid #cdbbab !important;
  border-radius: 7px !important;
  color: #70432c !important;
  background: #fffaf6 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.xgbt-ssa-product-help:hover,
.xgbt-ssa-product-help.is-primary {
  border-color: var(--xgbt-primary, #944526) !important;
  color: #fff !important;
  background: var(--xgbt-primary, #944526) !important;
}

.xgbt-ssa-cart-help {
  display: flex;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e4d8cf;
  border-radius: 10px;
  background: #fffaf6;
  flex-direction: column;
}

.xgbt-ssa-cart-help strong {
  color: #4d382c;
  font-size: 14px;
}

.xgbt-ssa-cart-help span {
  margin: 3px 0 10px;
  color: #756a63;
  font-size: 12px;
}

.xgbt-ssa-cart-help button {
  width: 100%;
  margin: 0 !important;
}

@media (max-width: 849px) {
  #xgbt-ssa {
    right: 12px;
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 68px));
    width: 54px;
  }

  .xgbt-ssa-launcher {
    width: 54px;
    height: 54px;
  }

  .xgbt-ssa-launcher svg {
    width: 27px;
    height: 27px;
  }

  .xgbt-ssa-teaser,
  .xgbt-ssa-panel {
    right: 0;
    bottom: 66px;
  }

  .xgbt-ssa-teaser {
    width: min(340px, calc(100vw - 24px));
  }

  .xgbt-ssa-panel {
    position: fixed;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    height: min(650px, calc(100dvh - 16px));
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  body.xgbt-ssa-panel-open {
    overscroll-behavior: none;
  }

  body.xgbt-ssa-input-active #xgbt-ssa .xgbt-ssa-panel {
    height: min(560px, calc(100dvh - 8px));
  }

  .xgbt-ssa-body {
    padding: 14px 13px 12px;
  }

  .xgbt-ssa-product-help {
    width: 100% !important;
    margin: 9px 0 0 !important;
  }
}

@media (max-width: 380px) {
  .xgbt-ssa-header {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    min-height: 68px;
    padding: 10px;
  }

  .xgbt-ssa-header .xgbt-ssa-avatar {
    width: 38px;
    height: 38px;
  }

  .xgbt-ssa-intents button {
    max-width: 100%;
    flex: 1 1 calc(50% - 4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #xgbt-ssa *,
  #xgbt-ssa *::before,
  #xgbt-ssa *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

#xgbt-ssa [hidden],
#xgbt-ssa .xgbt-ssa-teaser,
#xgbt-ssa .xgbt-ssa-badge { display: none !important; }

#xgbt-ssa { width: auto; --xgbt-chat-red: var(--xgbt-primary); }
#xgbt-ssa .xgbt-ssa-launcher {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 68px;
  height: 46px;
  padding: 0 10px !important;
  border-radius: 24px !important;
  background: var(--xgbt-chat-red) !important;
  box-shadow: 0 3px 12px #35151c29 !important;
}
#xgbt-ssa .xgbt-ssa-launcher svg { width: 21px; height: 21px; }
.xgbt-ssa-launcher-label { font-size: 13px; font-weight: 750; }
#xgbt-ssa .xgbt-ssa-launcher[aria-expanded="true"] { visibility: hidden; }
.xgbt-ssa-backdrop { display: none; }
.xgbt-ssa-panel { bottom: 58px; }
.xgbt-ssa-header {
  grid-template-columns: 40px minmax(0, 1fr) 44px;
  min-height: 64px;
  padding: 8px 10px 8px 13px;
  background: var(--xgbt-chat-red);
}
.xgbt-ssa-header .xgbt-ssa-avatar { width: 40px; height: 40px; }
#xgbt-ssa .xgbt-ssa-panel-close { width: 44px; height: 44px; border-radius: 10px !important; font-size: 25px; }
#xgbt-ssa .xgbt-ssa-message { max-width: 94%; overflow-wrap: anywhere; font-size: 14px; }
#xgbt-ssa .xgbt-ssa-message.is-user { background: var(--xgbt-chat-red); }
.xgbt-ssa-message-main { margin-bottom: 11px; }
#xgbt-ssa .xgbt-ssa-intents { margin-top: 0; }
#xgbt-ssa .xgbt-ssa-intents button {
  min-height: 44px !important;
  justify-content: center;
  padding-inline: 10px !important;
  border-color: #e6d6d0 !important;
  background: #fcf4f1 !important;
  color: #763036 !important;
  font-size: 13px !important;
  text-align: center;
}
#xgbt-ssa .xgbt-ssa-intents button.is-selected { border-color: var(--xgbt-chat-red) !important; }
.xgbt-ssa-reply-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.xgbt-ssa-reply-links a,
.xgbt-ssa-results a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #e8dcd6;
  border-radius: 8px;
  background: #fff;
  color: #763036;
  font-size: 13px;
  font-weight: 700;
}
.xgbt-ssa-results { display: grid; gap: 5px; margin: 0 0 10px; }
.xgbt-ssa-results a { align-items: flex-start; flex-direction: column; justify-content: center; }
.xgbt-ssa-results small { color: var(--xgbt-muted); font-size: 12px; }
.xgbt-ssa-result-card.is-structured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #e8dcd6;
  border-radius: 10px;
  background: #fff;
}
#xgbt-ssa .xgbt-ssa-product-result.is-structured {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px;
  border: 0;
  background: transparent;
}
.xgbt-ssa-product-result img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 7px;
  object-fit: contain;
  background: #f7f2ef;
}
.xgbt-ssa-result-info { display: grid; gap: 2px; min-width: 0; line-height: 1.35; }
.xgbt-ssa-result-info strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--xgbt-ink);
}
.xgbt-ssa-result-price { color: var(--xgbt-chat-red); font-weight: 800; }
#xgbt-ssa .xgbt-ssa-copy-sku {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  min-height: 44px;
  margin: 0 4px 0 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #69534b;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}
.xgbt-ssa-status.is-success { color: #34654c; }
.xgbt-ssa-shop-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
#xgbt-ssa .xgbt-ssa-shop-filters button,
#xgbt-ssa .xgbt-ssa-more-results {
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid #eadbd5;
  border-radius: 8px;
  background: #fff;
  color: #763036;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
#xgbt-ssa .xgbt-ssa-shop-filters button[aria-pressed="true"] { border-color: var(--xgbt-chat-red); background: #f9efec; }
.xgbt-ssa-result-block { margin-bottom: 13px; }
#xgbt-ssa .xgbt-ssa-zalo-advice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #fff;
  background: #0757b7;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
#xgbt-ssa .xgbt-ssa-zalo-advice:hover { background: #064795; }
#xgbt-ssa .xgbt-ssa-footer { padding: 9px 10px max(9px, env(safe-area-inset-bottom)); }
#xgbt-ssa .xgbt-ssa-composer { grid-template-columns: minmax(0, 1fr) auto; }
#xgbt-ssa .xgbt-ssa-input { height: 44px !important; min-height: 44px !important; font-size: 16px !important; }
#xgbt-ssa .xgbt-ssa-submit { width: 44px !important; height: 44px !important; background: var(--xgbt-chat-red) !important; }
#xgbt-ssa .is-contact .xgbt-ssa-submit { width: auto !important; padding: 0 10px !important; font-size: 13px; }
.xgbt-ssa-contact-help { margin: 0 0 7px; color: var(--xgbt-muted); font-size: 13px; }
#xgbt-ssa .xgbt-ssa-direct { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#xgbt-ssa .xgbt-ssa-direct.has-zalo-advice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#xgbt-ssa .xgbt-ssa-direct a,
#xgbt-ssa .xgbt-ssa-contact {
  min-height: 44px;
  padding: 6px 4px;
  font-size: 12px;
}
#xgbt-ssa .xgbt-ssa-contact {
  border: 1px solid #ebd9d5;
  border-radius: 10px;
  background: #fcf4f1;
  color: #763036;
  font-weight: 700;
}
#xgbt-ssa :is(button, a):focus-visible { outline: 2px solid #af5a61; outline-offset: 2px; }
#xgbt-ssa .xgbt-ssa-header button:focus-visible { outline-color: #fff; outline-offset: -2px; }
body:has(.mfp-wrap.mfp-ready, #xgbt-quick[open]) #xgbt-ssa { visibility: hidden; }

@media (max-width: 849px) {
  #xgbt-ssa { bottom: max(78px, calc(env(safe-area-inset-bottom) + 72px)); }
  body.xgbt-ssa-panel-open { overflow: hidden; }
  .xgbt-ssa-backdrop { position: fixed; inset: 0; display: block; background: #22121162; }
  .xgbt-ssa-panel:not(.is-ready) { transform: scale(.985); }
  .xgbt-ssa-panel {
    right: 8px;
    bottom: calc(var(--xgbt-keyboard-offset, 0px) + max(8px, env(safe-area-inset-bottom)));
    width: calc(100vw - 16px);
    height: min(610px, calc(var(--xgbt-panel-space, 100dvh) - 16px));
    max-height: calc(var(--xgbt-panel-space, 100dvh) - 16px);
  }
}
