.tw-chat-entry {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: min(330px, calc(100vw - 36px));
  padding: 12px 16px;
  border: 1px solid rgba(246, 242, 235, .7);
  border-radius: 999px;
  background: #53634d;
  color: #fff;
  box-shadow: 0 12px 35px rgba(41, 59, 44, .22);
  font: 600 14px/1.25 "Nunito Sans", sans-serif;
  cursor: pointer;
}

.tw-chat-entry:hover,
.tw-chat-entry:focus-visible { background: #43533f; }
.tw-chat-entry:focus-visible { outline: 3px solid #c8a96b; outline-offset: 3px; }
.tw-chat-entry svg { width: 22px; height: 22px; flex: 0 0 auto; }

.tw-chat-dialog[hidden] { display: none; }
.tw-chat-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: end;
  padding: 20px;
  background: rgba(24, 34, 26, .35);
}

.tw-chat-card {
  width: min(410px, 100%);
  margin: 0 0 76px auto;
  padding: 24px;
  border: 1px solid rgba(83, 99, 77, .2);
  border-radius: 20px;
  background: #f6f2eb;
  color: #293b2c;
  box-shadow: 0 22px 60px rgba(20, 30, 22, .24);
}

.tw-chat-card h2 { margin: 0 36px 10px 0; font-size: 1.45rem; line-height: 1.15; }
.tw-chat-card p { margin: 0 0 13px; font-size: .96rem; line-height: 1.55; }
.tw-chat-card .tw-chat-boundary { font-size: .84rem; color: #555d50; }
.tw-chat-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(83, 99, 77, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .45);
  font: 600 .86rem/1.4 "Nunito Sans", sans-serif;
  cursor: pointer;
}
.tw-chat-confirm { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #53634d; }
.tw-chat-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tw-chat-card .tw-chat-status { min-height: 1.2em; margin: 8px 0 0; color: #7a3f32; font-size: .82rem; }
.tw-chat-close {
  float: right;
  border: 0;
  background: transparent;
  color: #293b2c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tw-chat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tw-chat-start,
.tw-chat-cancel {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font: 700 14px/1 "Nunito Sans", sans-serif;
  cursor: pointer;
}
.tw-chat-start { border: 1px solid #53634d; background: #53634d; color: #fff; }
.tw-chat-start:disabled { opacity: .55; cursor: not-allowed; }
.tw-chat-cancel { border: 1px solid #53634d; background: transparent; color: #53634d; }
.tw-chat-start:focus-visible,
.tw-chat-cancel:focus-visible,
.tw-chat-close:focus-visible { outline: 3px solid #c8a96b; outline-offset: 2px; }

@media (max-width: 520px) {
  .tw-chat-entry { padding: 12px 14px; }
  .tw-chat-card { margin-bottom: 70px; padding: 21px; }
  .tw-chat-dialog { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-chat-entry, .tw-chat-card { scroll-behavior: auto; }
}
