.wpAdvQuiz_content > .wpAdvQuiz_quizTitle {
    margin: 0 !important;
    padding: 16px 20px !important;
    border-radius: 12px 12px 0 0;
    background: #17648a;
    color: #fff;
}

.wpAdvQuiz_playArea {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #d9e1ee;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.wpAdvQuiz_playArea > .wpAdvQuiz_reviewDiv {
    box-sizing: border-box;
    flex: 0 0 270px;
    order: 2;
    min-width: 0;
    margin: 0 !important;
    padding: 18px;
    border-left: 1px solid #d9e1ee;
    background: #f5f7fb;
}

.wpAdvQuiz_playArea > .wpAdvQuiz_quiz {
    box-sizing: border-box;
    flex: 1 1 auto;
    order: 1;
    min-width: 0;
    padding: 18px;
}

.wpAdvQuiz_question_page {
    display: inline-block;
    margin: 0 7px 10px 0 !important;
    padding: 5px 10px;
    border: 1px solid #d9e1ee;
    border-radius: 16px;
    background: #f4f6fa;
    color: #41546d;
}

.wpAdvQuiz_questionHeading {
    display: none !important;
}

.wpAdvQuiz_questionCategory {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 10px;
    border: 1px solid #d9e1ee;
    border-radius: 16px;
    background: #f4f6fa;
    color: #172a45;
}

.wpAdvQuiz_reviewHeading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #172a45;
}

.wpAdvQuiz_closePalette {
    display: none;
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: #536782;
    cursor: pointer;
}

.wpAdvQuiz_reviewQuestion {
    box-sizing: border-box;
    max-height: 258px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 8px;
    background: transparent;
    scrollbar-width: thin;
}

.wpAdvQuiz_reviewQuestion ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin: 0 !important;
    padding: 3px !important;
}

.wpAdvQuiz_reviewQuestion ol:after {
    display: none;
}

.wpAdvQuiz_reviewQuestion li {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    height: 36px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d4deed;
    border-radius: 8px;
    background: #fff;
    color: #172a45;
    cursor: pointer !important;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.wpAdvQuiz_reviewQuestion li:hover {
    z-index: 1;
    transform: translateY(-1px);
    border-color: #17648a;
    background: #eaf4f9;
    box-shadow: 0 2px 7px rgba(23, 100, 138, 0.18);
}

.wpAdvQuiz_reviewQuestion li.wpAdvQuiz_reviewItemAnswered {
    border-color: #22984f;
    background: #22984f;
    color: #fff;
}

.wpAdvQuiz_reviewQuestion li.wpAdvQuiz_reviewItemSkipped {
    border-color: #e68a00;
    background: #e68a00;
    color: #fff;
}

.wpAdvQuiz_reviewQuestion li.wpAdvQuiz_reviewItemFlagged {
    border-color: #7851d7;
    background: #7851d7;
    color: #fff;
}

.wpAdvQuiz_reviewQuestion li.wpAdvQuiz_reviewQuestionTarget {
    border: 2px solid #17648a !important;
    background: #17648a !important;
    box-shadow: 0 0 0 2px rgba(23, 100, 138, 0.12);
    color: #fff;
}

.wpAdvQuiz_reviewLegend {
    margin: 10px 0 !important;
    padding: 0 !important;
}

.wpAdvQuiz_reviewLegend ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
}

.wpAdvQuiz_reviewLegend li {
    display: flex;
    align-items: center;
    float: none !important;
    padding: 0 !important;
    color: #52657f;
}

.wpAdvQuiz_reviewColor {
    flex: 0 0 12px;
    width: 12px !important;
    height: 12px !important;
    border-radius: 4px;
}

.wpAdvQuiz_reviewColorNotVisited {
    border: 1px solid #d4deed;
    background: #fff;
}

.wpAdvQuiz_reviewCounts {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 14px;
    color: #52657f;
    font-size: 12px;
}

.wpAdvQuiz_reviewActions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpAdvQuiz_reviewActions input {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    min-height: 38px;
    margin: 0 !important;
    border-radius: 7px !important;
}

.wpAdvQuiz_mobileQuestionControls {
    display: none;
}

label.wpAdvQuiz_answerLabel {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    background: #fff;
    color: #202a36;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

label.wpAdvQuiz_answerLabel input[type="radio"],
label.wpAdvQuiz_answerLabel input[type="checkbox"] {
    display: block !important;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    accent-color: #0067c0;
    cursor: pointer;
}

.wpAdvQuiz_questionList[data-type="single"],
.wpAdvQuiz_questionList[data-type="multiple"] {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.wpAdvQuiz_questionList[data-type="single"] .wpAdvQuiz_questionListItem,
.wpAdvQuiz_questionList[data-type="multiple"] .wpAdvQuiz_questionListItem {
    box-sizing: border-box;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.wpAdvQuiz_questionListItem label.wpAdvQuiz_answerLabel:hover {
    border-color: #8db9e2;
    background: #f5f9fd;
    box-shadow: 0 3px 10px rgba(31, 64, 96, 0.09);
    transform: translateY(-1px);
}

.wpAdvQuiz_questionListItem label.wpAdvQuiz_answerLabel:focus-within {
    outline: 2px solid rgba(0, 103, 192, 0.25);
    outline-offset: 2px;
}

.wpAdvQuiz_questionListItem.wpAdvQuiz_answerSelected label.wpAdvQuiz_answerLabel {
    border-color: #0067c0;
    background: #eff6fc;
    box-shadow: 0 0 0 1px rgba(0, 103, 192, 0.12);
}

.wpAdvQuiz_questionListItem.wpAdvQuiz_answerCorrect label.wpAdvQuiz_answerLabel {
    border-color: #3c9b68 !important;
    background: #eff8f2 !important;
    color: #174d2f;
}

.wpAdvQuiz_questionListItem.wpAdvQuiz_answerIncorrect label.wpAdvQuiz_answerLabel {
    border-color: #d66a6a !important;
    background: #fff2f1 !important;
    color: #782e2e;
}

@media (max-width: 767px) {
    .wpAdvQuiz_content > .wpAdvQuiz_quizTitle {
        padding: 13px 15px !important;
        font-size: 18px;
    }

    .wpAdvQuiz_playArea {
        flex-direction: column;
        overflow: visible;
    }

    .wpAdvQuiz_playArea > .wpAdvQuiz_reviewDiv,
    .wpAdvQuiz_playArea > .wpAdvQuiz_quiz {
        flex: 1 1 auto;
        width: 100%;
        order: initial;
    }

    .wpAdvQuiz_playArea > .wpAdvQuiz_quiz {
        padding: 12px;
    }

    .wpAdvQuiz_playArea > .wpAdvQuiz_reviewDiv {
        display: none !important;
    }

    .wpAdvQuiz_playArea > .wpAdvQuiz_reviewDiv.wpAdvQuiz_mobilePaletteOpen {
        position: fixed;
        z-index: 999999;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex !important;
        flex-direction: column;
        width: auto;
        max-height: 78vh;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 18px 18px 0 0;
        background: #fff;
        box-shadow: 0 0 0 100vmax rgba(17, 27, 43, 0.52);
    }

    .wpAdvQuiz_mobilePaletteOpen .wpAdvQuiz_closePalette {
        display: inline-block;
    }

    .wpAdvQuiz_mobilePaletteOpen .wpAdvQuiz_reviewQuestion {
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
    }

    .wpAdvQuiz_mobilePaletteOpen .wpAdvQuiz_reviewQuestion ol {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .wpAdvQuiz_mobilePaletteOpen .wpAdvQuiz_reviewActions {
        display: none;
    }

    .wpAdvQuiz_mobilePaletteOpen .wpAdvQuiz_reviewCounts {
        margin-bottom: 0;
    }

    .wpAdvQuiz_mobileQuestionControls {
        position: sticky;
        z-index: 5;
        bottom: 0;
        display: block;
        margin: 16px -12px -12px;
        padding: 9px 12px max(9px, env(safe-area-inset-bottom));
        border-top: 1px solid #d9e1ee;
        background: rgba(255, 255, 255, 0.98);
    }

    .wpAdvQuiz_desktopQuestionControls {
        display: none;
    }

    .wpAdvQuiz_mobileNavigation,
    .wpAdvQuiz_mobileReviewActions,
    .wpAdvQuiz_mobileUtilityActions {
        display: flex;
        gap: 7px;
    }

    .wpAdvQuiz_mobileNavigation button,
    .wpAdvQuiz_mobileReviewActions button,
    .wpAdvQuiz_mobileUtilityActions button {
        box-sizing: border-box;
        flex: 1 1 0;
        min-width: 0;
        min-height: 42px;
        padding: 8px 5px;
        border: 1px solid #d9e1ee;
        border-radius: 9px;
        background: #fff;
        color: #172a45;
        font: inherit;
        font-size: 13px;
        line-height: 1.2;
        cursor: pointer;
    }

    .wpAdvQuiz_mobileNavigation .wpAdvQuiz_mobileNext {
        border-color: #17648a;
        background: #17648a;
        color: #fff;
        font-weight: 700;
    }

    .wpAdvQuiz_mobileNavigation .wpAdvQuiz_mobilePalette {
        font-weight: 700;
    }

    .wpAdvQuiz_mobileNavigation button:disabled {
        opacity: 0.45;
        cursor: default;
    }

    .wpAdvQuiz_mobileUtilityActions,
    .wpAdvQuiz_mobileReviewActions {
        margin-top: 8px;
    }

    .wpAdvQuiz_mobileReviewActions button {
        min-height: 38px;
    }

    .wpAdvQuiz_questionCategory {
        margin-bottom: 8px;
        font-size: 13px;
    }
}

.wpAdvQuiz_content input.wpAdvQuiz_button {
    border: 1px solid #0067c0 !important;
    border-radius: 6px !important;
    background-color: #0067c0 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
    text-shadow: none !important;
    filter: none !important;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.wpAdvQuiz_content input.wpAdvQuiz_button:hover {
    border-color: #005a9e !important;
    background-color: #005a9e !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16) !important;
    filter: none !important;
}

.wpAdvQuiz_content input.wpAdvQuiz_button:active {
    border-color: #004578 !important;
    background-color: #004578 !important;
    box-shadow: none !important;
}

.wpAdvQuiz_content input.wpAdvQuiz_button:focus-visible,
.wpAdvQuiz_content input.wpAdvQuiz_button2:focus-visible,
.wpAdvQuiz_content .wpAdvQuiz_reviewActions input:focus-visible,
.wpAdvQuiz_mobileQuestionControls button:focus-visible {
    outline: 2px solid rgba(0, 103, 192, 0.45) !important;
    outline-offset: 2px;
}

.wpAdvQuiz_content input.wpAdvQuiz_button2,
.wpAdvQuiz_content .wpAdvQuiz_reviewActions input {
    border: 1px solid #d1d1d1 !important;
    border-radius: 6px !important;
    background: #f3f3f3 !important;
    color: #202020 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    text-shadow: none !important;
    filter: none !important;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.wpAdvQuiz_content input.wpAdvQuiz_button2:hover,
.wpAdvQuiz_content .wpAdvQuiz_reviewActions input:hover {
    border-color: #bdbdbd !important;
    background: #eaeaea !important;
    color: #202020 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.wpAdvQuiz_mobileQuestionControls .wpAdvQuiz_mobileNavigation .wpAdvQuiz_mobileNext {
    border-color: #0067c0 !important;
    background: #0067c0 !important;
    color: #fff !important;
}

.wpAdvQuiz_mobileQuestionControls .wpAdvQuiz_mobileReviewActions button,
.wpAdvQuiz_mobileQuestionControls .wpAdvQuiz_mobileUtilityActions button {
    border-color: #d5deeb;
    background: #fff;
    color: #27364b;
}

.wpAdvQuiz_mobileQuestionControls .wpAdvQuiz_mobileNavigation button:hover,
.wpAdvQuiz_mobileQuestionControls .wpAdvQuiz_mobileReviewActions button:hover,
.wpAdvQuiz_mobileQuestionControls .wpAdvQuiz_mobileUtilityActions button:hover {
    border-color: #8db9e2;
    background: #f5f9fd;
}

.wpAdvQuiz_mobileQuestionControls .wpAdvQuiz_mobileNavigation .wpAdvQuiz_mobileNext:hover {
    border-color: #005a9e !important;
    background: #005a9e !important;
}
