/* Rivet chat widget styles — theme via CSS variables */

/* ===== CSS isolation reset against host page styles =====
   Reset box-sizing/fonts only; borders/backgrounds stay per-element. */
.smartreply-root, .smartreply-root *,
.smartreply-modal, .smartreply-modal *,
.smartreply-confirm-modal, .smartreply-confirm-modal * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--sr-font, "SF Pro Text", "Segoe UI Variable", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    sans-serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.smartreply-root {
  --sr-primary: #4f6ef7;
  --sr-bg: #ffffff;
  --sr-text: #1a1a1a;
  --sr-muted: #8a8a8a;
  --sr-bubble-bot: #f0f2f5;
  --sr-bubble-bot-text: #1f2937;
  --sr-bubble-user: var(--sr-primary);
  --sr-surface: #f8fafc;
  --sr-surface-2: #ffffff;
  --sr-border: #e2e8f0;
  --sr-input-bg: #ffffff;
  --sr-radius: 18px;
  --sr-font: "SF Pro Text", "Segoe UI Variable", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    sans-serif;
  --sr-font-size: 14px;
  --sr-msg-size: 14.5px;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: var(--sr-font);
  font-size: var(--sr-font-size);
  color: var(--sr-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Window theme independent of --sr-primary; affects window bg/text only */
.smartreply-root.theme-dark {
  --sr-bg: #0f172a;
  --sr-text: #e2e8f0;
  --sr-muted: #94a3b8;
  --sr-bubble-bot: #1e293b;
  --sr-bubble-bot-text: #e2e8f0;
  --sr-surface: #1e293b;
  --sr-surface-2: #334155;
  --sr-border: #334155;
  --sr-input-bg: #1e293b;
}
.smartreply-root.theme-soft {
  --sr-bg: #f4f6f9;
  --sr-text: #1e293b;
  --sr-muted: #64748b;
  --sr-bubble-bot: #e8edf5;
  --sr-bubble-bot-text: #1e293b;
  --sr-surface: #eef2f7;
  --sr-surface-2: #ffffff;
  --sr-border: #d8e0ea;
  --sr-input-bg: #ffffff;
}

/* Floating launcher button */
.smartreply-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sr-primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  position: absolute;
  bottom: 0;
  right: 0;
}
.smartreply-fab:hover { transform: scale(1.05); }
.smartreply-fab svg { width: 28px; height: 28px; fill: #fff; }
.smartreply-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.5); }

/* Chat window */
.smartreply-window {
  width: 360px;
  height: 520px;
  max-height: calc(100vh - 48px);
  background: var(--sr-bg);
  border-radius: var(--sr-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  right: 0;
  /* Avoid opacity toggle: it breaks backdrop-filter */
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: transform 0.25s, visibility 0.25s;
}
.smartreply-window.open {
  visibility: visible;
  /* Drop transform when open so backdrop-filter samples the page */
  transform: none;
  pointer-events: auto;
}

/* Frosted glass: blur lives on .glass-bg; shell stays transparent */
.smartreply-glass-bg {
  display: none;
  pointer-events: none;
}
.smartreply-window.glass {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
}
.smartreply-window.glass .smartreply-glass-bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  /* Frost tint via --sr-frost-rgb per theme */
  background: rgba(var(--sr-frost-rgb, 255, 255, 255), var(--sr-frost, 0.14));
  backdrop-filter: blur(var(--sr-frost-blur, 10px)) saturate(1.35);
  -webkit-backdrop-filter: blur(var(--sr-frost-blur, 10px)) saturate(1.35);
}
.smartreply-window.glass > *:not(.smartreply-glass-bg):not(.smartreply-faq-panel) {
  position: relative;
  z-index: 1;
}
.smartreply-window.glass .smartreply-header {
  /* Header stays translucent so the page shows through */
  background: var(--sr-header-tint, rgba(37, 99, 235, 0.28)) !important;
}
.smartreply-window.glass .smartreply-body,
.smartreply-window.glass .smartreply-messages,
.smartreply-window.glass .smartreply-footer,
.smartreply-window.glass .smartreply-end-bar,
.smartreply-window.glass .smartreply-action-bar {
  background: transparent !important;
  border-color: rgba(15, 23, 42, 0.08);
}
.smartreply-window.glass .smartreply-action-btn {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}
.smartreply-window.glass .smartreply-action-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}
.smartreply-window.glass .smartreply-quick-bar button {
  background: rgba(255, 255, 255, 0.32);
}
.smartreply-window.glass .smartreply-msg.bot {
  background: rgba(255, 255, 255, 0.42);
}
.smartreply-window.glass .smartreply-msg.user {
  opacity: 0.9;
}
.smartreply-window.glass .smartreply-welcome {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.smartreply-window.glass .smartreply-input {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(15, 23, 42, 0.12);
}
.smartreply-window.glass .smartreply-emoji-panel {
  background: rgba(255, 255, 255, 0.55);
}
.smartreply-window.glass .smartreply-end-bar {
  background: transparent !important;
}

/* Header quick actions (FAQ / Contact sales) */
.smartreply-action-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--sr-surface);
  border-bottom: 1px solid var(--sr-border);
  flex-shrink: 0;
  overflow-x: auto;
}

.smartreply-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--sr-border);
  background: var(--sr-surface-2);
  color: var(--sr-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: calc(var(--sr-font-size) * 0.86);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.smartreply-action-btn svg { width: 14px; height: 14px; color: var(--sr-primary); }
.smartreply-action-btn:hover {
  border-color: var(--sr-primary);
  color: var(--sr-primary);
  background: var(--sr-surface);
}

.smartreply-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* FAQ full-window overlay (covers header/input) */
.smartreply-faq-panel {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 30;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--sr-primary) 16%, transparent), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  flex-direction: column;
  border-radius: inherit;
  overflow: hidden;
}
.smartreply-faq-panel.open { display: flex; }
/* FAQ open: solid overlay, skip chat glass for readability */
.smartreply-window.glass .smartreply-faq-panel {
  position: absolute;
  inset: 0;
  z-index: 50;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #0f172a;
}
.smartreply-faq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  background: transparent;
  position: relative;
}
.smartreply-faq-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  height: 32px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  padding: 0 6px 0 2px;
  position: relative;
  z-index: 1;
}
.smartreply-faq-back-chevron {
  font-size: 20px;
  line-height: 1;
  margin-right: 2px;
}
.smartreply-faq-back:hover { background: rgba(15, 23, 42, 0.04); color: #0f172a; }
.smartreply-faq-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.smartreply-faq-close:hover { background: rgba(15, 23, 42, 0.06); color: #0f172a; }
.smartreply-faq-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 160px);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #0f172a;
  pointer-events: none;
}
.smartreply-faq-search-wrap {
  padding: 4px 16px 8px;
  flex-shrink: 0;
}
.smartreply-faq-search-wrap.hidden { display: none; }
.smartreply-faq-search {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 12px 14px 12px 40px;
  font-size: 13px;
  outline: none;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='M12.5 12.5L16 16'/%3E%3C/svg%3E")
    14px 50% / 18px 18px no-repeat;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.smartreply-faq-search::placeholder { color: #94a3b8; }
.smartreply-faq-search:focus {
  border-color: color-mix(in srgb, var(--sr-primary) 55%, #cbd5e1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sr-primary) 18%, transparent);
}
.smartreply-faq-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.smartreply-faq-panel.detail .smartreply-faq-search-wrap,
.smartreply-faq-panel.detail .smartreply-faq-list { display: none; }
.smartreply-faq-detail {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 22px;
}
.smartreply-faq-panel.detail .smartreply-faq-detail { display: block; }
.smartreply-faq-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: background 0.15s, transform 0.15s;
}
.smartreply-faq-item:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.smartreply-faq-item:active { transform: none; }
.smartreply-faq-item-q { flex: 1; }
.smartreply-faq-item-chevron {
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
}
.smartreply-faq-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 28px 48px;
  min-height: 280px;
}
.smartreply-faq-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--sr-primary) 12%, #fff);
  color: var(--sr-primary);
}
.smartreply-faq-empty-icon svg {
  width: 30px;
  height: 30px;
}
.smartreply-faq-empty-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 8px;
}
.smartreply-faq-empty-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  max-width: 240px;
  margin-bottom: 20px;
}
.smartreply-faq-empty-chat {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--sr-primary);
  color: #fff;
}
.smartreply-faq-empty-chat:hover { filter: brightness(0.96); }
.smartreply-faq-to-list {
  border: none;
  background: transparent;
  color: var(--sr-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}
.smartreply-faq-detail-q {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.4;
}
.smartreply-faq-detail-a {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 22px;
}
.smartreply-faq-ask {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--sr-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.smartreply-faq-ask:hover { filter: brightness(0.95); }

/* Header */
.smartreply-header {
  background: var(--sr-primary);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.smartreply-header-title {
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.smartreply-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.95;
  margin-top: 3px;
}
.smartreply-online-dot {
  display: inline-block !important;
  color: #4ade80 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  margin-right: 2px;
  /* Override inherited header color so status dot stays green */
}
.smartreply-header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.smartreply-header-logo {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.smartreply-logo-img { width: 22px; height: 22px; object-fit: contain; }
.smartreply-logo-default { width: 20px; height: 20px; }
.smartreply-close {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 22px; line-height: 1; padding: 0 4px; opacity: 0.8;
}
.smartreply-close:hover { opacity: 1; }

/* Contact sales modal */
.smartreply-modal {
  --sr-primary: #4f6ef7;
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: none; align-items: center; justify-content: center; z-index: 100000;
}
.smartreply-modal.open { display: flex; }
.smartreply-modal-box {
  box-sizing: border-box !important;
  background: #fff !important; border-radius: 12px !important;
  padding: 22px !important; width: 300px !important;
  max-width: calc(100vw - 32px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
}
.smartreply-modal-title {
  font-weight: 600; font-size: 16px; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.smartreply-modal-close { cursor: pointer; color: #999; font-size: 20px; }
.smartreply-modal-desc { font-size: 13px; color: #666; margin-bottom: 14px; }
.smartreply-modal-input {
  box-sizing: border-box !important; width: 100% !important;
  border: 1px solid #ddd !important; border-radius: 8px !important;
  padding: 10px 12px !important; font-size: 14px !important;
  outline: none !important; background: #fff !important;
}
.smartreply-modal-input:focus { border-color: var(--sr-primary) !important; }
.smartreply-modal-submit {
  box-sizing: border-box !important; width: 100% !important;
  background: var(--sr-primary) !important; color: #fff !important;
  border: none !important; border-radius: 8px !important;
  padding: 10px !important; font-size: 14px !important; cursor: pointer !important;
  margin-top: 10px !important;
}
.smartreply-modal-submit:hover { opacity: 0.9; }
.smartreply-modal-msg {
  font-size: 13px !important; margin-top: 8px !important;
  text-align: center !important; min-height: 16px;
}
.smartreply-modal-msg.ok { color: #27ae60 !important; }
.smartreply-modal-msg.err { color: #e74c3c !important; }

/* Messages */
.smartreply-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--sr-bg);
  min-height: 0;
}
.smartreply-messages::-webkit-scrollbar { width: 5px; }
.smartreply-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Bubbles */
.smartreply-msg {
  max-width: 80%;
  padding: 10px 14px;
  font-size: var(--sr-msg-size);
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0.01em;
  word-break: break-word;
  white-space: pre-wrap;
}
.smartreply-msg.bot {
  align-self: flex-start;
  background: var(--sr-bubble-bot);
  color: var(--sr-bubble-bot-text);
  border-radius: var(--sr-radius) var(--sr-radius) var(--sr-radius) 4px;
}
.smartreply-msg.user {
  align-self: flex-end;
  background: var(--sr-bubble-user);
  color: #fff;
  border-radius: var(--sr-radius) var(--sr-radius) 4px var(--sr-radius);
}
.smartreply-msg.typing::after {
  content: "●●●";
  letter-spacing: 2px;
  animation: sr-blink 1.2s infinite;
}
@keyframes sr-blink { 50% { opacity: 0.3; } }

/* Composer */
.smartreply-input-bar {
  display: flex;
  gap: 6px;
  padding: 0;
  border-top: none;
  background: transparent;
  flex-shrink: 0;
  align-items: center;
  position: relative;
}
.smartreply-tool-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--sr-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.smartreply-tool-btn:hover { background: var(--sr-surface); color: var(--sr-primary); }
.smartreply-tool-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.smartreply-tool-btn svg { width: 20px; height: 20px; }
.smartreply-emoji-panel {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  margin-bottom: 8px;
  background: var(--sr-surface-2);
  border: 1px solid var(--sr-border);
  border-radius: 12px;
  max-height: 120px;
  overflow-y: auto;
}
.smartreply-emoji-panel.open { display: flex; }
.smartreply-emoji-item {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.smartreply-emoji-item:hover { background: var(--sr-surface); }
.smartreply-input {
  flex: 1;
  border: 1px solid var(--sr-border);
  border-radius: 22px;
  padding: 10px 16px;
  font-size: var(--sr-font-size);
  outline: none;
  font-family: inherit;
  min-width: 0;
  background: var(--sr-input-bg);
  color: var(--sr-text);
}
.smartreply-input:focus { border-color: var(--sr-primary); }
.smartreply-send {
  background: var(--sr-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.smartreply-send:disabled { opacity: 0.5; cursor: not-allowed; }
.smartreply-send svg { width: 18px; height: 18px; fill: #fff; }
.smartreply-media-img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
  margin-bottom: 6px;
  object-fit: cover;
}
.smartreply-media-video {
  display: block;
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  margin-bottom: 6px;
  background: #000;
}
.smartreply-media-link { display: block; }
.smartreply-msg-text { white-space: pre-wrap; word-break: break-word; }
.smartreply-msg.user .smartreply-media-img,
.smartreply-msg.user .smartreply-media-video { margin-left: auto; }

/* Welcome */
.smartreply-welcome {
  color: var(--sr-muted);
  text-align: center;
  font-size: var(--sr-font-size);
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0.01em;
  padding: 12px 8px;
}

/* Footer: quick replies + input (matches marketing demo) */
.smartreply-footer {
  border-top: 1px solid var(--sr-border);
  background: var(--sr-bg);
  flex-shrink: 0;
  padding: 10px 12px 12px;
}
.smartreply-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.smartreply-quick-bar.hidden { display: none; }
.smartreply-quick-bar button {
  border: 1px solid var(--sr-primary);
  background: var(--sr-surface-2);
  color: var(--sr-primary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.smartreply-quick-bar button:hover {
  background: var(--sr-primary);
  color: #fff;
}

/* End conversation (shown after user messages) */
.smartreply-end-bar {
  display: none;
  justify-content: center;
  padding: 6px 12px 10px;
  border-top: 1px solid #f0f0f0;
  background: var(--sr-bg);
  flex-shrink: 0;
}
.smartreply-end-bar.visible { display: flex; }
.smartreply-end-btn {
  border: none;
  background: transparent;
  color: var(--sr-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 4px 8px;
}
.smartreply-end-btn:hover { color: #b91c1c; }

/* End-conversation confirm modal */
.smartreply-confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 100001;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.smartreply-confirm-modal.open { display: flex; }
.smartreply-confirm-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.smartreply-confirm-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.smartreply-confirm-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}
.smartreply-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.smartreply-confirm-cancel,
.smartreply-confirm-ok {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.smartreply-confirm-cancel {
  background: #f3f4f6;
  color: #374151;
}
.smartreply-confirm-ok {
  background: #dc2626;
  color: #fff;
}

@media (max-width: 480px) {
  .smartreply-root { bottom: 0; right: 0; left: 0; }
  .smartreply-window { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .smartreply-fab { bottom: 16px; right: 16px; }
}
