:root {
  --vorin-chat-accent: var(--accent-color, #f17020);
  --vorin-chat-accent-strong: var(--theme-color4, #b65010);
  --vorin-chat-brand: var(--vv-accent, #0b409c);
  --vorin-chat-brand-dark: var(--vv-header, #011538);
  --vorin-chat-surface: #ffffff;
  --vorin-chat-border: color-mix(in srgb, var(--vorin-chat-brand) 14%, white);
}

[hidden] {
  display: none !important;
}

.vorin-chat-widget,
.vorin-chat-widget * {
  box-sizing: border-box;
}

.scrollup a.scrolltop,
.scroll-top,
.progress-wrap {
  left: 20px;
  right: auto;
}

.vorin-chat-widget {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  font-family: var(--body-font, "Open Sans", sans-serif);
}

.vorin-chat-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(8, 15, 29, 0.18);
  backdrop-filter: blur(4px);
  opacity: 0;
  cursor: default;
  z-index: -1;
  transition: opacity 0.18s ease;
}

.vorin-chat-widget.is-open .vorin-chat-overlay {
  opacity: 1;
  z-index: 0;
}

.vorin-chat-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vorin-chat-brand-dark), var(--vorin-chat-brand));
  color: #fff;
  box-shadow: 0 18px 34px rgba(1, 21, 56, 0.3);
  cursor: pointer;
  transition: width 0.18s ease, height 0.18s ease, border-radius 0.18s ease, padding 0.18s ease;
  z-index: 3;
}

.vorin-chat-toggle__icon,
.vorin-chat-toggle__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.vorin-chat-toggle__close {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  font-size: 20px;
}

.vorin-chat-toggle__label {
  font-family: var(--headings-font, "Cormorant", serif);
  font-size: 26px;
  line-height: 1;
}

.vorin-chat-toggle__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--vorin-chat-accent);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
}

.vorin-chat-toggle.is-open {
  width: 68px;
  height: 68px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.vorin-chat-toggle.is-open .vorin-chat-toggle__icon,
.vorin-chat-toggle.is-open .vorin-chat-toggle__label,
.vorin-chat-toggle.is-open .vorin-chat-toggle__badge {
  display: none;
}

.vorin-chat-toggle.is-open .vorin-chat-toggle__close {
  display: inline-flex;
}

.vorin-chat-panel {
  position: absolute;
  right: 0;
  bottom: 80px;
  width: min(404px, calc(100vw - 24px));
  height: min(690px, 82vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--vorin-chat-border);
  border-radius: 28px;
  background: var(--vorin-chat-surface);
  box-shadow: 0 28px 75px rgba(1, 21, 56, 0.24);
  z-index: 2;
}

.vorin-chat-panel.is-home {
  background: linear-gradient(180deg, #233042 0 220px, #f7f8fb 220px 100%);
}

.vorin-chat-panel.is-gate {
  background: linear-gradient(180deg, rgba(35, 48, 66, 0.08), #fff 24%);
}

.vorin-chat-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  background:
    radial-gradient(circle at top right, rgba(241, 112, 32, 0.2), transparent 36%),
    linear-gradient(135deg, #233042, #2d3948);
  color: #fff;
}

.vorin-chat-panel__brand,
.vorin-chat-panel__actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vorin-chat-panel__actions {
  position: relative;
}

.vorin-chat-panel__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(1, 21, 56, 0.16);
  overflow: hidden;
}

.vorin-chat-panel__logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.vorin-chat-panel__title {
  flex: 1;
  min-width: 0;
}

.vorin-chat-panel__eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.vorin-chat-panel__header h3 {
  margin: 0;
  font-family: var(--body-font, "Open Sans", sans-serif);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}

.vorin-chat-panel__intro {
  margin: 4px 0 0;
  max-width: 220px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.35;
}

.vorin-chat-panel__back,
.vorin-chat-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.vorin-chat-panel__back:hover,
.vorin-chat-menu__trigger:hover {
  background: rgba(255, 255, 255, 0.16);
}

.vorin-chat-menu {
  position: relative;
}

.vorin-chat-menu__hint {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.vorin-chat-menu:hover .vorin-chat-menu__hint {
  opacity: 1;
}

.vorin-chat-menu__trigger[aria-expanded='true'] .vorin-chat-menu__hint {
  opacity: 0;
}

.vorin-chat-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  padding: 12px;
  border: 1px solid rgba(1, 21, 56, 0.1);
  border-radius: 18px;
  background: #fff;
  color: var(--vorin-chat-brand-dark);
  box-shadow: 0 20px 46px rgba(1, 21, 56, 0.16);
  z-index: 4;
}

.vorin-chat-menu__label {
  margin: 0 0 10px;
  color: #6a7686;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vorin-chat-menu__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: #f6f8fc;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.vorin-chat-menu__note:hover {
  background: rgba(11, 64, 156, 0.08);
}

.vorin-chat-menu__note:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.vorin-chat-home,
.vorin-chat-gate,
.vorin-chat-thread {
  flex: 1;
  min-height: 0;
}

.vorin-chat-home {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 0 18px 18px;
}

.vorin-chat-home__hero {
  padding: 18px 0 16px;
  color: #fff;
}

.vorin-chat-home__hero h4,
.vorin-chat-gate__hero h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.02;
  color: inherit;
  font-weight: 700;
}

.vorin-chat-home__hero p,
.vorin-chat-gate__hero p {
  margin: 8px 0 0;
  max-width: 280px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.vorin-chat-home__card,
.vorin-chat-home__resume {
  width: 100%;
  border: 1px solid rgba(1, 21, 56, 0.08);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.vorin-chat-home__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(1, 21, 56, 0.12);
}

.vorin-chat-home__card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vorin-chat-home__card-copy strong {
  color: var(--vorin-chat-brand-dark);
  font-size: 16px;
  line-height: 1.05;
}

.vorin-chat-home__card-copy span {
  color: #617084;
  font-size: 12px;
  line-height: 1.4;
}

.vorin-chat-home__card-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vorin-chat-brand), #215bc7);
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 64, 156, 0.18);
}

.vorin-chat-home__resume {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  color: var(--vorin-chat-brand-dark);
  font-size: 12px;
  font-weight: 600;
}

.vorin-chat-home__topics {
  margin-top: 14px;
}

.vorin-chat-home__csat {
  margin-top: 14px;
}

.vorin-chat-csat {
  padding: 16px;
  border: 1px solid rgba(1, 21, 56, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(1, 21, 56, 0.08);
}

.vorin-chat-csat strong {
  display: block;
  color: var(--vorin-chat-brand-dark);
  font-size: 15px;
}

.vorin-chat-csat p {
  margin: 6px 0 0;
  color: #617084;
  font-size: 12px;
  line-height: 1.45;
}

.vorin-chat-csat__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.vorin-chat-csat__choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(1, 21, 56, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--vorin-chat-brand-dark);
  font-weight: 700;
  cursor: pointer;
}

.vorin-chat-csat__choice.is-active {
  border-color: var(--vorin-chat-accent);
  background: color-mix(in srgb, var(--vorin-chat-accent) 10%, white);
  color: var(--vorin-chat-accent-strong);
}

.vorin-chat-csat textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(1, 21, 56, 0.15);
  border-radius: 14px;
  background: #fff;
  color: #111;
  font: inherit;
  resize: vertical;
}

.vorin-chat-csat textarea:focus {
  outline: none;
  border-color: var(--vorin-chat-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vorin-chat-accent) 14%, white);
}

.vorin-chat-csat__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.vorin-chat-csat__submit {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vorin-chat-accent), var(--vorin-chat-accent-strong));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.vorin-chat-home__history {
  margin-top: 14px;
}

.vorin-chat-home__history-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.vorin-chat-home__history-toggle i {
  color: #6d7a8c;
  font-size: 12px;
  transition: transform 0.18s ease;
}

.vorin-chat-home__history-toggle[aria-expanded='true'] i {
  transform: rotate(180deg);
}

.vorin-chat-home__history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.vorin-chat-history__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(1, 21, 56, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.vorin-chat-history__item:hover,
.vorin-chat-history__item.is-current {
  border-color: color-mix(in srgb, var(--vorin-chat-brand) 18%, white);
  box-shadow: 0 12px 28px rgba(1, 21, 56, 0.08);
  transform: translateY(-1px);
}

.vorin-chat-history__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vorin-chat-history__title {
  color: var(--vorin-chat-brand-dark);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vorin-chat-history__meta {
  color: #6d7a8c;
  font-size: 10px;
  line-height: 1;
}

.vorin-chat-history__pill {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vorin-chat-accent) 18%, white);
  color: var(--vorin-chat-accent-strong);
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.vorin-chat-home__topics-label {
  margin: 0 0 10px;
  color: #4f5f75;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vorin-chat-gate {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: transparent;
  overflow-y: auto;
}

.vorin-chat-gate__hero {
  padding: 2px 2px 0;
  color: var(--vorin-chat-brand-dark);
}

.vorin-chat-gate__hero p {
  color: #607083;
}

.vorin-chat-gate__label {
  margin: 0 0 8px;
  color: #55657b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vorin-chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vorin-chat-starter {
  width: auto;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--vorin-chat-brand) 14%, white);
  border-radius: 999px;
  background: #fff;
  color: var(--vorin-chat-brand-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.vorin-chat-starter:hover,
.vorin-chat-starter.is-active {
  border-color: var(--vorin-chat-accent);
  background: color-mix(in srgb, var(--vorin-chat-accent) 9%, white);
  box-shadow: 0 10px 24px rgba(241, 112, 32, 0.12);
  transform: translateY(-1px);
}

.vorin-chat-gate__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(1, 21, 56, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(1, 21, 56, 0.08);
}

.vorin-chat-gate__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: var(--vorin-chat-brand-dark);
  font-size: 12px;
  font-weight: 600;
}

.vorin-chat-gate__field input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(1, 21, 56, 0.15);
  border-radius: 14px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.vorin-chat-gate__field input:focus,
.vorin-chat-composer input[data-chat-input]:focus {
  outline: none;
  border-color: var(--vorin-chat-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vorin-chat-accent) 14%, white);
}

.vorin-chat-gate__submit,
.vorin-chat-send {
  min-width: 120px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vorin-chat-accent), var(--vorin-chat-accent-strong));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.vorin-chat-gate__selection {
  margin: 2px 0 0;
  color: var(--vorin-chat-brand-dark);
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--vorin-chat-accent) 10%, white);
}

.vorin-chat-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vorin-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  min-height: 0;
  background: linear-gradient(180deg, #fff, #fdf7f2);
}

.vorin-chat-empty {
  color: #5f6670;
  font-size: 12px;
  line-height: 1.6;
}

.vorin-chat-message {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.vorin-chat-message--customer {
  align-items: flex-end;
}

.vorin-chat-message--agent {
  align-items: flex-start;
}

.vorin-chat-message__bubble {
  max-width: 84%;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.vorin-chat-message--customer .vorin-chat-message__bubble {
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, var(--vorin-chat-brand-dark), var(--vorin-chat-brand));
  color: #fff;
}

.vorin-chat-message--agent .vorin-chat-message__bubble {
  border-bottom-left-radius: 4px;
  background: color-mix(in srgb, var(--vorin-chat-accent) 12%, white);
  color: var(--vorin-chat-brand-dark);
}

.vorin-chat-message__meta {
  margin-top: 4px;
  color: #7f8791;
  font-size: 9px;
}

.vorin-chat-message__attachments {
  width: min(84%, 280px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vorin-chat-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(1, 21, 56, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--vorin-chat-brand-dark);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(1, 21, 56, 0.06);
}

.vorin-chat-message--customer .vorin-chat-attachment {
  border-color: rgba(11, 64, 156, 0.18);
}

.vorin-chat-attachment__image,
.vorin-chat-attachment__badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.vorin-chat-attachment__image {
  object-fit: cover;
}

.vorin-chat-attachment__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--vorin-chat-accent) 14%, white);
  color: var(--vorin-chat-accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.vorin-chat-attachment__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vorin-chat-attachment__name {
  color: var(--vorin-chat-brand-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.vorin-chat-attachment__meta {
  color: #6d7a8c;
  font-size: 10px;
  line-height: 1;
}

.vorin-chat-composer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  border-top: 1px solid rgba(1, 21, 56, 0.08);
  background: #fff;
  padding: 14px 14px max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 -10px 22px rgba(1, 21, 56, 0.06);
}

.vorin-chat-emoji {
  position: relative;
}

.vorin-chat-emoji__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  padding: 12px;
  border: 1px solid rgba(1, 21, 56, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(1, 21, 56, 0.12);
}

.vorin-chat-emoji__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.vorin-chat-emoji__tab,
.vorin-chat-emoji__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #6b7686;
  cursor: pointer;
}

.vorin-chat-emoji__tab {
  min-height: 34px;
  border-radius: 999px;
  font-size: 16px;
}

.vorin-chat-emoji__tab.is-active {
  background: rgba(11, 64, 156, 0.08);
  color: var(--vorin-chat-brand);
}

.vorin-chat-emoji__heading {
  margin: 0 0 10px;
  color: #4f5f75;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vorin-chat-emoji__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.vorin-chat-emoji__item {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f6f8fc;
  font-size: 22px;
  cursor: pointer;
}

.vorin-chat-emoji__item:hover {
  background: rgba(11, 64, 156, 0.08);
}

.vorin-chat-composer__field {
  position: relative;
  margin-top: 10px;
}

.vorin-chat-composer__attachments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.vorin-chat-composer__attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(1, 21, 56, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.vorin-chat-composer__attachment-preview,
.vorin-chat-composer__attachment-badge {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.vorin-chat-composer__attachment-preview {
  object-fit: cover;
  border: 1px solid rgba(1, 21, 56, 0.08);
  background: #fff;
}

.vorin-chat-composer__attachment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--vorin-chat-accent) 12%, white);
  color: var(--vorin-chat-accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vorin-chat-composer__attachment-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vorin-chat-composer__attachment-name {
  color: var(--vorin-chat-brand-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.vorin-chat-composer__attachment-meta {
  color: #6d7a8c;
  font-size: 10px;
  line-height: 1.2;
}

.vorin-chat-composer__attachment-remove {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(1, 21, 56, 0.06);
  color: #6d7a8c;
  cursor: pointer;
}

.vorin-chat-composer input[data-chat-input] {
  width: 100%;
  padding: 12px 56px 12px 14px;
  border: 1px solid rgba(1, 21, 56, 0.16);
  border-radius: 14px;
  font: inherit;
  color: #111;
  background: #fff;
  min-height: 52px;
}

.vorin-chat-send--icon {
  position: absolute;
  right: 8px;
  top: 50%;
  min-width: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(241, 112, 32, 0.2);
}

.vorin-chat-composer__footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.vorin-chat-composer__tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vorin-chat-emoji__trigger {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #6d7a8c;
  font-size: 18px;
}

.vorin-chat-attach__trigger {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d7a8c;
  font-size: 16px;
  cursor: pointer;
}

.vorin-chat-emoji__trigger:hover,
.vorin-chat-emoji__trigger[aria-expanded='true'],
.vorin-chat-attach__trigger:hover {
  background: rgba(11, 64, 156, 0.08);
  color: var(--vorin-chat-brand);
}

.vorin-chat-composer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #7b8796;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.vorin-chat-composer__brand img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.vorin-chat-feedback {
  margin: 0;
  color: #5f6670;
  font-size: 11px;
  line-height: 1.45;
}

.vorin-chat-feedback--gate {
  padding: 0;
}

.vorin-chat-feedback--thread {
  min-width: 0;
}

.vorin-chat-send:disabled,
.vorin-chat-toggle:disabled,
.vorin-chat-gate__submit:disabled,
.vorin-chat-starter:disabled,
.vorin-chat-home__card:disabled,
.vorin-chat-home__resume:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.vorin-chat-footer {
  border-top: 1px solid rgba(1, 21, 56, 0.08);
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}

.vorin-chat-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vorin-chat-footer__tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #6d7a8c;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.vorin-chat-footer__tab.is-active {
  background: rgba(11, 64, 156, 0.08);
  color: var(--vorin-chat-brand);
}

.vorin-chat-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  color: #7b8796;
  font-size: 11px;
  font-weight: 600;
}

.vorin-chat-footer__brand img {
  height: 16px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  body.vorin-chat-open {
    overflow: hidden;
    touch-action: none;
  }

  .vorin-chat-widget {
    left: 8px;
    right: 12px;
    bottom: 12px;
  }

  .vorin-chat-toggle {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .scrollup a.scrolltop,
  .scroll-top,
  .progress-wrap {
    left: 12px;
    bottom: 12px;
    right: auto;
  }

  .vorin-chat-panel {
    left: 0;
    right: 0;
    bottom: 82px;
    width: auto;
    height: min(720px, calc(100dvh - 94px));
    max-height: none;
    border-radius: 26px;
  }

  .vorin-chat-panel.is-home {
    background: linear-gradient(180deg, #233042 0 206px, #f7f8fb 206px 100%);
  }

  .vorin-chat-panel.is-gate {
    background: linear-gradient(180deg, #eef2f7 0, #ffffff 29%);
  }

  .vorin-chat-panel__header {
    padding: 14px 14px 12px;
  }

  .vorin-chat-panel__header h3 {
    font-size: 14px;
  }

  .vorin-chat-panel__intro {
    max-width: 180px;
    font-size: 10px;
  }

  .vorin-chat-home {
    padding: 0 14px 14px;
  }

  .vorin-chat-home__hero {
    padding: 14px 0 12px;
  }

  .vorin-chat-home__hero h4,
  .vorin-chat-gate__hero h4 {
    font-size: 18px;
  }

  .vorin-chat-home__hero p,
  .vorin-chat-gate__hero p {
    margin-top: 6px;
    max-width: 100%;
    font-size: 11px;
  }

  .vorin-chat-home__card {
    padding: 14px;
    border-radius: 18px;
  }

  .vorin-chat-home__card-copy strong {
    font-size: 15px;
  }

  .vorin-chat-home__card-copy span {
    font-size: 11px;
  }

  .vorin-chat-home__card-arrow {
    width: 36px;
    height: 36px;
  }

  .vorin-chat-starters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .vorin-chat-starter {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 11px;
  }

  .vorin-chat-gate {
    gap: 14px;
    padding: 14px;
    min-width: 0;
  }

  .vorin-chat-gate__form {
    padding: 14px;
    border-radius: 20px;
  }

  .vorin-chat-gate__field input,
  .vorin-chat-composer input[data-chat-input],
  .vorin-chat-csat textarea {
    font-size: 16px;
  }

  .vorin-chat-gate__field input {
    padding: 12px;
  }

  .vorin-chat-thread {
    min-height: 0;
  }

  .vorin-chat-messages {
    padding: 14px;
  }

  .vorin-chat-composer {
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .vorin-chat-composer__attachment {
    padding: 9px 10px;
  }

  .vorin-chat-composer__attachment-preview,
  .vorin-chat-composer__attachment-badge {
    width: 40px;
    height: 40px;
  }

  .vorin-chat-composer input[data-chat-input] {
    min-height: 56px;
    padding: 0 54px 0 14px;
  }

  .vorin-chat-send--icon {
    width: 40px;
    height: 40px;
    right: 6px;
  }

  .vorin-chat-footer {
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  }

  .vorin-chat-footer__nav {
    gap: 8px;
  }

  .vorin-chat-footer__tab {
    min-height: 50px;
    gap: 4px;
    font-size: 10px;
  }

  .vorin-chat-footer__brand {
    margin-top: 8px;
    font-size: 10px;
  }

  .vorin-chat-toggle__label {
    display: none;
  }

  .vorin-chat-composer__footer {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "tools brand"
      "feedback feedback";
  }

  .vorin-chat-composer__tools {
    grid-area: tools;
  }

  .vorin-chat-composer__brand {
    grid-area: brand;
    justify-self: end;
  }

  .vorin-chat-feedback--thread {
    grid-area: feedback;
  }

  .vorin-chat-csat__choices {
    grid-template-columns: 1fr;
  }

  .vorin-chat-csat__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
