/* Local FAQ suggestions on the ticket form. */
.ticket-faq-hint[hidden], .ticket-faq-hint [hidden], .ticket-faq-bubble [hidden] { display: none !important; }
.ticket-faq-hint {
  border: 1px solid var(--teal-100);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 22px;
  background: var(--teal-50);
  color: var(--teal-900);
}
.ticket-faq-hint-heading { display: flex; align-items: center; gap: 9px; }
.ticket-faq-hint-heading .icon { width: 19px; height: 19px; flex: 0 0 19px; }
.ticket-faq-hint-heading h2 { font-size: 15px; line-height: 1.5; margin: 0; color: inherit; }
.ticket-faq-hint > p { margin: 6px 0 12px; font-size: 13px; line-height: 1.6; }
.ticket-faq-hint-list { display: grid; gap: 7px; }
.ticket-faq-hint-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 10px 12px; border: 1px solid #d6e7e3; border-radius: 10px;
  background: #fff; color: var(--teal-900); text-align: left; cursor: pointer; font: inherit;
}
.ticket-faq-hint-item span { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ticket-faq-hint-item small { font-size: 12px; white-space: nowrap; }
.ticket-faq-hint-item:hover { border-color: var(--teal-700); background: #fbfdfc; }
.ticket-faq-hint .ticket-faq-resolved { margin: 12px 0 0; font-weight: 600; }
dialog.ticket-faq-bubble {
  position: fixed; inset: auto 24px 24px auto; margin: 0; width: 450px;
  max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); max-height: min(680px, calc(100dvh - 48px));
  padding: 0; border: 1px solid var(--teal-100); border-radius: 22px 22px 6px 22px;
  background: #fff; color: var(--ink); box-shadow: 0 12px 55px #143b3833, 0 2px 8px #143b381a;
  overflow: hidden; z-index: 1100;
}
dialog.ticket-faq-bubble[open] { display: flex; flex-direction: column; }
.ticket-faq-bubble::backdrop { background: transparent; }
.ticket-faq-bubble-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; flex: 0 0 auto; background: var(--teal-50); border-bottom: 1px solid #dceae6;
}
.ticket-faq-bubble-header h2 { margin: 0; font-size: 16px; line-height: 1.4; color: var(--teal-900); }
.ticket-faq-bubble-close {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid #d5e4df; border-radius: 50%; background: #fff; color: var(--teal-900);
  font: inherit; font-size: 24px; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.ticket-faq-bubble-body { padding: 17px 20px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.ticket-faq-bubble-intro { margin: 0 0 16px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.ticket-faq-alternatives { margin-bottom: 16px; border-bottom: 1px solid #e2ebe7; padding-bottom: 12px; }
.ticket-faq-alternatives summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--teal-900); }
.ticket-faq-result-list { display: grid; gap: 6px; padding-top: 10px; }
.ticket-faq-result {
  text-align: left; font: inherit; font-size: 13px; line-height: 1.6;
  padding: 8px 10px; border-radius: 8px; border: 1px solid #dceae6;
  background: #f7faf8; color: var(--teal-900); cursor: pointer; overflow-wrap: anywhere;
}
.ticket-faq-result[aria-pressed="true"] { border-color: var(--teal-700); background: #eaf5f0; font-weight: 600; }
.ticket-faq-answer-category { margin: 0 0 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6c837b; }
.ticket-faq-answer h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.45; color: var(--teal-900); overflow-wrap: anywhere; }
.ticket-faq-answer-text { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.ticket-faq-answer-text p { margin: 0 0 12px; }
.ticket-faq-answer-text ul, .ticket-faq-answer-text ol { margin: 0 0 12px; padding-left: 22px; }
.ticket-faq-answer-text h2, .ticket-faq-answer-text h3, .ticket-faq-answer-text h4 { font-size: 15px; margin: 14px 0 7px; }
.ticket-faq-answer-text a, .ticket-faq-video-link, .ticket-faq-portal-link { color: var(--teal-800); text-decoration: underline; text-underline-offset: 3px; }
.ticket-faq-video-link, .ticket-faq-portal-link { display: inline-block; margin-top: 10px; font-size: 12px; line-height: 1.6; }
.ticket-faq-bubble-footer {
  flex: 0 0 auto; display: grid; gap: 8px; padding: 14px 18px;
  border-top: 1px solid #e2ebe7; background: #fafcfb;
}
.ticket-faq-bubble-footer button {
  width: 100%; padding: 10px 14px; border-radius: 11px; font: inherit; font-size: 13px;
  line-height: 1.5; font-weight: 600; cursor: pointer;
}
.ticket-faq-done { border: 1px solid var(--teal-900); background: var(--teal-900); color: #fff; }
.ticket-faq-proceed { border: 1px solid #d2ddd7; background: #fff; color: var(--teal-900); }
.ticket-faq-bubble-footer .ticket-faq-back { padding: 4px 8px; border: 0; background: transparent; color: var(--muted); font-weight: 400; }
.ticket-faq-bubble button:hover { filter: brightness(.97); }
.ticket-faq-hint button:focus-visible, .ticket-faq-bubble button:focus-visible,
.ticket-faq-bubble a:focus-visible, .ticket-faq-bubble summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (max-width: 600px) {
  dialog.ticket-faq-bubble { inset: auto 16px 16px auto; width: calc(100vw - 32px); max-height: 68vh; max-height: 68dvh; border-radius: 20px 20px 6px 20px; }
  .ticket-faq-bubble-header { padding: 12px 15px; }
  .ticket-faq-bubble-body { padding: 14px 16px; }
  .ticket-faq-bubble-footer { padding: 12px 15px; }
  .ticket-faq-hint-item { align-items: flex-start; flex-direction: column; gap: 3px; }
}
