/* Hlavní obal pro widget (drží bublinu a tlačítko pod sebou) */
#faqWidgetContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Samotné tlačítko */
.custom-faq-btn {
  position: relative;
  background-color: #2c3e50;
  color: #ffffff !important;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.custom-faq-btn:hover {
  transform: translateY(-3px);
  background-color: #1a252f;
}

/* Textová bublina (nad tlačítkem) */
.faq-tooltip {
  background-color: #e67e22;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}
/* Trojúhelníček (šipka) pod bublinou */
.faq-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 35px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #e67e22;
}

/* Třída, která bublinu zobrazí a přidá jí houpání */
.faq-tooltip.show {
  opacity: 1;
  visibility: visible;
  animation: tooltip-bounce 2s infinite; 
}
@keyframes tooltip-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Animace tlačítka (Barva + Puls + Třes) */
.faq-attention-wiggle {
  animation: faq-pulse-wiggle 1s ease-in-out 3;
}
@keyframes faq-pulse-wiggle {
  0% { transform: scale(1) rotate(0); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
  25% { transform: scale(1.05) rotate(-3deg); box-shadow: 0 0 20px rgba(230, 126, 34, 0.6); background-color: #e67e22; }
  50% { transform: scale(1.05) rotate(3deg); box-shadow: 0 0 20px rgba(230, 126, 34, 0.6); background-color: #e67e22; }
  75% { transform: scale(1.05) rotate(-3deg); box-shadow: 0 0 20px rgba(230, 126, 34, 0.6); background-color: #e67e22; }
  100% { transform: scale(1) rotate(0); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
}

/* Vyskakovací panel FAQ */
.custom-faq-panel {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  max-height: 70vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.custom-faq-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hlavička a vnitřek panelu */
.faq-panel-header {
  background-color: #f8f9fa;
  padding: 16px 20px;
  border-bottom: 1px solid #eeeeee;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-panel-header h3 { margin: 0; font-size: 18px; color: #333; }
.faq-panel-close {
  background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: #999; transition: color 0.2s;
}
.faq-panel-close:hover { color: #e74c3c; }
.faq-panel-content { padding: 20px; overflow-y: auto; scrollbar-width: thin; }
.faq-panel-content h4 { margin: 20px 0 10px 0; font-size: 15px; color: #666; text-transform: uppercase; }
.faq-panel-content h4:first-child { margin-top: 0; }

/* Rozbalovací prvky uvnitř panelu */
.faq-item { border-bottom: 1px solid #eee; padding: 12px 0; }
.faq-item summary { font-weight: 600; cursor: pointer; color: #333; list-style: none; position: relative; padding-right: 20px; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-weight: normal; color: #999; transition: transform 0.2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding-top: 10px; font-size: 14px; color: #555; line-height: 1.5; }