@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* CSS Reset pre iframe konzistenciu */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2159A0;
  --primary-light: #3D7BC7;
  --primary-dark: #174179;
  --accent-color: #1B4B87;
  --background-light: #F8FAFB;
  --text-primary: #ffffff;
  --text-dark: #1a1a1a;
  --text-secondary: #64748b;
  --border-light: rgba(33, 89, 160, 0.15);
  --shadow-color: rgba(33, 89, 160, 0.15);
}

/* Hyperlink styles */
.message.bot a,
.message a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(33, 89, 160, 0.3);
}

/* Hover efekt pre odkazy */
.message.bot a:hover,
.message a:hover {
  color: var(--primary-dark);
  border-bottom: 1px solid var(--primary-dark);
}

/* Typing animation */
@keyframes typing {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Základné nastavenie pre iframe kompatibilitu */
html {
  height: 100%;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Ubuntu', sans-serif;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

/* Speciálne pravidlá pre iframe režim */
body.iframe-mode {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  font-size: 16px !important;
}

/* Iframe режim - aj pre html element */
html:has(body.iframe-mode),
body.iframe-mode ~ html,
html {
  margin: 0 !important;
  padding: 0 !important;
}

/* Zabezpečenie presných fontov v iframe */
body.iframe-mode #user-input {
  font-size: 14px !important;
}

body.iframe-mode .user-name {
  font-size: 16px !important;
  font-family: 'Ubuntu', sans-serif;
}

body.iframe-mode .user-status {
  font-size: 12px !important;
}

#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 100%;
  max-height: 650px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 0px;
  box-shadow: 0 24px 48px rgba(33, 89, 160, 0.25), 
              0 8px 16px rgba(33, 89, 160, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
              height 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              max-height 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              border-radius 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s ease;
  z-index: 9999;
  box-sizing: border-box;
  border: none;
  font-family: 'Ubuntu', sans-serif;
}

/* Keď je v iframe, vyplní celý priestor */
body.iframe-mode #chatbot-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
}

#chatbot-container.closed {
  max-height: 56px;
  height: 56px;
  width: 280px;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(33, 89, 160, 0.3);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}

/* V iframe režime - zatvorený stav vyplní celý iframe */
body.iframe-mode #chatbot-container.closed {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#chatbot-container.closed #chatbot-header {
  display: none !important;
}

#chatbot-container.closed #chatbot-body {
  display: none !important;
}

#chatbot-container.closed #chatbot-header-closed {
  display: flex !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  padding: 12px 20px;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(10px);
  height: 56px;
  width: 280px;
  border-radius: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 !important;
  box-shadow: none;
}

/* V iframe režime - header v zatvorenom stave */
body.iframe-mode #chatbot-container.closed #chatbot-header-closed {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

#chatbot-container.closed #chatbot-header-closed:hover {
  transform: scale(1.02);
}

#chatbot-header-closed .closed-bot-logo {
  display: none;
}

#chatbot-header-closed .closed-bot-text {
  color: white;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-align: center;
}

#chatbot-header-closed {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  padding: 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

#chatbot-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
  min-height: 95px;
  max-height: 95px;
  height: 95px;
  box-sizing: border-box;
  line-height: 1;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-wrapper img {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.user-name {
  font-weight: 600;
  font-size: 16px !important;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.user-status {
  font-size: 12px !important;
  color: #10b981;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

/* Header actions container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#reset-chat-btn {
  background: transparent;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  font-size: 16px;
  padding: 0;
  flex-shrink: 0;
}

#reset-chat-btn:hover {
  opacity: 0.7;
}

#reset-chat-btn:active {
  transform: scale(0.95);
}

#chatbot-container.closed #chatbot-header {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

#toggle-icon {
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease;
  transform-origin: center;
  will-change: transform;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

#chatbot-container:not(.closed) #toggle-icon {
  transform: scaleX(-1);
}

#chatbot-container.closed #toggle-icon {
  transform: scaleX(1);
}

#chatbot-container.closed #chatbot-body {
  display: none;
}

#chatbot-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: var(--background-light);
  flex: 1 1 auto;
  box-sizing: border-box;
  margin: 0;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  min-height: 0;
  max-height: calc(100% - 90px);
  overflow: hidden;
}

#chatbot-container.closed #chatbot-body {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  min-height: 0;
}

#chat-messages::-webkit-scrollbar {
  display: none; /* WebKit */
}

.message {
  padding: 14px 18px;
  border-radius: 20px;
  max-width: 85%;
  font-size: 14.5px;
  line-height: 1.5;
  position: relative;
  margin: 6px 0;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  position: relative;
  z-index: 100;
  border-radius: 20px 20px 4px 20px;
  border: none;
  box-shadow: 0 4px 12px rgba(33, 89, 160, 0.25);
}

.message.bot {
  align-self: flex-start;
  background: white;
  color: var(--text-dark);
  position: relative;
  z-index: 100;
  border-radius: 20px 20px 20px 4px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(33, 89, 160, 0.08);
}

#input-area {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin: 0;
  padding: 16px 0 0 0;
  flex-shrink: 0;
  position: relative;
  border-top: 1px solid var(--border-light);
}

#user-input {
  flex: 1;
  resize: none;
  height: 48px;
  padding: 14px 18px;
  font-size: 14px !important;
  border-radius: 24px;
  border: 1.5px solid var(--border-light);
  font-family: 'Ubuntu', sans-serif;
  box-sizing: border-box;
  background: white;
  color: var(--text-dark);
  outline: none;
  transition: all 0.3s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(33, 89, 160, 0.06);
}

#user-input::-webkit-scrollbar {
  display: none;
}

#user-input::placeholder {
  color: var(--text-secondary);
}

#user-input:focus {
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(33, 89, 160, 0.1),
              0 4px 12px rgba(33, 89, 160, 0.12);
}

button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: 'Ubuntu', sans-serif;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(33, 89, 160, 0.25);
}

button:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 89, 160, 0.35);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(33, 89, 160, 0.3);
}

/* Chatbot Footer */
#chatbot-footer {
  text-align: center;
  padding: 8px 0;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: 'Ubuntu', sans-serif;
  margin-top: 12px;
}

#chatbot-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

#chatbot-footer a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Quick Reply buttony */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
  padding: 0;
}

.quick-reply-btn {
  background: white;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  border-radius: 22px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  height: auto;
  width: auto;
  max-width: calc(100% - 20px);
  min-height: 38px;
  display: block;
  box-shadow: 0 2px 6px rgba(33, 89, 160, 0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.quick-reply-btn:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 89, 160, 0.25);
}

.quick-reply-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(33, 89, 160, 0.2);
}

/* Contact button */
.contact-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  height: auto;
  width: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(33, 89, 160, 0.25);
}

.contact-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(33, 89, 160, 0.35);
}

.contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(33, 89, 160, 0.2);
}

/* Responzívne štýly pre Quick Reply buttony - IBA pre NON-iframe */
@media (max-width: 480px) {
  body:not(.iframe-mode) .quick-reply-btn {
    font-size: 0.8em;
    padding: 6px 12px;
    min-height: 32px;
  }
}

/* Kontaktný formulár */
.contact-form {
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(33, 89, 160, 0.1);
}

.contact-form h4 {
  margin: 0 0 8px 0;
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 600;
}

.contact-form p {
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  background: var(--background-light);
  color: var(--text-dark);
  font-family: 'Ubuntu', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(33, 89, 160, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

.form-group textarea {
  height: 80px;
  min-height: 80px;
  max-height: 150px;
}

.form-submit-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
  width: 100%;
  height: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(33, 89, 160, 0.25);
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 89, 160, 0.35);
}

.form-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(33, 89, 160, 0.2);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responzívne štýly pre formulár - IBA pre NON-iframe */
@media (max-width: 480px) {
  body:not(.iframe-mode) .contact-form {
    padding: 12px;
  }
  
  body:not(.iframe-mode) .form-group input,
  body:not(.iframe-mode) .form-group textarea {
    font-size: 16px; /* Zabráni zoomovaniu na iOS */
  }
}

/* Responzívne štýly pre mobilné zariadenia - NEPOUŽÍVAJ pre iframe-mode! */
@media (max-width: 768px) {
  /* Iba pre NON-iframe režim */
  body:not(.iframe-mode) #chatbot-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    height: auto;
    max-height: 70vh;
  }
  
  body:not(.iframe-mode) #chatbot-container.closed {
    width: 250px;
    height: 52px;
    left: auto;
    right: 10px;
    border-radius: 0;
  }
  
  /* V iframe režime - na mobiloch celá obrazovka */
  body.iframe-mode #chatbot-container {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  
  body.iframe-mode #chatbot-container.closed {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }
  
  body.iframe-mode #chatbot-container.closed #chatbot-header-closed {
    border-radius: 0 !important;
  }
  
  /* Otvorený chatbot v iframe na mobiloch bez zaoblenia */
  body.iframe-mode #chatbot-container:not(.closed) {
    border-radius: 0 !important;
  }
  
  body.iframe-mode #chatbot-header {
    border-radius: 0 !important;
  }
  
  /* Mobilné štýly IBA pre NON-iframe */
  body:not(.iframe-mode) #chatbot-header {
    padding: 8px 16px;
    font-size: 16px;
    min-height: 65px;
    max-height: 65px;
    height: 65px;
  }
  
  body:not(.iframe-mode) .avatar-wrapper {
    width: 36px;
    height: 36px;
  }
  
  body:not(.iframe-mode) .avatar-wrapper img {
    height: 36px;
    width: 36px;
  }
  
  body:not(.iframe-mode) .user-name {
    font-size: 16px;
  }
  
  body:not(.iframe-mode) .user-status {
    font-size: 12px;
  }
  
  body:not(.iframe-mode) #chatbot-body {
    padding: 12px;
    height: auto;
    flex: 1;
    min-height: 0;
  }
  
  body:not(.iframe-mode) #user-input {
    height: 50px;
    font-size: 16px !important; /* Zabráni zoomovaniu na iOS */
  }
  
  body:not(.iframe-mode) .message {
    max-width: 85%;
    font-size: 14px;
  }
  
  /* Iframe-mode ZACHOVÁ desktop veľkosti */
  body.iframe-mode #chatbot-body {
    height: auto;
    flex: 1;
    padding: 16px;
    box-sizing: border-box;
    margin: 0;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  /* Iba pre NON-iframe režim */
  body:not(.iframe-mode) #chatbot-container {
    bottom: 5px;
    right: 5px;
    left: 5px;
    max-width: calc(100vw - 10px);
    height: auto;
    max-height: 75vh;
  }
  
  body:not(.iframe-mode) #chatbot-container.closed {
    width: 230px;
    height: 50px;
    right: 5px;
    border-radius: 0;
  }
  
  /* V iframe režime - VŽDY desktop veľkosti */
  body.iframe-mode #chatbot-container {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
  
  body.iframe-mode #chatbot-container.closed {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }
  
  /* Mobilné štýly IBA pre NON-iframe */
  body:not(.iframe-mode) #chatbot-header {
    padding: 6px 12px;
    font-size: 16px;
    min-height: 56px;
    max-height: 56px;
    height: 56px;
  }
  
  body:not(.iframe-mode) .avatar-wrapper {
    width: 32px;
    height: 32px;
  }
  
  body:not(.iframe-mode) .avatar-wrapper img {
    height: 32px;
    width: 32px;
  }
  
  body:not(.iframe-mode) .user-name {
    font-size: 16px !important;
  }
  
  body:not(.iframe-mode) .user-status {
    font-size: 10px !important;
  }
  
  body:not(.iframe-mode) #toggle-icon {
    font-size: 18px;
    width: 20px;
    height: 20px;
  }
  
  body:not(.iframe-mode) #chatbot-body {
    padding: 10px;
    height: auto;
    flex: 1;
    min-height: 0;
    max-height: calc(100% - 56px);
  }
  
  body:not(.iframe-mode) #user-input {
    height: 45px;
    padding: 8px 10px;
    font-size: 16px !important;
  }
  
  body:not(.iframe-mode) button {
    padding: 10px;
    font-size: 14px;
  }
  
  body:not(.iframe-mode) .message {
    padding: 8px 12px;
    max-width: 90%;
    font-size: 13.6px;
  }
  
  /* Iframe-mode ZACHOVÁ desktop veľkosti */
  body.iframe-mode #chatbot-body {
    height: auto;
    flex: 1;
    min-height: 0;
    padding: 16px;
  }
}

/* Landscape orientácia na mobiloch - IBA pre NON-iframe */
@media (max-width: 768px) and (orientation: landscape) {
  body:not(.iframe-mode) #chatbot-container {
    height: auto;
    max-height: 85vh;
  }
  
  body:not(.iframe-mode) #chatbot-body {
    height: calc(85vh - 80px);
  }
}

/* Veľmi malé zariadenia - IBA pre NON-iframe */
@media (max-width: 320px) {
  body:not(.iframe-mode) #chatbot-container.closed {
    width: 220px;
    height: 48px;
    border-radius: 0;
  }
  
  body:not(.iframe-mode) #chatbot-header {
    font-size: 0.85em;
  }
  
  body:not(.iframe-mode) #chatbot-header img {
    height: 28px !important;
  }
}