@import url('./variables.css');

/* FAQ.css */
.mmhd-faq-container {
  max-width: 600px;
  font-family: Arial, sans-serif;
}

.mmhd-faq-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mmhd-faq-item {
  padding: var(--header-padding);
  cursor: pointer;
  padding: 10px 15px;
}

.mmhd-faq-item .mmhd-title-text {
  margin-top: 0;
}

/* .mmhd-faq-item p{
    margin-top: 8px;
} */
.mmhd-faq-item .mmhd-faq-content {
  max-width: 92%;
}

.mmhd-faq-item:hover {
  background-color: #f5f5f5;
}

.mmhd-faq-item svg {
  height: 15px;
  width: 15px;
}

.mmhd-faq-content {
  flex-grow: 1;
}

.mmhd-faq-paragraph {
  font-size: 14px;
  color: #666;
}

.mmhd-faq-icon {
  width: 20px;
  height: 20px;
  margin-left: 15px;
}

.mmhd-faq-item:last-child:not(
    .featured-faq .mmhd-faq-item,
    .single-faq-other-faq-content .mmhd-faq-item
  ) {
  border-bottom: none !important;
}

/* css for search header */
.back-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  margin-bottom: 15px;
}

.mmhd-search-header .mmhd-search-bar input {
  background-color: #fff !important;
  padding: 14px 15px;
  line-height: 18px;
  font-size: 14px;
}

.mmhd-search-header .mmhd-search-bar svg {
  position: absolute;
  right: 10px;
  height: 16px;
  width: 16px;
  top: 50%;
  transform: translate(-50%, -50%);
}

.mmhd-search-header .back-button {
  position: absolute;
  /* left: 18px; */
  top: 20px;
}

.mmhd-search-header {
  padding: 18px 18px 12px 18px;
}

/* css for search header end */

/* css for single faq */
.mmhd-author-avatar img {
  height: 30px;
  width: 30px;
  object-fit: cover;
  border-radius: 50%;
}

.mmhd-single-faq-footer {
  padding-left: 10px;
  padding-right: 10px;
  margin: 30px 0;
}

.mmhd-faq-actions {
  gap: 40px;
  margin-bottom: 15px;
}

.mmhd-faq-actions svg path {
  fill: #555555;
}

.liked svg path {
  fill: var(--primary-blue);
}

.disliked svg path {
  fill: #ef2c3f;
}

.single-faq-content {
  flex: 1;
  overflow-y: auto;
  min-height: 250px;
}

.single-faq-content p a {
  text-decoration: underline !important;
  /* background: url(../images/copy-icon.svg) no-repeat right center;
  padding-right: 20px;
  background-size: 22%; */
}

.mmhd-faq-content .mmhd-faq-title {
  margin: 8px 0;
}

.mmhd-wiki-wrap {
  /* max-height: 320px; */
  max-height: calc(100% - 245px);
  overflow: auto;
}

.single-faq-content .wp-block-image img,
.mmhd-notice-item .wp-block-image img {
  margin: 15px 0;
}

.single-faq-content iframe {
  width: 100%;
  min-height: 250px;
  margin: 15px 0;
}

.single-faq-other-faq-content .mmhd-faq-item {
  border: 1px solid var(--border-light-gray);
  border-radius: 15px;
}

.mmhd-main-content .mmhd-conversation-fixed-bottm {
  position: relative;
  left: auto;
  bottom: auto;
  border-top: 1px solid var(--border-light-gray);
  margin-bottom: 15px;
}

.chat-disabled .mmhd-conversation-fixed-bottm {
  display: none;
}

.chat-disabled .mmhd-main-content {
  padding-bottom: 100px;
}

/* ============================================================
   FAQ Shortcode (namespaced to avoid collision)
   ============================================================ */
.mmhd-shortcode-faq-container {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.mmhd-shortcode-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
}

.mmhd-shortcode-faq-question {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  justify-content: space-between;
  align-items: center;
}

.mmhd-shortcode-faq-question[aria-expanded="true"] {
  background: none;
}

.mm-faq-icon {
  font-size: 18px;
  line-height: 1;
  color: #64748b;
}

.mmhd-shortcode-faq-answer {
  display: block;
  clear: both;
  padding: 0 16px 14px;
  color: #334155;
  line-height: 1.7;
  font-weight: normal;
  font-size: 14px;
  margin-top: 12px;
}

.mmhd-shortcode-faq-mode-accordion .mmhd-shortcode-faq-answer {
  border-top: 1px solid #f1f5f9;
}

.mmhd-shortcode-faq-answer[hidden] {
  display: none !important;
}

.mmhd-shortcode-faq-qa-item {
  margin-bottom: 18px;
  padding-bottom: 16px;
  display: block;
}

.mmhd-shortcode-faq-qa-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.mmhd-shortcode-faq-mode-accordion .mmhd-shortcode-faq-question {
  font-size: 16px;
  margin: 0;
  color: #0f172a;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mmhd-shortcode-faq-mode-qa .mmhd-shortcode-faq-question {
  font-size: 18px;
  margin: 0 0 10px;
  color: #0f172a;
  font-weight: bold;
  display: block;
  clear: both;
}
