/* Social Quiz Pro 1.7.5: accessible knowledge-answer reveal.
 * Keep scoring and social-share controls in the original quiz engine. */
.sqb-container[data-quiz-type="knowledge"] .sqb-question-view.sqb-has-feedback .sqb-answer-description {
    display: none !important; /* Correct-answer explanation is shown once, in the dedicated panel. */
}
.sqb-container[data-quiz-type="knowledge"] .sqb-answers.sqb-image-grid .sqb-answer-button.is-correct,
.sqb-container[data-quiz-type="knowledge"] .sqb-answers:not(.sqb-image-grid) .sqb-answer-button.is-correct {
    background: #124f37 !important;
    border: 3px solid #3ee29d !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .2), 0 10px 22px rgba(0,0,0,.18) !important;
    opacity: 1 !important;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-answers.sqb-image-grid .sqb-answer-button.is-incorrect,
.sqb-container[data-quiz-type="knowledge"] .sqb-answers:not(.sqb-image-grid) .sqb-answer-button.is-incorrect {
    background: #6f262d !important;
    border: 3px solid #ff707c !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .17), 0 10px 22px rgba(0,0,0,.12) !important;
    opacity: 1 !important;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-answers .sqb-answer-button.is-correct .sqb-answer-marker,
.sqb-container[data-quiz-type="knowledge"] .sqb-answers .sqb-answer-button.is-incorrect .sqb-answer-marker {
    background: #073824 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-answers .sqb-answer-button.is-incorrect .sqb-answer-marker {
    background: #7f1d1d !important;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-answer-feedback {
    box-sizing: border-box;
    width: 100%;
    margin: 16px 0 0;
    padding: clamp(14px, 3vw, 20px);
    border: 1px solid #3ee29d;
    border-left: 5px solid #3ee29d;
    border-radius: 13px;
    background: #123b2d;
    color: #fff;
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-answer-feedback.sqb-feedback-bad {
    border-color: #ff8995;
    border-left-color: #ff8995;
    background: #3e242a;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-feedback-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(17px, 2.5vw, 21px);
    line-height: 1.3;
    font-weight: 850;
    color: #fff;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-feedback-heading > span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #3ee29d;
    color: #092518;
    font-size: 19px;
    font-weight: 900;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-feedback-bad .sqb-feedback-heading > span {
    background: #ff8995;
    color: #3f0d16;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-answer-feedback p {
    margin: 8px 0 0;
    color: #fff;
    font-size: inherit;
    line-height: 1.55;
}
.sqb-container[data-quiz-type="knowledge"] .sqb-answer-feedback strong { color: #fff; }
.sqb-container[data-quiz-type="knowledge"] .sqb-feedback-next {
    display: block;
    margin: 18px auto 0;
    min-height: 48px;
    max-width: 100%;
}
@media (max-width: 500px) {
    .sqb-container[data-quiz-type="knowledge"] .sqb-answer-feedback { margin-top: 12px; }
    .sqb-container[data-quiz-type="knowledge"] .sqb-feedback-next { width: 100%; }
}

/* 1.7.6 bridge: render readable feedback above the Next control even if old frontend.css is cached. */
.sqb-container[data-quiz-type="knowledge"] .sqb-feedback-bridge-panel { display:block !important; visibility:visible !important; opacity:1 !important; }
.sqb-container[data-quiz-type="knowledge"] .sqb-feedback-bridge-next { display:block !important; visibility:visible !important; opacity:1 !important; cursor:pointer; }
.sqb-container.sqb-feedback-bridge-active .sqb-answer-button.is-correct { border-color:#3ee29d !important; background:#124f37 !important; color:#fff !important; opacity:1 !important; }
.sqb-container.sqb-feedback-bridge-active .sqb-answer-button.is-incorrect { border-color:#ff707c !important; background:#6f262d !important; color:#fff !important; opacity:1 !important; }
.sqb-container.sqb-feedback-bridge-advancing .sqb-answer-feedback:not(.sqb-feedback-bridge-panel),
.sqb-container.sqb-feedback-bridge-advancing .sqb-feedback-next:not(.sqb-feedback-bridge-next) { display:none !important; }
.sqb-container .sqb-feedback-bridge-debug { font-size:12px; }

/* Social Quiz Pro 1.7.8: full-screen, scroll-safe feedback dialog. */
.sqb-feedback-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  box-sizing: border-box !important;
  background: rgba(8, 11, 21, .82) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  isolation: isolate;
}
.sqb-feedback-modal-backdrop * { box-sizing: border-box; }
.sqb-feedback-modal {
  display: flex !important;
  flex-direction: column !important;
  width: min(100%, 490px) !important;
  max-height: min(90vh, 760px) !important;
  max-height: min(90dvh, 760px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #f8fafc !important;
  background: #20232d !important;
  border: 1px solid #3ee29d !important;
  border-top: 4px solid #3ee29d !important;
  border-radius: 18px !important;
  box-shadow: 0 25px 85px rgba(0,0,0,.68),0 0 0 1px rgba(255,255,255,.05) !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sqb-feedback-modal.sqb-feedback-bad { border-color: #ff8995 !important; }
.sqb-feedback-modal-header {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  text-align: center; padding: 19px 20px 11px; flex-shrink: 0;
}
.sqb-feedback-modal-icon {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  background: #3ee29d; color: #0b251b; border-radius: 50%;
  font-size: 23px; font-weight: 900; line-height: 1;
}
.sqb-feedback-modal.sqb-feedback-bad .sqb-feedback-modal-icon { background: #ff8995; color: #450d17; }
.sqb-feedback-modal-title {
  margin: 0 !important; padding: 0 !important;
  color: #fff !important; text-align: center !important;
  font-size: clamp(21px, 5vw, 26px) !important; font-weight: 800 !important;
  line-height: 1.2 !important;
}
.sqb-feedback-modal-content {
  min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 24px 16px; text-align: center; scrollbar-width: thin;
}
.sqb-feedback-modal-picture {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; width: min(100%, 355px); min-height: 0;
  margin: 0 auto 14px; background: #151820;
  border: 2px solid #3ee29d; border-radius: 13px;
}
.sqb-feedback-modal-picture img {
  display: block !important;
  width: 100% !important; height: auto !important;
  max-height: min(29dvh, 240px) !important;
  object-fit: contain !important;
}
.sqb-feedback-modal-answer {
  margin: 2px 0 9px !important; color: #f8fafc !important;
  font-size: clamp(15px, 3.8vw, 19px) !important; line-height: 1.45 !important;
}
.sqb-feedback-modal-answer strong { color: #7cf4c2 !important; font-weight: 800; }
.sqb-feedback-modal-explanation {
  margin: 0 auto !important; color: #d5dbe7 !important;
  font-size: clamp(14px, 3.4vw, 16px) !important; line-height: 1.55 !important;
  max-width: 42ch; overflow-wrap: anywhere;
}
.sqb-feedback-modal-footer {
  flex: 0 0 auto; padding: 15px 22px 20px;
  border-top: 1px solid rgba(255,255,255,.09); background: #20232d;
}
.sqb-feedback-modal-next {
  display: block !important; width: 100% !important; min-height: 48px !important;
  margin: 0 !important; padding: 11px 18px !important;
  border: 0 !important; border-radius: 10px !important;
  background: #3b96ee !important; color: #fff !important;
  font-size: 16px !important; font-weight: 800 !important; line-height: 1.35 !important;
  cursor: pointer !important;
}
.sqb-feedback-modal-next:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; }
.sqb-feedback-modal-next:hover:not(:disabled) { background: #277dcc !important; }
.sqb-feedback-modal-next:disabled { opacity: .65; cursor: wait !important; }
@media (max-width: 500px) {
  .sqb-feedback-modal { width: min(100%, 430px) !important; border-radius: 15px !important; }
  .sqb-feedback-modal-header { padding: 15px 12px 9px; }
  .sqb-feedback-modal-content { padding: 4px 16px 14px; }
  .sqb-feedback-modal-picture { width: min(100%, 295px); margin-bottom: 10px; }
  .sqb-feedback-modal-picture img { max-height: min(26dvh, 180px) !important; }
  .sqb-feedback-modal-footer { padding: 12px 16px 16px; }
}
@media (max-height: 540px) {
  .sqb-feedback-modal-header { padding: 10px 12px 7px; }
  .sqb-feedback-modal-picture img { max-height: 22dvh !important; }
  .sqb-feedback-modal-footer { padding: 10px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) { .sqb-feedback-modal-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; } }
