/* Ella – vizuál zhodný s novým web bookingom (tokeny --crm-* zo šablóny). */

body.ella-wb {
  --font-h: var(--crm-font-heading, var(--crm-font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif));
  --bg: #f3f1f0;
  --card: var(--crm-paper, #fff);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --sep: rgba(60, 60, 67, .12);
  --fill: rgba(120, 120, 128, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --ok: #2f7d4f;
  --bad: #d70015;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  background: var(--bg);
  color: var(--text);
  font-family: var(--crm-font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  justify-content: flex-start !important;
  align-items: stretch !important;
  overflow: hidden;
  max-width: none !important;
}

/* Celá stránka /ella/ – výška okna, nie centrovanie obsahu z m.css */
body.ella-wb:not(.ella-embed) {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

html:has(body.ella-wb:not(.ella-embed)) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.ella-wb #chatContainer {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  flex: 1;
  flex-direction: column;
  margin: 0 !important;
  background: var(--bg);
  overflow: hidden;
}

body.ella-wb .ella-loading-screen {
  display: none !important;
}

body.ella-wb.ella-embed .ella-top .brand,
body.ella-wb.ella-embed .ella-top .ella-presence {
  display: none !important;
}

body.ella-wb.ella-embed .ella-top {
  height: 44px;
  padding: 0 12px;
  justify-content: flex-end;
}

body.ella-wb.ella-embed .ella-top .ella-lang-dd {
  margin-left: auto;
}

html:has(body.ella-wb) {
  height: 100%;
  width: 100%;
  display: block !important;
  margin: 0;
  padding: 0;
}

body.ella-wb .chat-container {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  background: var(--bg);
  max-width: none;
  overflow: hidden;
}

/* V iframe /webbooking/ nesmie byť 100dvh – oreže obsah podľa okna prehliadača, nie panelu */
body.ella-wb.ella-embed .chat-container,
body.ella-wb.ella-embed #chatContainer {
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
}

html:has(body.ella-wb.ella-embed),
body.ella-wb.ella-embed {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.ella-wb .chat-main {
  background: var(--bg);
  min-height: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Full /ella/: scrolluje celá hlavná oblasť (uvítanie + karty), nie orez flex-center */
body.ella-wb:not(.ella-embed) .chat-main {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.ella-wb:not(.ella-embed) #chatContainer,
body.ella-wb:not(.ella-embed) .chat-container {
  height: 100% !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  flex: 1 1 auto;
  max-width: 820px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 0 1px var(--sep);
}

body.ella-wb:not(.ella-embed) .chat-messages-content,
body.ella-wb:not(.ella-embed) #chatMessagesContent {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

body.ella-wb:not(.ella-embed) .chat-input-container {
  max-width: 760px;
}

body.ella-wb #chatMessages,
body.ella-wb .chat-messages.active,
body.ella-wb .chat-messages.has-messages {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

body.ella-wb .chat-input-area {
  max-width: none !important;
  margin: 0 !important;
  width: 100%;
  background: transparent;
}

body.ella-wb .ella-resume {
  max-width: 720px;
  width: calc(100% - 40px);
  margin: 0 auto 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}
body.ella-wb .ella-resume p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
body.ella-wb .ella-resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.ella-wb .ella-resume-go,
body.ella-wb .ella-resume-new {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
body.ella-wb .ella-resume-go {
  background: var(--crm-primary, #1d2622);
  color: var(--crm-on-primary, #fff);
}
body.ella-wb .ella-resume-new {
  background: var(--fill);
  color: var(--text);
}

/* Hlavička ako /booking/ a /webbooking/: okrúhly cover, názov, lokalita */
body.ella-wb .ella-top {
  height: 60px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 20px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--sep);
  z-index: 20;
}

body.ella-wb .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

body.ella-wb .brand-c {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--crm-primary, #1d2622);
  box-shadow: 0 0 0 1px rgba(29, 38, 34, .08);
}

body.ella-wb .brand-c img { width: 100%; height: 100%; display: block; }
body.ella-wb .brand-c .fit-cover { object-fit: cover; }
body.ella-wb .brand-c .fit-contain { object-fit: contain; padding: 6px; background: #fff; }
body.ella-wb .brand-c .mono {
  font: 700 12px var(--font-h);
  letter-spacing: .02em;
  color: var(--crm-on-primary, #fff);
  background: var(--crm-primary, #1d2622);
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

body.ella-wb .brand-t { min-width: 0; }
body.ella-wb .brand b {
  display: block;
  font: 600 15px/1.15 var(--font-h);
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ella-wb .brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ella-wb .ella-presence {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
body.ella-wb .ella-presence i {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  flex: none;
  border-radius: 50%;
  background: #2f9e5b;
  box-shadow: 0 0 0 2px #fff;
  display: block;
}

body.ella-wb .ella-back-web {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
body.ella-wb .ella-back-web:hover { color: var(--text); }
body.ella-wb.ella-embed .ella-back-web { display: none; }

body.ella-wb .ella-new-chat {
  flex: none;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--sep);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
body.ella-wb .ella-new-chat[hidden] { display: none !important; }
body.ella-wb.ella-embed .ella-new-chat { display: none !important; }

body.ella-wb .ella-top .ella-lang-dd {
  margin-left: 8px;
  position: relative;
  flex: none;
}

/* Uvítanie – bez justify-content:center z m.css (inak sa spodok oreže) */
body.ella-wb .welcome-screen {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100%;
  padding: 20px 16px max(28px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  overflow-x: hidden;
  box-sizing: border-box;
}

body.ella-wb:not(.ella-embed) .welcome-screen {
  flex: none !important;
  min-height: auto !important;
  overflow-y: visible !important;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  min-height: calc(100dvh - 60px) !important;
  box-sizing: border-box;
}

body.ella-wb .welcome-screen {
  justify-content: space-between !important;
}

body.ella-wb .welcome-vop-footer {
  margin-top: auto;
  width: 100%;
  max-width: 720px;
  padding-top: 20px;
}

body.ella-wb .welcome-vop-footer p {
  color: var(--faint) !important;
  font-size: 11.5px !important;
}

body.ella-wb .ella-resume-slot {
  flex: none;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 0;
}

body.ella-wb.ella-has-resume .ella-resume-slot {
  min-height: 56px;
  padding: 8px 16px 0;
  box-sizing: border-box;
}

body.ella-wb .example-card.pending {
  opacity: 0.55;
  pointer-events: none;
}

body.ella-wb.ella-embed .chat-main {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.ella-wb.ella-embed .welcome-screen {
  flex: none !important;
  min-height: auto !important;
  overflow-y: visible !important;
  padding-top: 8px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

body.ella-wb.ella-embed .welcome-title {
  font-size: clamp(22px, 5vw, 28px);
}

body.ella-wb.ella-embed .welcome-subtitle {
  font-size: 14px;
  margin-bottom: 4px;
}

body.ella-wb.ella-embed .ella-avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

body.ella-wb.ella-embed .welcome-input-container {
  margin-top: 14px;
}

body.ella-wb.ella-embed .phase-seg {
  margin-top: 12px;
  margin-bottom: 10px;
}

body.ella-wb.ella-embed .welcome-examples {
  padding-bottom: 8px;
}

body.ella-wb .ella-avatar {
  width: 76px;
  height: 76px;
  margin: 8px auto 16px;
  border: 0;
  box-shadow: 0 0 0 1px var(--sep);
  position: relative;
  overflow: visible;
  border-radius: 50%;
}
body.ella-wb .ella-avatar-video { display: none; }
body.ella-wb .ella-avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2f9e5b;
  border: 2px solid #fff;
  z-index: 2;
  box-sizing: border-box;
}

body.ella-wb .welcome-title {
  font: 700 32px/1.15 var(--font-h);
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0;
}
body.ella-wb .welcome-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 8px auto 0;
  max-width: 520px;
  opacity: 1;
}

body.ella-wb .welcome-input-container {
  position: relative;
  max-width: 720px;
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--sep);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 16px;
}
body.ella-wb .typing-placeholder {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
  max-width: calc(100% - 72px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ella-wb .typing-placeholder .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--crm-accent, #946438);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: ellaWbCursor 1s infinite;
}
@keyframes ellaWbCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
body.ella-wb .welcome-input.locked,
body.ella-wb .welcome-input:disabled {
  background: transparent;
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}
body.ella-wb .welcome-input-container.locked {
  background: var(--fill);
  border-color: var(--sep);
  box-shadow: none;
}
body.ella-wb .welcome-input-container.locked .welcome-send-btn {
  opacity: 0.35;
  pointer-events: none;
}
body.ella-wb .welcome-input-container.locked .typing-placeholder {
  display: none;
}
body.ella-wb .welcome-input {
  border: 0;
  background: transparent;
  border-radius: 0;
  min-height: 44px;
  padding: 10px 8px;
  box-shadow: none;
}
body.ella-wb .welcome-input:focus { border: 0; box-shadow: none; }
body.ella-wb .welcome-send-btn {
  position: static;
  transform: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--crm-primary, #1d2622);
  color: var(--crm-on-primary, #fff);
  flex: none;
}
body.ella-wb .welcome-send-btn:hover { transform: none; background: color-mix(in srgb, var(--crm-primary, #1d2622) 86%, #000); }

body.ella-wb .phase-seg {
  display: inline-flex;
  background: #e9e6e4;
  border-radius: 10px;
  padding: 3px;
  margin: 18px auto 12px;
  max-width: 100%;
}
body.ella-wb .phase-seg button {
  padding: 7px 14px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: #3a3a3c;
  cursor: pointer;
}
body.ella-wb .phase-seg button.on {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  color: var(--text);
  font-weight: 600;
}

body.ella-wb .welcome-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 720px;
  width: 100%;
}
body.ella-wb .example-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  color: inherit;
  font: inherit;
  width: 100%;
}
body.ella-wb .example-card:hover {
  border-color: rgb(var(--crm-primary-rgb, 29 38 34) / .25);
  box-shadow: var(--shadow);
  transform: none;
}
body.ella-wb .example-card .ti {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgb(var(--crm-accent-rgb, 148 100 56) / .12);
  color: var(--crm-accent, #946438);
  display: grid;
  place-items: center;
  flex: none;
}
body.ella-wb .example-card .ic { width: 18px; height: 18px; }
body.ella-wb .example-card .tx { min-width: 0; display: block; }
body.ella-wb .example-card .tx b {
  display: block;
  font: 600 13.5px/1.3 var(--font-h);
  color: var(--text);
}
body.ella-wb .example-card .tx span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.ella-wb .example-card.feat {
  background: var(--crm-primary, #1d2622);
  color: var(--crm-on-primary, #fff);
}
body.ella-wb .example-card.feat .ti { background: rgba(255, 255, 255, .12); color: #e3c19c; }
body.ella-wb .example-card.feat .tx b { color: inherit; }
body.ella-wb .example-card.feat .tx span { color: rgba(255, 255, 255, .72); }
body.ella-wb .example-card[hidden] { display: none; }
body.ella-wb .example-card.question-card {
  grid-column: 1 / -1;
}
body.ella-wb .example-card.question-card .tx span {
  white-space: normal;
}

body.ella-wb .ella-lang-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--sep);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
}
body.ella-wb .ella-lang-chev {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
body.ella-wb .ella-lang-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  max-height: min(280px, 50dvh);
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--sep);
  box-shadow: var(--shadow);
  z-index: 40;
}
body.ella-wb .ella-lang-dd-menu[hidden] {
  display: none !important;
}
body.ella-wb .ella-lang-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body.ella-wb .ella-lang-dd-item:hover {
  background: var(--fill);
}
body.ella-wb .ella-lang-dd-item.on {
  background: var(--fill);
  font-weight: 600;
}
body.ella-wb .ella-lang-dd-label {
  font-size: 13px;
  line-height: 1.25;
}
body.ella-wb.ella-embed .ella-lang-dd-menu {
  max-height: min(240px, 40dvh);
}

body.ella-wb .vop-info-message,
body.ella-wb .vop-info-message p {
  color: var(--faint);
  font-size: 11.5px;
  max-width: 720px;
}
body.ella-wb .vop-link { color: var(--crm-accent, #946438); text-decoration: underline; }

body.ella-wb .welcome-router-hint { color: var(--muted); font-size: 13px; }

/* Aktívny chat – celá výška panelu, scroll v #chatMessages (nie body s overflow:hidden) */
body.ella-wb.ella-in-chat .chat-main {
  overflow: hidden !important;
  flex: 1 1 0;
  min-height: 0;
}

body.ella-wb.ella-in-chat #welcomeScreen {
  display: none !important;
}

body.ella-wb.ella-in-chat #chatMessages,
body.ella-wb.ella-in-chat #chatMessages.active,
body.ella-wb.ella-in-chat #chatMessages.has-messages {
  display: flex !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

body.ella-wb.ella-in-chat #chatMessagesContent,
body.ella-wb.ella-in-chat .chat-messages-content {
  min-height: 0 !important;
  flex: 1 1 auto;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 4px 0 88px !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

body.ella-wb.ella-in-chat .chat-messages.has-few-messages .chat-messages-content,
body.ella-wb.ella-in-chat .chat-messages.has-many-messages .chat-messages-content {
  justify-content: flex-start !important;
}

body.ella-wb.ella-in-chat .chat-input-area {
  flex: none;
  z-index: 5;
}

/* Konverzácia */
body.ella-wb #chatMessages {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 20px 8px;
  justify-content: flex-start;
  background: transparent;
}
body.ella-wb .chat-messages-content {
  gap: 16px;
  padding: 8px 4px 12px;
  max-width: 760px;
}

body.ella-wb .message {
  gap: 12px;
  align-items: flex-start;
  opacity: 1;
  transform: none;
  animation: ellaIn .28s ease forwards;
}
body.ella-wb .message.user {
  flex-direction: row;
  justify-content: flex-end;
}
@keyframes ellaIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

body.ella-wb .message.bot .message-avatar,
body.ella-wb .typing-indicator .message-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  overflow: visible;
  border: 0;
  background: #cbbfb4;
}
body.ella-wb .message.bot .message-avatar-img,
body.ella-wb .typing-indicator .message-avatar-img {
  border-radius: 50%;
  overflow: hidden;
}
body.ella-wb .message-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
body.ella-wb .message.user .message-avatar { display: none; }
body.ella-wb .message.user .message-content { margin-left: auto; max-width: 70%; }
body.ella-wb .message.user .message-bubble {
  background: var(--crm-primary, #1d2622);
  color: var(--crm-on-primary, #fff);
  border: 0;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  width: auto;
}
body.ella-wb .message.bot .message-bubble {
  background: #fff;
  color: var(--text);
  border: 0 !important;
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  max-width: 620px;
}
body.ella-wb .message-time { color: var(--faint); font-size: 11px; }

body.ella-wb .message.is-error .message-bubble {
  background: #fff5f5;
  box-shadow: inset 0 0 0 1px rgba(215, 0, 21, .28);
  color: #3a1518;
}

body.ella-wb .typing-indicator { margin: 0; }
body.ella-wb .typing-dots {
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  padding: 14px 16px;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
body.ella-wb .typing-dot {
  width: 6px;
  height: 6px;
  background: #b5b0ab;
  animation: ellaDot 1s infinite;
}
body.ella-wb .typing-dot:nth-child(2) { animation-delay: .15s; }
body.ella-wb .typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes ellaDot {
  0%, 60%, 100% { opacity: .35; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Rýchle odpovede a akcie */
body.ella-wb .ella-action-btn,
body.ella-wb .room-select-btn,
body.ella-wb .variant-select-btn,
body.ella-wb .room-more-info-btn,
body.ella-wb .room-availability-btn,
body.ella-wb .room-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--sep) !important;
  background: #fff !important;
  color: var(--text) !important;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}
body.ella-wb .ella-action-btn:hover,
body.ella-wb .room-select-btn:hover,
body.ella-wb .variant-select-btn:hover {
  border-color: var(--crm-primary, #1d2622) !important;
}
body.ella-wb .reservation-action-buttons,
body.ella-wb .room-buttons,
body.ella-wb .room-select-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.ella-wb .chat-actions-dropdown {
  border-radius: 14px;
  border: 1px solid var(--sep);
  box-shadow: var(--shadow);
  background: #fff;
}
body.ella-wb .action-item {
  border-radius: 10px;
  font-size: 13px;
}
body.ella-wb .action-icon { font-size: 0; }
body.ella-wb .action-icon .ic { width: 16px; height: 16px; color: var(--crm-accent, #946438); }
body.ella-wb .actions-list .ti { display: inline-flex; }

/* Vstup */
body.ella-wb .chat-input-area {
  background: transparent;
  border: 0;
  padding: 8px 20px 16px;
  box-shadow: none;
}
body.ella-wb .chat-input-container {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--sep);
  border-radius: 14px;
  padding: 6px 6px 6px 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  align-items: center;
}
body.ella-wb .chat-input {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 40px;
  padding: 8px 8px;
}
body.ella-wb .chat-input:focus { border: 0; box-shadow: none; }
body.ella-wb .chat-send-btn,
body.ella-wb .chat-actions-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--crm-primary, #1d2622);
  color: var(--crm-on-primary, #fff);
  border: 0;
}
body.ella-wb .chat-actions-btn {
  background: transparent;
  color: var(--muted);
}
body.ella-wb .chat-vop-info { text-align: center; margin-top: 8px; }

/* Karty z živých dát (izby, služby, rezervácie) – rovnaký karusel, nový povrch */
body.ella-wb .carousel-item,
body.ella-wb .room-card,
body.ella-wb .new-room-card,
body.ella-wb .service-card,
body.ella-wb .reservation-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: none;
}
body.ella-wb .carousel-item:hover,
body.ella-wb .room-card:hover { box-shadow: var(--shadow); }
body.ella-wb .room-image,
body.ella-wb .room-gallery-container { border-radius: 0; }
body.ella-wb .room-name,
body.ella-wb .service-name { font-family: var(--font-h); letter-spacing: -.01em; }
body.ella-wb .room-price {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  font-family: var(--font-h);
  z-index: 3;
}
body.ella-wb .price-amount {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
}
body.ella-wb .price-period {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
}
body.ella-wb .price-night {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
  font-weight: 500;
}

/* Karty izieb v rozhovore – mriežka namiesto polovičnej šírky */
body.ella-wb .carousel-container .carousel-track,
body.ella-wb .rooms-carousel-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  transform: none !important;
}
body.ella-wb .carousel-container .carousel-item,
body.ella-wb .carousel-container .carousel-item.room-card {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}
body.ella-wb .carousel-container .carousel-track-container {
  overflow: visible !important;
  cursor: default;
}
body.ella-wb .message.bot.carousel-message {
  padding-left: 44px;
  box-sizing: border-box;
}
body.ella-wb .message.bot.carousel-message .message-time {
  text-align: left;
  width: auto;
}
body.ella-wb.ella-in-chat #chatMessages {
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  scrollbar-width: thin;
}
@media (max-width: 520px) {
  body.ella-wb .carousel-container .carousel-track,
  body.ella-wb .rooms-carousel-grid {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
}

/* VOP v tej istej vrstve, nie na novej karte */
body.ella-wb .vop-popup-overlay {
  background: rgba(0, 0, 0, .18);
}
body.ella-wb .vop-popup-container {
  border-radius: 16px;
  border: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  max-width: 640px;
  background: #fff;
}
body.ella-wb .vop-popup-header {
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--sep);
  border-radius: 16px 16px 0 0;
}
body.ella-wb .vop-popup-header h2 { font-family: var(--font-h); font-size: 17px; }
body.ella-wb .vop-popup-close {
  background: var(--fill);
  color: var(--text);
  border-radius: 8px;
}

body.ella-wb .ella-loading-screen {
  background: var(--bg);
  animation: none;
  background-size: auto;
}
body.ella-wb .loading-content { color: var(--text); }
body.ella-wb .loading-text h2 {
  font: 700 1.35rem/1.2 var(--font-h);
  color: var(--text);
}
body.ella-wb .loading-text p { color: var(--muted); opacity: 1; }
body.ella-wb .loading-avatar { border-color: transparent; box-shadow: 0 0 0 1px var(--sep); }
body.ella-wb .loading-fill { background: var(--crm-primary, #1d2622); }

@media (max-width: 720px) {
  body.ella-wb .welcome-title { font-size: 26px; }
  body.ella-wb .welcome-examples { grid-template-columns: 1fr; }
  body.ella-wb .ella-presence { display: none; }
  body.ella-wb .brand b { font-size: 14px; }
  body.ella-wb .brand-c { width: 36px; height: 36px; }
  body.ella-wb .message.user .message-content { max-width: 82%; }
  body.ella-wb #chatMessages,
  body.ella-wb .chat-input-area { padding-left: 12px; padding-right: 12px; }
  body.ella-wb .ella-top { padding-left: 12px; height: 56px; }
}
