/* 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; }
