.sg-chat {
  --sg-chat-blue: #2a61b8;
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 2147483000;
  color: #202124;
  font: 15px/1.4 Arial, sans-serif;
  letter-spacing: normal;
}

.sg-chat [hidden] { display: none !important; }
.sg-chat button { appearance: none; cursor: pointer; font: inherit; text-transform: none; letter-spacing: inherit; }
.sg-chat button:focus-visible, .sg-chat a:focus-visible, .sg-chat textarea:focus-visible { outline: 2px solid #2465be; outline-offset: 2px; }
.sg-chat svg { width: 20px; height: 20px; flex: none; }

.sg-chat .sg-chat-launch {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 3px solid #006bd1;
  border-radius: 50%;
  color: white;
  background: #065abf;
}

.sg-chat-launch img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sg-chat-launch .sg-chat-minimize, .sg-chat-launch[aria-expanded="true"] img { display: none; }
.sg-chat .sg-chat-launch[aria-expanded="true"] { border: 0; background: var(--sg-chat-blue); }
.sg-chat-launch[aria-expanded="true"] .sg-chat-minimize { display: block; }

.sg-chat-tip {
  position: absolute;
  right: 75px;
  bottom: 0;
  width: 200px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 20px #0003;
}

.sg-chat-tip::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: white;
  transform: translateY(-50%) rotate(45deg);
}

.sg-chat .sg-chat-tip-open { display: block; width: 100%; padding: 8px 16px; border: 0; color: inherit; background: none; text-align: left; }
.sg-chat-tip small { display: block; margin-top: 2px; color: #666; font-size: 13px; }
.sg-chat .sg-chat-tip-close { position: absolute; top: 2px; right: 4px; padding: 0 4px; border: 0; color: #666; background: none; }

.sg-chat-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  width: min(352px, calc(100vw - 20px));
  height: min(570px, calc(100vh - 90px));
  height: min(570px, calc(100dvh - 90px));
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 26px #0003;
}

.sg-chat-screen { display: flex; position: relative; flex: 1; flex-direction: column; min-height: 0; }
.sg-chat-welcome {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 82%;
  min-height: 180px;
  padding: 20px 20px 74px;
  color: white;
  background: var(--sg-chat-blue);
}

.sg-chat-logo { width: 40px; height: 40px; border-radius: 50%; }
.sg-chat-intro h2 { margin: 0 0 8px; color: inherit; font: 700 32px/1.15 Arial, sans-serif; }
.sg-chat-intro p { margin: 0; font: 500 15px/1.4 Arial, sans-serif; }
.sg-chat .sg-chat-start {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 80px;
  margin: -50px 20px 0;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  color: #262626;
  background: white;
  box-shadow: 0 2px 8px #0003;
  text-align: left;
  z-index: 1;
}

.sg-chat-start-icon, .sg-chat-empty-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  color: #537365;
  background: #e4eae6;
}

.sg-chat-start small, .sg-chat-thread small { display: block; margin-top: 3px; color: #666; font-size: 13px; }

.sg-chat-tabs { display: flex; flex: 0 0 70px; box-shadow: 0 -4px 15px #0001; }
.sg-chat .sg-chat-tabs button {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  flex: 1;
  padding: 6px;
  border: 0;
  color: #666;
  background: white;
  font-size: 14px;
}

.sg-chat-tabs button[aria-selected="true"] { color: var(--sg-chat-blue); }
.sg-chat-tabs button[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; width: 24px; height: 3px; border-radius: 3px; background: currentColor; }
.sg-chat-tabs button:focus-visible { outline-offset: -3px; }

.sg-chat-header {
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  color: white;
  background: var(--sg-chat-blue);
  font-size: 16px;
}

.sg-chat .sg-chat-back { padding: 0 7px 3px 0; border: 0; color: inherit; background: none; font-size: 28px; line-height: 1; }
.sg-chat-avatar { flex: none; width: 36px; height: 36px; border: 1px solid #fff6; border-radius: 50%; object-fit: cover; }

.sg-chat-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; text-align: center; }
.sg-chat-empty-icon { width: 88px; height: 88px; color: var(--sg-chat-blue); background: #eef4ff; }
.sg-chat-empty-icon svg { width: 42px; height: 42px; }
.sg-chat-empty p { margin: 0; color: #727272; }
.sg-chat .sg-chat-primary { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border: 0; border-radius: 5px; color: white; background: var(--sg-chat-blue); }
.sg-chat-primary svg { width: 15px; height: 15px; }

.sg-chat .sg-chat-thread { display: flex; align-items: center; gap: 12px; padding: 16px; border: 0; border-bottom: 1px solid #eee; color: inherit; background: white; text-align: left; }
.sg-chat-thread span:nth-child(2) { flex: 1; min-width: 0; }
.sg-chat-thread small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sg-chat-history { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sg-chat-transcript { display: flex; flex-direction: column; justify-content: end; gap: 12px; min-height: 100%; padding: 16px; }
.sg-chat-message { width: fit-content; max-width: 100%; }
.sg-chat-author { margin: 0 0 5px; color: #666; font-size: 12px; }
.sg-chat-bubble { padding: 11px 13px 6px; border-radius: 12px; background: #f2f2f2; white-space: pre-wrap; overflow-wrap: anywhere; }
.sg-chat-bubble time { display: block; margin-top: 3px; color: #666; font-size: 11px; text-align: right; }
.sg-chat-bubble a { display: block; margin: 6px 0 0; color: #23549a; text-decoration: underline; }
.sg-chat-message-user { align-self: end; }
.sg-chat-message-user .sg-chat-bubble { color: white; background: var(--sg-chat-blue); }
.sg-chat-message-user time { color: #fff; }

.sg-chat-choices { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 0 10px 30px; }
.sg-chat .sg-chat-choices button { padding: 7px 12px; border: 1px solid #ccc; border-radius: 24px; color: #555; background: #fafafa; font-size: 14px; }
.sg-chat-choices button:hover, .sg-chat-thread:hover { background: #f1f5fb; }

.sg-chat-composer { padding: 10px 12px; border-top: 1px solid #e5e5e5; }
.sg-chat-compose-row { display: flex; align-items: center; gap: 8px; }
.sg-chat .sg-chat-compose-row textarea { flex: 1; min-width: 0; height: 44px; padding: 10px; resize: vertical; border: 1px solid #bbb; border-radius: 8px; color: #202124; background: white; font: inherit; }
.sg-chat .sg-chat-compose-row button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: white; background: var(--sg-chat-blue); }
.sg-chat-compose-row button:disabled { opacity: .6; cursor: wait; }
.sg-chat-status { margin: 4px 0 0; color: #565656; font-size: 12px; }
.sg-chat-status:empty { display: none; }
.sg-form-status { margin-top: .75em; font: inherit; }

@media (max-width: 600px) {
  .sg-chat-tip { display: none; }
}

@media (max-height: 480px) {
  .sg-chat-welcome { height: auto; min-height: 0; padding: 12px 16px 44px; }
  .sg-chat-intro h2 { margin-top: 8px; font-size: 24px; }
  .sg-chat .sg-chat-start { margin-top: -28px; min-height: 52px; padding: 7px 12px; }
  .sg-chat-tabs { flex-basis: 50px; }
  .sg-chat-choices { padding-bottom: 10px; }
}

[data-sg-preview], #brx-content a[data-pswp-src] { cursor: zoom-in; }
[data-sg-preview]:focus-visible { outline: 2px solid #2465be; outline-offset: 2px; }
.pswp.brx.pswp--open { --pswp-root-z-index: 2147483100; }
.pswp.brx.pswp--zoom-allowed .pswp__button--zoom { display: flex; }
.brx-popup-content.sg-video-notice {
  width: min(32rem, calc(100% - 2rem));
  padding: 2rem;
  background: #fff;
  color: #10253e;
}

.sg-video-notice p {
  margin: 0 0 1rem;
}

.fr-article-card-alpha[hidden],
.product-pagination[hidden] {
  display: none !important;
}

