/* Every application rule is scoped to the Rinato widget. */
.rna-root {
  --rna-blue: #2545ed;
  --rna-purple: #7540e6;
  --rna-ink: #19254b;
  --rna-muted: #68738b;
  --rna-line: #e5e9f4;
  --rna-launcher-bottom: 88px;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  color: var(--rna-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  letter-spacing: 0;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

.rna-root *, .rna-root *::before, .rna-root *::after { box-sizing: border-box; }
.rna-root [hidden] { display: none !important; }
.rna-root button, .rna-root textarea, .rna-root a { font: inherit; letter-spacing: inherit; }
.rna-root button, .rna-root a { -webkit-tap-highlight-color: transparent; }
.rna-root button { cursor: pointer; text-transform: none; box-shadow: none; margin: 0; }
.rna-root button:disabled { cursor: not-allowed; opacity: .48; }
.rna-root a { text-decoration: none; }
.rna-root h2, .rna-root h3, .rna-root p { margin: 0; padding: 0; font-family: inherit; }
.rna-root :is(button, a, textarea, [tabindex]):focus-visible { outline: 3px solid #8095ff; outline-offset: 3px; }
.rna-root .rna-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.rna-root .rna-backdrop { position: absolute; inset: 0; pointer-events: auto; background: rgba(19, 28, 59, .17); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.rna-root .rna-launcher {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(var(--rna-viewport-bottom, 0px) + max(var(--rna-launcher-bottom), env(safe-area-inset-bottom)));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: linear-gradient(115deg, #2445e9 5%, #5937d9 72%, #7741dc);
  color: white;
  box-shadow: 0 10px 32px rgba(54, 55, 174, .3), 0 2px 5px rgba(22, 29, 69, .12);
  transition: transform .2s ease, box-shadow .2s ease, bottom .2s ease;
  text-align: left;
}
.rna-root .rna-launcher:hover { transform: translateY(-3px); box-shadow: 0 15px 36px rgba(54, 55, 174, .36); }
.rna-root .rna-launcher:is(:hover, :focus, :active) { background: linear-gradient(115deg, #2445e9 5%, #5937d9 72%, #7741dc); color: #fff; }
.rna-root .rna-launcher-label { display: none; }
.rna-root .rna-launcher-dot { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: #9df0ce; }
.rna-root .rna-launcher .rna-mascot { width: 35px; height: 35px; border-radius: 12px 12px 14px 7px; gap: 5px; }
.rna-root .rna-launcher .rna-mascot::after { display: none; }
.rna-root.rna-is-open .rna-launcher { box-shadow: 0 0 0 3px #e4e8ff, 0 10px 32px rgba(54, 55, 174, .3); }

.rna-root .rna-mascot { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 7px; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 17px 17px 19px 10px; background: linear-gradient(145deg, #e9efff 3%, #b9cbff 43%, #c3adff 100%); box-shadow: inset 0 2px 4px rgba(255, 255, 255, .8), 0 4px 9px rgba(34, 37, 115, .14); transform: rotate(-5deg); }
.rna-root .rna-mascot::before { content: ""; position: absolute; width: 10px; height: 4px; left: 8px; bottom: 9px; border-radius: 50%; background: rgba(115, 106, 218, .2); }
.rna-root .rna-mascot::after { content: ""; position: absolute; right: -3px; top: -4px; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: #8e5af0; }
.rna-root .rna-mascot-eye { display: block; width: 5px; height: 9px; border-radius: 5px; background: #354494; transform: rotate(5deg); }

.rna-root .rna-panel {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(var(--rna-viewport-bottom, 0px) + max(var(--rna-launcher-bottom), env(safe-area-inset-bottom)) + 68px);
  display: flex;
  flex-direction: column;
  width: 380px;
  height: min(540px, calc(var(--rna-viewport-height, 100dvh) - max(var(--rna-launcher-bottom), env(safe-area-inset-bottom)) - 92px));
  max-width: calc(100vw - 32px);
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(220, 225, 244, .9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(27, 36, 82, .24), 0 5px 20px rgba(27, 36, 82, .1);
  isolation: isolate;
  animation: rna-panel-in .2s ease-out;
}
.rna-root .rna-header { position: relative; z-index: 2; display: flex; align-items: center; flex: 0 0 auto; flex-wrap: wrap; gap: 5px; padding: 12px; border-bottom: 1px solid var(--rna-line); background: #fff; }
.rna-root .rna-brand { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; gap: 8px; }
.rna-root .rna-brand-logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: #f0f2ff; overflow: hidden; }
.rna-root .rna-brand-logo img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.rna-root .rna-brand-fallback { color: #3c43bc; font-size: 13px; font-weight: 850; letter-spacing: -.7px; }
.rna-root .rna-heading { min-width: 0; }
.rna-root .rna-heading h2 { color: var(--rna-ink); font-size: 14px; font-weight: 750; line-height: 1.3; letter-spacing: -.4px; overflow-wrap: anywhere; }
.rna-root .rna-subtitle { margin-top: 3px; color: var(--rna-muted); font-size: 9px; line-height: 1.4; }
.rna-root .rna-toolbar { display: flex; align-items: center; gap: 2px; }
.rna-root .rna-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; min-width: 30px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #657089; font-size: 21px; line-height: 1; transition: background .15s ease, color .15s ease; }
.rna-root .rna-icon-button:is(:hover, :focus, :active) { background: #f0f2fc; color: var(--rna-blue); }
.rna-root .rna-close { font-size: 26px; font-weight: 300; }
.rna-root .rna-status { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; padding: 9px 19px; border-bottom: 1px solid #ebedf6; background: #f8faff; color: #5c6880; font-size: 11px; line-height: 1.45; }
.rna-root .rna-status-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #99a3bc; }
.rna-root .rna-status[data-state="ready"] .rna-status-dot { background: #24a783; box-shadow: 0 0 0 3px #e5f7f0; }
.rna-root .rna-status[data-state="checking"] .rna-status-dot, .rna-root .rna-status[data-state="busy"] .rna-status-dot { background: #7274df; animation: rna-dot-pulse 1.2s ease-in-out infinite; }
.rna-root .rna-status[data-state="error"] { background: #fff9ef; color: #805d28; }
.rna-root .rna-status[data-state="error"] .rna-status-dot { background: #d09334; }
.rna-root .rna-status-text { min-width: 0; overflow-wrap: anywhere; }
.rna-root .rna-status-retry { flex-shrink: 0; margin-left: auto; padding: 3px 6px; border: 1px solid #e5cda7; border-radius: 5px; background: #fff; color: #765221; font-size: 10px; font-weight: 700; }
.rna-root .rna-status-retry:is(:hover, :focus, :active) { background: #fff9ef; color: #765221; }

.rna-root .rna-conversation { position: relative; flex: 1 1 auto; min-height: 0; padding: 14px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-color: #c6cee3 transparent; scrollbar-width: thin; background: linear-gradient(170deg, #fafbff 0%, #fff 60%); }
.rna-root .rna-welcome { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 0 4px; text-align: center; }
.rna-root .rna-mascot--welcome { width: 44px; height: 44px; gap: 7px; margin: 3px 0 12px; border-radius: 16px 16px 19px 10px; background: linear-gradient(140deg, #ecf0ff, #ccdbff 40%, #d6c5ff); box-shadow: 0 8px 20px rgba(101, 89, 202, .13), inset 0 3px 9px rgba(255, 255, 255, .9); }
.rna-root .rna-mascot--welcome .rna-mascot-eye { width: 6px; height: 12px; }
.rna-root .rna-mascot--welcome::after { width: 14px; height: 14px; right: -4px; top: -5px; border-width: 3px; }
.rna-root .rna-eyebrow { margin-bottom: 6px; color: #777b9c; font-size: 7px; font-weight: 750; letter-spacing: 1px; }
.rna-root .rna-welcome-title { max-width: 100%; color: #202952; font-size: 20px; font-weight: 750; line-height: 1.2; letter-spacing: -.5px; overflow-wrap: anywhere; }
.rna-root .rna-welcome-description { max-width: 290px; margin-top: 8px; color: #737c94; font-size: 12px; line-height: 1.55; }
.rna-root .rna-chips { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 7px; margin-top: 14px; }
.rna-root .rna-chip { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px; border: 1px solid #e1e5f4; border-radius: 10px; background: #fff; color: #414d78; font-size: 11px; font-weight: 600; line-height: 1.35; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
/* Keep theme/Elementor button states from turning light controls white. */
.rna-root .rna-chip:is(:hover, :focus, :active) { border-color: #a7b2f3; background: #f8f8ff; color: #414d78; }
.rna-root .rna-chip:hover:not(:disabled) { transform: translateY(-2px); }
.rna-root.rna-has-messages .rna-welcome { display: none; }

.rna-root .rna-message { display: flex; align-items: flex-start; gap: 8px; min-width: 0; margin: 0 0 20px; }
.rna-root .rna-message-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 28px; border-radius: 9px; background: #edf0ff; color: #5a5caa; font-size: 11px; font-weight: 750; }
.rna-root .rna-message-avatar .rna-mascot { width: 25px; height: 25px; gap: 4px; border-radius: 9px 9px 10px 5px; box-shadow: none; }
.rna-root .rna-message-avatar .rna-mascot-eye { width: 3px; height: 5px; }
.rna-root .rna-message-avatar .rna-mascot::before, .rna-root .rna-message-avatar .rna-mascot::after { display: none; }
.rna-root .rna-message-body { min-width: 0; max-width: 100%; flex: 1 1 auto; }
.rna-root .rna-message-label { display: block; margin: 0 0 6px 1px; color: #8189a0; font-size: 9px; font-weight: 650; }
.rna-root .rna-message-text { color: #323f62; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.rna-root .rna-message--user { justify-content: flex-end; margin-left: 30px; }
.rna-root .rna-message--user .rna-message-avatar { display: none; }
.rna-root .rna-message--user .rna-message-body { flex: 0 1 auto; padding: 11px 14px; border-radius: 15px 15px 4px 15px; background: linear-gradient(120deg, #354ce7, #6140d7); }
.rna-root .rna-message--user .rna-message-label { margin-bottom: 3px; color: #d8ddff; }
.rna-root .rna-message--user .rna-message-text { color: #fff; font-size: 12px; line-height: 1.65; }
.rna-root .rna-message--system { padding: 10px 11px; border: 1px solid #f0e3c9; border-radius: 11px; background: #fffaf1; }
.rna-root .rna-message--system .rna-message-avatar { flex-basis: 19px; width: 19px; height: 19px; margin-top: 2px; border-radius: 50%; background: #f6e9cd; color: #8d682d; font-family: Georgia, serif; }
.rna-root .rna-message--system .rna-message-label { color: #927848; }
.rna-root .rna-message--system .rna-message-text { color: #78613d; font-size: 11px; line-height: 1.6; }
.rna-root .rna-sources { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 13px; }
.rna-root .rna-source-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 11px; border: 1px solid #e4e8f5; border-radius: 10px; background: #fff; transition: background .15s ease, border-color .15s ease; }
.rna-root .rna-source-card:hover { border-color: #adbaf6; background: #f8faff; }
.rna-root .rna-source-title { color: #4355a0; font-size: 11px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.rna-root .rna-source-domain { color: #868fa6; font-size: 9px; overflow-wrap: anywhere; }
.rna-root .rna-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.rna-root .rna-action { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 11px; border: 1px solid #d9dff5; border-radius: 8px; background: #f2f5ff; color: #4054ab; font-size: 11px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.rna-root .rna-action:is(:hover, :focus, :active) { border-color: #aebbee; background: #e9eeff; color: #4054ab; }
.rna-root .rna-action--whatsapp { border-color: #c5e9db; background: #edf9f3; color: #22795a; }
.rna-root .rna-action--whatsapp:is(:hover, :focus, :active) { border-color: #91cfb5; background: #e3f5eb; color: #22795a; }
.rna-root .rna-typing { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 10px 34px; padding: 12px 15px; border: 1px solid #e7e9f6; border-radius: 14px 14px 14px 4px; background: #f3f5fc; }
.rna-root .rna-typing span { width: 5px; height: 5px; border-radius: 50%; background: #8b94bb; animation: rna-typing-pulse 1.1s ease-in-out infinite; }
.rna-root .rna-typing span:nth-child(2) { animation-delay: .12s; }
.rna-root .rna-typing span:nth-child(3) { animation-delay: .24s; }
.rna-root .rna-jump-latest { position: absolute; z-index: 3; left: 50%; bottom: 150px; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 7px 13px; border: 1px solid #dce2f6; border-radius: 20px; background: #fff; color: #4b59a2; box-shadow: 0 3px 15px #2636671a; font-size: 10px; }
.rna-root .rna-jump-latest:is(:hover, :focus, :active) { background: #f8faff; color: #4b59a2; }

.rna-root .rna-footer { flex: 0 0 auto; padding: 10px 12px; border-top: 1px solid var(--rna-line); background: #fff; }
.rna-root .rna-human-link { display: block; width: fit-content; margin: 0 auto 7px; color: #68728f; cursor: pointer; font-size: 11px; font-weight: 550; line-height: 1.5; }
.rna-root .rna-human-link:is(:hover, :focus, :active) { color: #4c48c0; text-decoration: underline; }
.rna-root .rna-composer { display: flex; align-items: flex-end; gap: 9px; width: 100%; margin: 0; padding: 6px 6px 6px 13px; border: 1px solid #dce2f2; border-radius: 16px; background: #fbfcff; transition: border-color .15s ease, box-shadow .15s ease; }
.rna-root .rna-composer:focus-within { border-color: #9baaf4; box-shadow: 0 0 0 3px #eaf0ff; }
.rna-root .rna-input { display: block; flex: 1 1 auto; min-width: 0; width: 100%; min-height: 38px; max-height: 136px; margin: 0; padding: 9px 0 7px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #26365c; font-size: 13px; line-height: 1.6; resize: none; outline: none; overflow-y: auto; }
.rna-root .rna-input:focus { border: 0; outline: none; box-shadow: none; }
.rna-root .rna-input::placeholder { color: #939bb1; opacity: 1; }
.rna-root .rna-input:disabled { color: #8f98ad; background: transparent; }
.rna-root .rna-send { display: flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 12px; background: linear-gradient(130deg, #354ee9, #6d45dc); color: white; font-size: 24px; font-weight: 450; line-height: 1; }
.rna-root .rna-send:is(:hover, :focus, :active):not(:disabled) { background: #4146cf; color: #fff; }
.rna-root .rna-send:disabled { opacity: 1; background: #e8ebf5; color: #a6afc5; }
.rna-root .rna-send:disabled:is(:hover, :focus, :active) { background: #e8ebf5; color: #a6afc5; }
.rna-root .rna-cancel { display: block; min-height: 27px; margin: 6px auto 0; padding: 3px 8px; border: 0; border-radius: 5px; background: transparent; color: #7b6a94; font-size: 10px; text-decoration: underline; }
.rna-root .rna-cancel:is(:hover, :focus, :active) { background: #f7f3fc; color: #68547f; }
.rna-root .rna-disclaimer { margin: 10px 0 0; color: #7e879e; font-size: 9px; line-height: 1.5; text-align: center; }

.rna-root.rna-is-fullscreen .rna-panel { top: calc(var(--rna-viewport-top, 0px) + 20px); right: 20px; left: 20px; bottom: auto; width: auto; max-width: none; height: calc(var(--rna-viewport-height, 100dvh) - 40px); }
.rna-root.rna-is-fullscreen .rna-conversation { padding-right: max(24px, calc((100% - 820px) / 2)); padding-left: max(24px, calc((100% - 820px) / 2)); }
.rna-root.rna-is-fullscreen .rna-welcome { padding-top: 30px; }
.rna-root.rna-is-fullscreen .rna-chips { max-width: 560px; }
.rna-root.rna-is-fullscreen .rna-footer { padding-right: max(24px, calc((100% - 820px) / 2)); padding-left: max(24px, calc((100% - 820px) / 2)); }
.rna-root.rna-is-fullscreen .rna-header { padding-right: 24px; padding-left: 24px; }
.rna-root.rna-is-fullscreen .rna-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 600px) {
  .rna-root .rna-launcher { right: max(16px, env(safe-area-inset-right)); }
  .rna-root .rna-panel {
    right: max(16px, env(safe-area-inset-right));
    width: min(380px, calc(100vw - 32px));
    height: min(500px, calc(var(--rna-viewport-height, 100dvh) * .7));
    max-height: calc(var(--rna-viewport-height, 100dvh) - max(var(--rna-launcher-bottom), env(safe-area-inset-bottom)) - 92px);
  }
  .rna-root.rna-is-fullscreen .rna-panel { top: calc(var(--rna-viewport-top, 0px) + max(10px, env(safe-area-inset-top))); right: 10px; left: 10px; bottom: auto; height: calc(var(--rna-viewport-height, 100dvh) - 20px - env(safe-area-inset-top)); max-height: none; }
  .rna-root .rna-header, .rna-root.rna-is-fullscreen .rna-header { gap: 5px; padding: 10px; }
  .rna-root .rna-brand { gap: 8px; }
  .rna-root .rna-brand-logo { width: 32px; height: 32px; border-radius: 10px; }
  .rna-root .rna-heading h2 { max-width: 160px; font-size: 14px; }
  .rna-root .rna-subtitle { font-size: 9px; }
  .rna-root .rna-icon-button { width: 27px; min-width: 27px; height: 30px; font-size: 20px; }
  .rna-root .rna-close { font-size: 25px; }
  .rna-root .rna-status { padding: 8px 14px; font-size: 10px; }
  .rna-root .rna-conversation, .rna-root.rna-is-fullscreen .rna-conversation { padding: 12px; }
  .rna-root.rna-is-fullscreen .rna-welcome { padding-top: 5px; }
  .rna-root .rna-welcome-title { font-size: 20px; }
  .rna-root .rna-welcome-description { font-size: 12px; }
  .rna-root .rna-chip { min-height: 38px; font-size: 11px; }
  .rna-root .rna-message-text { font-size: 13px; }
  .rna-root .rna-footer, .rna-root.rna-is-fullscreen .rna-footer { padding: 9px 11px; }
  .rna-root .rna-input { font-size: 16px; line-height: 1.45; }
  .rna-root .rna-disclaimer { font-size: 8px; }
  .rna-root.rna-is-fullscreen .rna-sources { grid-template-columns: minmax(0, 1fr); }
}

@media (max-height: 560px) {
  .rna-root .rna-mascot--welcome { width: 44px; height: 44px; margin-bottom: 15px; }
  .rna-root .rna-eyebrow { display: none; }
  .rna-root .rna-welcome-title { font-size: 19px; }
  .rna-root .rna-welcome-description { margin-top: 6px; }
  .rna-root .rna-chips { margin-top: 15px; }
  .rna-root .rna-human-link { margin-bottom: 6px; }
}

/* Use the space above WhatsApp when a keyboard or a short window reduces height. */
.rna-root.rna-viewport-short.rna-is-open:not(.rna-is-fullscreen) .rna-launcher { visibility: hidden; }
.rna-root.rna-viewport-short:not(.rna-is-fullscreen) .rna-panel {
  bottom: calc(var(--rna-viewport-bottom, 0px) + max(var(--rna-launcher-bottom), env(safe-area-inset-bottom)));
  height: calc(var(--rna-viewport-height, 100dvh) - max(var(--rna-launcher-bottom), env(safe-area-inset-bottom)) - 12px);
  max-height: none;
}
.rna-root.rna-viewport-short .rna-mascot--welcome, .rna-root.rna-viewport-short .rna-eyebrow { display: none; }
.rna-root.rna-viewport-short .rna-welcome-title { font-size: 18px; }
.rna-root.rna-viewport-short .rna-welcome-description { margin-top: 5px; font-size: 11px; }
.rna-root.rna-viewport-short .rna-chips { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .rna-root *, .rna-root *::before, .rna-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@keyframes rna-panel-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rna-dot-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes rna-typing-pulse { 0%, 70%, 100% { opacity: .4; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
