/* WS IELTS Exam Suite — computer-delivered IELTS-style player. */
:root {
  --cbt-red:#dc0b21;
  --cbt-ink:#000;
  --cbt-muted:#535353;
  --cbt-blue:#418ec8;
  --cbt-green:#358e14;
  --cbt-soft:#f1f2ec;
  --cbt-line:#c1c1c1;
  --cbt-hover:#e4e4e4;
}

html.ielts-exam-active { margin-top:0 !important; overflow:hidden !important; }
body.ielts-cbt-exact {
  margin:0 !important;
  overflow:hidden !important;
  background:#fff !important;
  color:var(--cbt-ink) !important;
  font-family:Arial,sans-serif !important;
  font-size:16px !important;
  line-height:1.5 !important;
}

body.ielts-cbt-exact #wpadminbar,
body.ielts-cbt-exact .ld-focus-header,
body.ielts-cbt-exact .ld-focus-sidebar,
body.ielts-cbt-exact header.site-header,
body.ielts-cbt-exact footer.site-footer,
body.ielts-cbt-exact .ld-focus-content > h1,
body.ielts-cbt-exact .ld-tabs,
body.ielts-cbt-exact .ld-content-actions,
body.ielts-cbt-exact .learndash-wrapper > .ld-alert,
body.ielts-cbt-exact .wpProQuiz_reviewDiv.ielts-native-nav,
body.ielts-cbt-exact .wpProQuiz_time_limit,
body.ielts-cbt-exact .wpProQuiz_quiz > .wpProQuiz_button,
body.ielts-cbt-exact .wpProQuiz_listItem > .wpProQuiz_QuestionButton,
body.ielts-cbt-exact .wpProQuiz_listItem > .wpProQuiz_header,
body.ielts-cbt-exact .wpProQuiz_listItem > .wpProQuiz_question_page,
body.ielts-cbt-exact .wpProQuiz_QuestionButton,
body.ielts-cbt-exact .ld-quiz-question-item__status,
body.ielts-cbt-exact .ielts-cbt-flag { display:none !important; }

body.ielts-cbt-exact .ld-focus,
body.ielts-cbt-exact .ld-focus-main,
body.ielts-cbt-exact .ld-focus-content,
body.ielts-cbt-exact .learndash-wrapper,
body.ielts-cbt-exact .wpProQuiz_content,
body.ielts-cbt-exact .wpProQuiz_quiz {
  position:static !important;
  width:100% !important;
  max-width:none !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Header: 56 px, matching the official player. */
.ielts-cbt-header {
  position:fixed;
  inset:0 0 auto 0;
  z-index:100050;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  border-bottom:1px solid #d7d7d7;
  background:#fff;
  color:#000;
}
.ielts-cbt-identity { display:flex; align-items:center; gap:31px; min-width:0; }
.ielts-cbt-logo { width:94px; color:var(--cbt-red); font-size:31px; font-weight:800; line-height:1; letter-spacing:-1.8px; }
.ielts-cbt-logo sup { position:relative; top:-1.9em; margin-left:1px; font-size:7px; }
.ielts-cbt-id { display:flex; flex-direction:column; font-size:16px; line-height:18px; }
.ielts-cbt-id b { font-weight:700; }
.ielts-cbt-id small { display:none; }
.ielts-cbt-audio-state { min-height:15px; font-size:13px; font-weight:400; line-height:15px; }
.ielts-cbt-tools { display:flex; align-items:center; }
.ielts-cbt-status,
.ielts-cbt-icon {
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#333;
  transition:background-color .1s linear;
}
.ielts-cbt-icon { cursor:pointer; }
.ielts-cbt-icon:hover { background:var(--cbt-hover); }
.ielts-cbt-tools svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Full-screen official Options flow. */
.ielts-options-overlay[hidden] { display:none !important; }
.ielts-options-overlay {
  position:fixed;
  inset:0;
  z-index:100180;
  overflow:auto;
  background:#fff;
  color:#000;
  font-family:Arial,sans-serif;
}
.ielts-options-header { position:relative; height:66px; display:flex; align-items:center; justify-content:center; }
.ielts-options-header h1 { margin:0; font-size:28px; line-height:34px; font-weight:400; }
.ielts-options-close,.ielts-options-back {
  position:absolute;
  top:0;
  height:66px;
  display:flex;
  align-items:center;
  border:0;
  background:transparent;
  color:#000;
  cursor:pointer;
}
.ielts-options-close { right:0; width:66px; justify-content:center; }
.ielts-options-back { left:0; gap:9px; padding:0 22px; font:16px Arial,sans-serif; }
.ielts-options-close:hover,.ielts-options-back:hover { background:#e8e8e8; }
.ielts-options-close svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:3.2; }
.ielts-options-back svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2.4; }
.ielts-options-main { width:min(698px,calc(100% - 32px)); margin:15px auto 60px; }
.ielts-options-list { overflow:hidden; border:1px solid #c8c8c8; border-radius:4px; background:#fff; }
.ielts-options-row,.ielts-options-choice {
  box-sizing:border-box;
  width:100%;
  min-height:75px;
  display:grid;
  align-items:center;
  border:0;
  border-bottom:1px solid #c8c8c8;
  border-radius:0;
  background:#fff;
  color:#000;
  cursor:pointer;
  text-align:left;
  font:17.6px/24px Arial,sans-serif;
}
.ielts-options-row:last-child,.ielts-options-choice:last-child { border-bottom:0; }
.ielts-options-row { grid-template-columns:44px minmax(0,1fr) 25px; padding:0 35px; }
.ielts-options-row.is-primary { margin:-1px; width:calc(100% + 2px); min-height:77px; border:0; background:#e31837; color:#fff; }
.ielts-options-row:hover,.ielts-options-choice:hover { background:#e8e8e8; }
.ielts-options-row.is-primary:hover { background:#c91631; }
.ielts-options-leading,.ielts-options-trailing { display:flex; align-items:center; }
.ielts-options-leading svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:2; }
.ielts-options-trailing { justify-content:flex-end; }
.ielts-options-trailing svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:3; }
.ielts-options-choice { grid-template-columns:47px 1fr; padding:0 35px; }
.ielts-options-check { display:flex; align-items:center; }
.ielts-options-check svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.5; }
.ielts-options-choice[aria-pressed="true"] { background:#f3f3f3; font-weight:700; }

/* Notes sidebar and text annotation tools. */
.ielts-notes-sidebar[hidden] { display:none !important; }
.ielts-notes-sidebar {
  position:fixed;
  inset:0 0 0 auto;
  z-index:100160;
  box-sizing:border-box;
  width:300px;
  height:100vh;
  overflow:auto;
  background:#e8e8e8;
  color:#000;
  font-family:Arial,sans-serif;
  box-shadow:-1px 0 0 rgba(0,0,0,.18);
}
.ielts-notes-head { height:56px; display:flex; align-items:center; justify-content:space-between; padding-left:20px; border-bottom:1px solid #c8c8c8; }
.ielts-notes-head strong { font-size:18px; }
.ielts-notes-head button { width:56px; height:56px; display:flex; align-items:center; justify-content:center; padding:0; border:0; background:transparent; color:#000; cursor:pointer; }
.ielts-notes-head button:hover { background:#d2d2d2; }
.ielts-notes-head svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.7; }
.ielts-notes-body { padding:24px 18px; }
.ielts-notes-empty { min-height:190px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#555; text-align:center; font-size:14px; line-height:20px; }
.ielts-notes-empty strong { color:#000; font-size:16px; }
.ielts-notes-list { display:flex; flex-direction:column; gap:16px; }
.ielts-note-card { overflow:hidden; border:1px solid #b9b9b9; border-radius:3px; background:#fff; }
.ielts-note-quote { width:100%; display:flex; flex-direction:column; gap:3px; padding:11px 12px; border:0; border-bottom:1px solid #d3d3d3; background:#f7f7f7; color:#000; cursor:pointer; text-align:left; }
.ielts-note-quote small { color:#666; font-size:12px; }
.ielts-note-quote span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:14px; }
.ielts-note-card textarea { box-sizing:border-box; width:100% !important; min-height:105px !important; margin:0 !important; padding:12px !important; border:0 !important; border-radius:0 !important; background:#fff !important; color:#000 !important; box-shadow:none !important; resize:vertical; font:14px/20px Arial,sans-serif !important; }
.ielts-note-card textarea:focus { outline:2px solid #418ec8 !important; outline-offset:-2px; }
.ielts-note-delete { display:flex; align-items:center; gap:6px; margin:0 8px 8px auto; padding:5px 8px; border:0; background:transparent; color:#555; cursor:pointer; font:13px Arial,sans-serif; }
.ielts-note-delete:hover { background:#eee; color:#000; }
.ielts-note-delete svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; }
.ielts-selection-menu {
  position:fixed;
  z-index:100170;
  display:flex;
  min-height:53px;
  padding:0 4px;
  border:1px solid #aaa;
  border-radius:2px;
  background:#fff;
  color:#737373;
  box-shadow:0 2px 5px rgba(0,0,0,.22);
}
.ielts-selection-menu::before { content:""; position:absolute; top:-7px; left:50%; width:12px; height:12px; transform:translateX(-50%) rotate(45deg); border-top:1px solid #aaa; border-left:1px solid #aaa; background:#fff; }
.ielts-selection-menu button { position:relative; z-index:1; min-width:49px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:7px 8px 5px; border:0; background:transparent; color:#737373; cursor:pointer; font:12px/12px Arial,sans-serif; }
.ielts-selection-menu button:hover { color:#000; background:#eee; }
.ielts-selection-menu button svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; }
.ielts-selection-menu--delete button { min-width:132px; flex-direction:row; font-size:12px; }
.ielts-user-highlight { background:#7d4a5a; color:#fff; cursor:pointer; }
.ielts-user-highlight.is-note { box-shadow:inset 0 -2px 0 #e31837; }
.ielts-user-highlight.is-pulsing { animation:ielts-note-pulse .7s ease; }
@keyframes ielts-note-pulse { 50% { background:#e31837; } }
body.ielts-notes-open .ielts-cbt-header,body.ielts-notes-open .ielts-cbt-partbar,body.ielts-notes-open .ielts-cbt-workspace,body.ielts-notes-open .ielts-cbt-footer { right:300px; }
body.ielts-notes-open .ielts-cbt-arrows { right:332px; }

/* Part instruction banner. */
.ielts-cbt-partbar {
  position:fixed;
  top:72px;
  right:16px;
  left:16px;
  z-index:100040;
  height:72px;
  display:flex;
  align-items:center;
  padding:0 16px;
  border:1px solid #d5d5d5;
  border-radius:4px;
  background:var(--cbt-soft);
}
.ielts-cbt-partcopy { display:flex; flex-direction:column; font-size:16px; line-height:24px; }
.ielts-cbt-partcopy strong { font-size:16px; font-weight:700; }
.ielts-cbt-timer {
  position:absolute;
  top:50%;
  left:50%;
  display:block;
  min-width:96px;
  transform:translate(-50%,-50%);
  color:#000;
  text-align:center;
  font:700 20px/28px Arial,sans-serif;
  font-variant-numeric:tabular-nums;
}
.ielts-cbt-review-toggle {
  position:absolute;
  top:50%;
  right:16px;
  min-height:40px;
  display:flex;
  align-items:center;
  gap:8px;
  transform:translateY(-50%);
  padding:7px 11px;
  border:1px solid #8d8d8d;
  border-radius:3px;
  background:#fff;
  color:#333;
  cursor:pointer;
  font:14px Arial,sans-serif;
}
.ielts-cbt-review-toggle:hover { border-color:#d71920; background:#fff1f2; }
.ielts-cbt-review-toggle.is-active { border-color:#d71920; background:#d71920; color:#fff; }
.ielts-cbt-review-toggle svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; }
.ielts-cbt-timer[hidden] { display:none !important; }
.ielts-cbt-partbar.is-time-warning { animation:ieltsTimeWarningFlash .6s ease-in-out var(--ws-ielts-warning-blinks,3) forwards; border-color:var(--ws-ielts-warning-color,#d71920); background:var(--ws-ielts-warning-color,#d71920); color:#fff; }
.ielts-cbt-partbar.is-time-warning .ielts-cbt-timer { color:#fff; }
.ielts-cbt-partbar.is-time-warning .ielts-cbt-review-toggle { border-color:#fff; }
@keyframes ieltsTimeWarningFlash {
  0%,100% { border-color:var(--ws-ielts-warning-color,#d71920); background:var(--ws-ielts-warning-color,#d71920); color:#fff; }
  50% { border-color:#d5d5d5; background:var(--cbt-soft); color:#000; }
}

/* Start screen. */
body.ielts-cbt-exact:not(.ielts-quiz-started) .ld-focus-main { padding-top:144px !important; }
body.ielts-cbt-exact:not(.ielts-quiz-started) .wpProQuiz_text,
body.ielts-cbt-exact:not(.ielts-quiz-started) .wpProQuiz_loadQuiz { max-width:620px !important; margin:60px auto !important; padding:34px !important; border:1px solid var(--cbt-line) !important; background:#fff !important; }
body.ielts-cbt-exact:not(.ielts-quiz-started) .wpProQuiz_button { min-height:44px !important; padding:0 24px !important; border:0 !important; border-radius:3px !important; background:#000 !important; color:#fff !important; font-weight:700 !important; }

/* Two independently scrolling reading panes. */
.ielts-cbt-workspace {
  --ielts-left:50%;
  position:fixed;
  top:160px;
  right:0;
  bottom:70px;
  left:0;
  z-index:10000;
  display:grid;
  grid-template-columns:minmax(0,var(--ielts-left)) 2px minmax(0,1fr);
  overflow:hidden;
  background:#fff;
}
.ielts-cbt-workspace--listening,.ielts-cbt-workspace--writing { grid-template-columns:1fr; }
.ielts-cbt-passage,.ielts-cbt-questions { min-width:0; height:100%; overflow:auto; overscroll-behavior:contain; scrollbar-color:rgba(0,0,0,.4) transparent; scrollbar-width:auto; background:#fff; }
.ielts-cbt-passage { padding:32px 49px 64px 33px; font-size:16px; line-height:24px; }
.ielts-cbt-passage p { margin:0 0 16px; }
.ielts-cbt-passage h1,.ielts-cbt-passage h2,.ielts-cbt-passage h3 { margin:28px 0 16px; font-size:22px; line-height:1.25; }
.ielts-cbt-divider { position:relative; z-index:5; cursor:col-resize; background:rgba(0,0,0,.5); }
.ielts-cbt-divider::after { content:"↔"; position:absolute; top:50%; left:50%; width:36px; height:36px; display:flex; align-items:center; justify-content:center; transform:translate(-50%,-50%); border:2px solid #666; background:#f9f9f9; color:#535353; font-size:18px; }
.ielts-cbt-divider.is-dragging::after { background:#535353; color:#fff; }
.ielts-cbt-questions { position:relative; padding:16px 0 48px; }
.ielts-cbt-questions--single { width:100%; margin:0; border:0; }

body.learndash-cpt-sfwd-quiz.ielts-cbt-exact .ielts-cbt-questions > .wpProQuiz_list { display:block !important; width:100% !important; margin:0 !important; padding:0 33px 40px 17px !important; list-style:none !important; }
body.ielts-cbt-exact .wpProQuiz_listItem { position:relative !important; display:block !important; width:100% !important; min-height:0 !important; margin:0 0 28px !important; padding:0 !important; border:0 !important; border-radius:0 !important; background:#fff !important; box-shadow:none !important; opacity:1 !important; }
body.ielts-cbt-exact .wpProQuiz_listItem.ielts-question-group-start { margin-top:12px !important; }
body.ielts-cbt-exact .wpProQuiz_question { min-width:0 !important; margin:0 !important; padding:0 !important; border:0 !important; }
body.ielts-cbt-exact .wpProQuiz_question_text { display:block !important; width:100% !important; margin:0 0 8px !important; padding:0 !important; color:#000 !important; font-size:16px !important; line-height:24px !important; font-weight:400 !important; }
body.ielts-cbt-exact .wpProQuiz_question_text p { margin:0 0 8px !important; font-weight:400 !important; }
body.ielts-cbt-exact .wpProQuiz_question_text strong { font-weight:700 !important; }
body.ielts-cbt-exact .wpProQuiz_questionList { display:block !important; margin:8px 0 0 !important; padding:0 !important; border:0 !important; background:transparent !important; }
body.ielts-cbt-exact .wpProQuiz_questionListItem { position:relative !important; min-height:0 !important; margin:0 !important; padding:0 !important; border:0 !important; background:transparent !important; }
body.ielts-cbt-exact .wpProQuiz_questionListItem label { display:flex !important; align-items:center !important; gap:7px !important; min-height:45px !important; margin:0 !important; padding:8px 10px !important; border:0 !important; border-radius:0 !important; background:transparent !important; color:#000 !important; font-size:16px !important; line-height:24px !important; cursor:pointer !important; }
body.ielts-cbt-exact .wpProQuiz_questionListItem label:hover { background:var(--cbt-hover) !important; }
body.ielts-cbt-exact .wpProQuiz_questionInput[type="radio"],body.ielts-cbt-exact .wpProQuiz_questionInput[type="checkbox"] { width:13px !important; height:13px !important; flex:0 0 13px !important; margin:0 !important; accent-color:#000 !important; }

/* Official small inline blanks. */
.ielts-inline-gap { display:inline-block; vertical-align:middle; margin:1px 10px; }
body.ielts-cbt-exact .ielts-inline-gap .ielts-inline-display-input { box-sizing:border-box !important; width:134px !important; max-width:134px !important; height:26px !important; min-height:26px !important; flex:0 0 134px !important; margin:0 !important; padding:1px 7px !important; border:1px solid #595959 !important; border-radius:4px !important; background:#fff !important; color:#000 !important; box-shadow:none !important; font:700 16px/22px Arial,sans-serif !important; text-align:center !important; }
body.ielts-cbt-exact .ielts-inline-gap .ielts-inline-display-input:hover { border-color:#309bec !important; }
body.ielts-cbt-exact .ielts-inline-gap .ielts-inline-display-input:focus { border:2px solid var(--cbt-blue) !important; outline:0 !important; }
body.ielts-cbt-exact .wpProQuiz_questionList.ielts-inline-native-list { display:none !important; }
body.ielts-cbt-exact textarea.wpProQuiz_questionInput,body.ielts-cbt-exact .wpProQuiz_questionList textarea { width:100% !important; min-height:330px !important; margin:8px 0 !important; padding:12px !important; border:1px solid #595959 !important; border-radius:4px !important; background:#fff !important; color:#000 !important; box-shadow:none !important; font:16px/24px Arial,sans-serif !important; }
body.ielts-cbt-exact textarea:focus { border:2px solid var(--cbt-blue) !important; outline:0 !important; }

/* Matching headings / Drag & Drop. */
.ielts-dnd-primary { padding-top:0 !important; }
body.ielts-cbt-exact .wpProQuiz_listItem.ielts-dnd-secondary { display:none !important; }
.ielts-dnd-native-inputs { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
.ielts-dnd-bank { margin:18px 0 8px; padding:0; border:0; background:#fff; }
.ielts-dnd-bank h3 { margin:0 0 8px; text-align:left; font-size:16px; line-height:18px; }
.ielts-dnd-options { display:flex; flex-direction:column; align-items:flex-start; gap:0; }
.ielts-dnd-bank-slot { display:flex; align-items:flex-start; width:100%; min-height:35px; }
.ielts-dnd-card { display:flex; align-items:center; width:auto; max-width:100%; min-height:24px; margin:3px 3px 8px; padding:1px 9px; border:1px solid #919191; border-radius:4px; background:#fff; color:#000; text-align:left; font:700 17.6px/20px Arial,sans-serif; cursor:move; box-shadow:none; }
.ielts-dnd-card:hover,.ielts-dnd-card.is-selected { border-color:#0e98f0; background:#fff; box-shadow:0 3px 6px rgba(0,0,0,.1),0 3px 6px rgba(0,0,0,.15); }
.ielts-dnd-card.is-dragging { opacity:.48; }
.ielts-dnd-dropzone { position:relative; width:100%; min-height:24px; margin:1px 0 4px; display:inline-flex; align-items:center; justify-content:center; padding:0; border:2px dashed var(--cbt-blue); border-radius:5px; background:#fff; color:#000; cursor:pointer; font:16px/24px Arial,sans-serif; }
.ielts-dnd-dropzone.is-over { border-color:#fa5101; background:rgba(0,0,0,.1); }
.ielts-dnd-dropzone.is-filled { border:1px dashed rgba(197,197,197,.75); }
.ielts-dnd-qno { display:block; font-weight:700; }
.ielts-dnd-answer { display:block; width:100%; padding:0 9px; font-size:17.6px; line-height:22px; font-weight:700; }

/* Generic IELTS matching: summary, information, features, endings and comments. */
.ielts-generic-option-source,.ielts-generic-native-inputs { display:none !important; }
/* Native grading controls stay in their original LearnDash list, never beside DnD. */
body.ielts-cbt-exact.ielts-general-test .wpProQuiz_questionList.ielts-general-choice-table.ielts-generic-native-inputs,
body.ielts-cbt-exact .wpProQuiz_questionList.ielts-generic-native-inputs,
body.ielts-cbt-exact .wpProQuiz_questionList.ielts-dnd-native-inputs,
body.ielts-cbt-exact .wpProQuiz_questionList.ielts-map-native-inputs,
body.ielts-cbt-exact .wpProQuiz_listItem.ielts-generic-secondary { display:none !important; }
.ielts-matching-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; align-items:start; margin:28px 0; }
.ielts-matching-columns .ielts-generic-bank { border:0; padding:0; margin:0; min-width:0; }
.ielts-matching-columns h3 { margin:0 0 20px; font-size:20px; }
.ielts-matching-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 26px; }
.ielts-matching-label p { margin:0; }
.ielts-matching-row .ielts-generic-dropzone { display:inline-flex; min-width:120px; min-height:38px; margin:0; flex:1 1 120px; align-items:center; justify-content:center; }
.ielts-matching-columns .ielts-generic-card b { display:none; }
.ielts-matching-columns .ielts-generic-card { width:auto; min-height:32px; padding:5px 9px; }
.ielts-matching-columns .ielts-generic-bank-slot { min-height:38px; }
.ielts-matching-columns .ielts-generic-options { align-items:start; }
@media(max-width:600px){.ielts-matching-columns{grid-template-columns:1fr;gap:20px;}}
.ielts-generic-bank { margin:16px 0 18px; padding:13px; border:1px solid #919191; background:#fff; }
.ielts-generic-bank h3 { margin:0 0 10px; font-size:16px; line-height:22px; }
.ielts-generic-options { display:flex; flex-direction:column; align-items:stretch; gap:7px; }
.ielts-generic-bank-slot { display:flex; width:100%; min-height:36px; }
.ielts-generic-card { width:100%; min-height:36px; display:flex; align-items:center; gap:9px; padding:6px 10px; border:1px solid #919191; border-radius:3px; background:#fff; color:#111; cursor:grab; text-align:left; font:14px/20px Arial,sans-serif; }
.ielts-generic-card b { flex:0 0 21px; }
.ielts-generic-card:hover,.ielts-generic-card.is-selected { border-color:#1261a0; background:#eaf4ff; box-shadow:0 2px 7px rgba(0,0,0,.2); }
.ielts-generic-card.is-dragging { opacity:.52; }
.ielts-generic-card.is-in-zone { min-height:30px; margin:0; padding:4px 8px; box-shadow:none; }
.ielts-generic-dropzone { width:100%; min-height:38px; display:flex; align-items:center; justify-content:center; margin:8px 0 4px; padding:3px; border:2px dashed var(--cbt-blue); border-radius:4px; background:#fff; cursor:pointer; }
.ielts-generic-dropzone.is-over { background:#dceeff; box-shadow:0 0 0 3px rgba(23,105,170,.2); }
.ielts-generic-dropzone.is-filled { border:1px dashed #a5a5a5; }
.ielts-generic-qno { font-weight:700; color:#333; }

/* General Reading table-style single-choice groups. */
body.ielts-cbt-exact.ielts-general-test .wpProQuiz_questionList.ielts-general-choice-table { display:grid !important; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:0 !important; margin-top:10px !important; border-top:1px solid #9c9c9c !important; border-left:1px solid #9c9c9c !important; }
body.ielts-cbt-exact.ielts-general-test .ielts-general-choice-table .wpProQuiz_questionListItem { border-right:1px solid #9c9c9c !important; border-bottom:1px solid #9c9c9c !important; }
body.ielts-cbt-exact.ielts-general-test .ielts-general-choice-table .wpProQuiz_questionListItem label { min-height:48px !important; justify-content:center !important; margin:0 !important; padding:9px 12px !important; background:#fff !important; text-align:center; }
body.ielts-cbt-exact.ielts-general-test .ielts-general-choice-table .wpProQuiz_questionListItem label:hover { background:#f2f8fd !important; }
body.ielts-cbt-exact.ielts-general-test .ielts-general-choice-table .wpProQuiz_questionListItem.is-selected-choice label { background:#dceeff !important; color:#000 !important; box-shadow:inset 0 0 0 2px #418ec8; }

/* Previous / next controls. */
.ielts-cbt-arrows { position:fixed; z-index:100030; right:32px; bottom:88px; height:56px; display:flex; align-items:center; justify-content:flex-end; gap:3px; padding:0; pointer-events:none; }
.ielts-cbt-arrows button { box-sizing:border-box; width:56px; height:56px; display:flex !important; align-items:center !important; justify-content:center !important; padding:0 !important; transform:none; border:0; border-radius:3px; background:#4c4c4c; color:#fff; cursor:pointer; pointer-events:auto; }
.ielts-cbt-arrows button:last-child { background:#000; }
.ielts-cbt-arrows button:hover { background:#262626; }
.ielts-cbt-arrows button svg { width:32px; height:32px; display:block; fill:none; stroke:currentColor; stroke-width:3.7; stroke-linecap:square; stroke-linejoin:miter; }

/* 53 px official footer. Attempted questions get a green segment above them. */
.ielts-cbt-footer { position:fixed; right:0; bottom:0; left:0; z-index:100050; height:53px; display:grid; grid-template-columns:minmax(0,1fr) 78px; align-items:stretch; border-top:1px solid #e1e1e1; background:#fff; color:#535353; }
.ielts-cbt-footer-main { min-width:0; overflow-x:auto; overflow-y:hidden; }
.ielts-cbt-nav { display:flex; width:100%; min-width:0; height:100%; }
.ielts-cbt-navgroup { position:relative; min-width:0; flex:1 1 0; display:flex; align-items:stretch; justify-content:center; }
.ielts-cbt-navgroup.is-active { flex:1.6 1 0; }
.ielts-cbt-partlabel { display:flex; align-items:center; justify-content:center; gap:14px; min-width:118px; padding:0 14px; border:0; background:#fff; color:#535353; cursor:pointer; font:16px Arial,sans-serif; }
.ielts-cbt-partlabel b { white-space:nowrap; font-size:16px; }
.ielts-cbt-partlabel small { white-space:nowrap; color:#777; font-size:16px; }
.ielts-cbt-navgroup.is-active .ielts-cbt-partlabel { min-width:auto; padding-right:5px; background:#fff !important; color:#333 !important; }
.ielts-cbt-navgroup.is-active .ielts-cbt-partlabel b { color:#333; font-weight:700; }
.ielts-cbt-navgroup.is-active .ielts-cbt-partsummary { display:none; }
.ielts-cbt-numbers { display:none; align-items:center; min-width:0; padding-right:6px; }
.ielts-cbt-navgroup.is-active .ielts-cbt-numbers { display:flex; }
.ielts-cbt-number { position:relative; box-sizing:border-box; flex:0 0 32px; width:32px; min-width:32px; height:44px; margin:4px 1px; padding:15px 3px 1px; border:2px solid transparent; border-radius:3px; background:#fff; color:#333; font:16px Arial,sans-serif; cursor:pointer; }
.ielts-cbt-number::before { content:""; position:absolute; top:1px; left:2px; width:calc(100% - 4px); height:3px; background:#d7d7d7; }
.ielts-cbt-number:hover { border-color:var(--cbt-blue) !important; background:#fff !important; color:#333 !important; }
.ielts-cbt-number.is-active { border-color:var(--cbt-blue) !important; background:#fff !important; color:#333 !important; }
.ielts-cbt-number.is-answered::before { background:var(--cbt-green); }
.ielts-cbt-number.is-review::after { content:"⚑"; position:absolute; top:5px; right:1px; left:auto; transform:none; background:transparent; color:#d71920; font:700 13px/13px Arial,sans-serif; pointer-events:none; }
.ielts-cbt-legend { display:none; }
.ielts-cbt-finish { display:flex; align-items:center; justify-content:center; border:0; background:#efefef; color:#535353; cursor:pointer; }
.ielts-cbt-finish:hover { background:#bebebe; }
.ielts-cbt-finish svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:2.6; }

/* Review button first opens the same delivering interstitial as Inspera. */
.ielts-delivering-screen[hidden] { display:none !important; }
.ielts-delivering-screen { position:fixed; inset:56px 0 53px; z-index:100045; background:#fff; color:#000; }
.ielts-delivering-prompt { width:min(630px,calc(100% - 48px)); display:flex; align-items:center; justify-content:space-between; gap:40px; margin:218px auto 0; }
.ielts-delivering-prompt p { margin:0; font:16px/24px Arial,sans-serif; }
.ielts-delivering-next { min-width:116px; min-height:49px; display:flex; align-items:center; justify-content:center; gap:13px; padding:0 22px; border:0; border-radius:3px; background:#000; color:#fff; cursor:pointer; font:16px Arial,sans-serif; }
.ielts-delivering-next:hover { background:#252525; }
.ielts-delivering-next svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2; }
body.ielts-delivering .ielts-cbt-partbar,body.ielts-delivering .ielts-cbt-workspace,body.ielts-delivering .ielts-cbt-arrows { display:none !important; }
body.ielts-delivering [data-action="show-notes"] { display:none !important; }
body.ielts-delivering .ielts-cbt-navgroup.is-active { flex:1 1 0; }
body.ielts-delivering .ielts-cbt-navgroup.is-active .ielts-cbt-partlabel { min-width:118px; padding:0 14px; color:#535353 !important; }
body.ielts-delivering .ielts-cbt-navgroup.is-active .ielts-cbt-partlabel b { color:#535353; font-weight:700; }
body.ielts-delivering .ielts-cbt-navgroup.is-active .ielts-cbt-partsummary { display:inline; }
body.ielts-delivering .ielts-cbt-numbers { display:none !important; }
body.ielts-delivering .ielts-cbt-finish { background:#333; color:#fff; }

body.ielts-summary-open .wpProQuiz_checkPage {
  position:fixed !important;
  inset:56px 0 53px !important;
  z-index:100044 !important;
  box-sizing:border-box !important;
  display:block !important;
  overflow:auto !important;
  margin:0 !important;
  padding:42px max(32px,calc((100vw - 760px)/2)) 70px !important;
  background:#fff !important;
  color:#000 !important;
  text-align:left !important;
}
body.ielts-summary-open .wpProQuiz_checkPage h4 { margin:0 0 18px !important; color:#000 !important; font:700 26px/34px Arial,sans-serif !important; }
body.ielts-summary-open .wpProQuiz_checkPage p { color:#000 !important; font:16px/24px Arial,sans-serif !important; }
body.ielts-summary-open .wpProQuiz_checkPage input[name="endQuizSummary"] { width:auto !important; min-height:48px !important; margin:28px 0 0 auto !important; padding:0 24px !important; border:0 !important; border-radius:3px !important; background:#000 !important; color:#fff !important; cursor:pointer !important; font:700 16px Arial,sans-serif !important; }
body.ielts-summary-open .wpProQuiz_checkPage input[name="endQuizSummary"]:hover { background:#262626 !important; }
body.ielts-summary-open .ielts-cbt-partbar,body.ielts-summary-open .ielts-cbt-arrows { display:none !important; }
body.ielts-summary-open .ielts-cbt-navgroup.is-active { flex:1 1 0; }
body.ielts-summary-open .ielts-cbt-navgroup.is-active .ielts-cbt-partsummary { display:inline; }
body.ielts-summary-open .ielts-cbt-numbers { display:none !important; }

/* Accessibility choices from Options. */
body.ielts-cbt-exact.ielts-contrast-inverted,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-header,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-partbar,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-workspace,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-passage,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-questions,body.ielts-cbt-exact.ielts-contrast-inverted .wpProQuiz_listItem,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-footer,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-partlabel,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-number,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-options-overlay,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-options-list,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-options-row,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-options-choice,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-delivering-screen { background:#000 !important; color:#fff !important; }
body.ielts-cbt-exact.ielts-contrast-yellow,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-header,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-partbar,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-workspace,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-passage,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-questions,body.ielts-cbt-exact.ielts-contrast-yellow .wpProQuiz_listItem,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-footer,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-partlabel,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-number,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-options-overlay,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-options-list,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-options-row,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-options-choice,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-delivering-screen { background:#000 !important; color:#ffea00 !important; }
body.ielts-cbt-exact.ielts-contrast-inverted .wpProQuiz_question_text,body.ielts-cbt-exact.ielts-contrast-inverted .wpProQuiz_questionListItem label,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-navgroup.is-active .ielts-cbt-partlabel,body.ielts-cbt-exact.ielts-contrast-inverted .ielts-cbt-navgroup.is-active .ielts-cbt-partlabel b { color:#fff !important; }
body.ielts-cbt-exact.ielts-contrast-yellow .wpProQuiz_question_text,body.ielts-cbt-exact.ielts-contrast-yellow .wpProQuiz_questionListItem label,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-navgroup.is-active .ielts-cbt-partlabel,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-cbt-navgroup.is-active .ielts-cbt-partlabel b { color:#ffea00 !important; }
body.ielts-cbt-exact.ielts-contrast-inverted input,body.ielts-cbt-exact.ielts-contrast-inverted textarea,body.ielts-cbt-exact.ielts-contrast-yellow input,body.ielts-cbt-exact.ielts-contrast-yellow textarea { background:#111 !important; color:inherit !important; border-color:currentColor !important; }
body.ielts-cbt-exact.ielts-contrast-inverted .ielts-options-row.is-primary,body.ielts-cbt-exact.ielts-contrast-yellow .ielts-options-row.is-primary { background:#e31837 !important; color:#fff !important; }
body.ielts-cbt-exact.ielts-text-large .ielts-cbt-passage,body.ielts-cbt-exact.ielts-text-large .wpProQuiz_question_text,body.ielts-cbt-exact.ielts-text-large .wpProQuiz_questionListItem label { font-size:17.6px !important; line-height:26.4px !important; }
body.ielts-cbt-exact.ielts-text-xlarge .ielts-cbt-passage,body.ielts-cbt-exact.ielts-text-xlarge .wpProQuiz_question_text,body.ielts-cbt-exact.ielts-text-xlarge .wpProQuiz_questionListItem label { font-size:19.2px !important; line-height:28.8px !important; }

/* Listening: the audio can be started once, with no pause/rewind controls. */
body.ielts-cbt-exact.ielts-listening .ielts-cbt-questions { padding:16px 0 48px; }
body.ielts-cbt-exact.ielts-listening .wpProQuiz_list { padding-right:33px !important; padding-left:16px !important; }
.ielts-audio-controlled { display:none !important; }
.ielts-audio-overlay[hidden] { display:none !important; }
.ielts-audio-overlay { position:fixed; inset:0; z-index:100200; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.7); }
.ielts-audio-dialog { width:calc(100% - 390px); color:#fff; text-align:center; font:16px/24px Arial,sans-serif; }
.ielts-audio-headphones { height:112px; margin-bottom:16px; font-size:104px; line-height:112px; filter:grayscale(1) brightness(4); }
.ielts-audio-dialog p { margin:16px 0; }
.ielts-audio-play { display:inline-flex; align-items:center; gap:10px; min-height:47px; margin-left:2px; padding:10px 20px; border:0 !important; border-radius:3px; background:#000 !important; color:#fff !important; cursor:pointer; font:13.333px Arial,sans-serif; }
.ielts-audio-play > span:first-child { display:flex; align-items:center; justify-content:center; width:23px; height:23px; border-radius:50%; background:#fff; color:#000; font-size:13px; }
.ielts-audio-play:hover { background:#262626 !important; }

/* Writing: one task at a time, with prompt and response in two independent panes. */
body.ielts-cbt-exact.ielts-writing .ielts-cbt-questions { padding:16px 0 48px; }
body.learndash-cpt-sfwd-quiz.ielts-cbt-exact.ielts-writing .ielts-cbt-questions > .wpProQuiz_list { height:100% !important; padding:0 !important; }
body.ielts-cbt-exact.ielts-writing .wpProQuiz_listItem { display:none !important; box-sizing:border-box !important; height:100% !important; margin:0 !important; }
body.ielts-cbt-exact.ielts-writing .wpProQuiz_listItem.is-current { display:block !important; }
body.ielts-cbt-exact.ielts-writing .wpProQuiz_question { height:100% !important; min-height:0 !important; display:flex !important; align-items:stretch; overflow:hidden; }
body.ielts-cbt-exact.ielts-writing .wpProQuiz_question > .wpProQuiz_clear { display:none !important; }
body.ielts-cbt-exact.ielts-writing .wpProQuiz_question::before { content:""; order:2; flex:0 0 2px; background:rgba(0,0,0,.5); }
body.ielts-cbt-exact.ielts-writing .wpProQuiz_question_text { order:1; box-sizing:border-box; flex:0 0 calc(50% - 1px) !important; min-width:0; width:calc(50% - 1px) !important; max-width:calc(50% - 1px) !important; min-height:0; height:100%; overflow:auto; margin:0 !important; padding:16px 33px 48px !important; }
body.ielts-cbt-exact.ielts-writing .wpProQuiz_questionList { order:3; box-sizing:border-box; flex:0 0 calc(50% - 1px) !important; min-width:0; width:calc(50% - 1px) !important; max-width:calc(50% - 1px) !important; min-height:0; height:100%; overflow:auto; margin:0 !important; padding:16px 33px 48px !important; }
body.ielts-cbt-exact.ielts-writing textarea { min-height:calc(100vh - 255px) !important; resize:none !important; }
body.ielts-cbt-exact.ielts-writing .ielts-writing-word-count { margin:2px 0 0; color:#333; text-align:right; font:600 14px/20px Arial,sans-serif; }
body.ielts-cbt-exact.ielts-writing .graded-disclaimer { display:none !important; }

@media (max-width:1100px) {
  .ielts-cbt-number { min-width:25px; padding-inline:2px; font-size:14px; }
  .ielts-cbt-partlabel { min-width:90px; gap:8px; padding-inline:8px; }
  .ielts-cbt-partlabel b,.ielts-cbt-partlabel small { font-size:14px; }
}

@media (max-width:820px) {
  .ielts-cbt-tools .ielts-cbt-status { display:none; }
  .ielts-cbt-icon { width:44px; }
  .ielts-cbt-partbar { top:64px; height:64px; right:8px; left:8px; }
  .ielts-cbt-timer { min-width:78px; font-size:17px; }
  .ielts-cbt-review-toggle { right:8px; min-width:40px; justify-content:center; padding:7px 9px; }
  .ielts-cbt-review-toggle span { display:none; }
  .ielts-cbt-workspace { top:144px; bottom:58px; display:block; overflow:auto; }
  .ielts-cbt-passage,.ielts-cbt-questions { height:auto; min-height:calc(100vh - 202px); overflow:visible; }
  .ielts-cbt-passage { padding:22px 18px; border-bottom:6px solid #d7d7d7; }
  .ielts-cbt-divider { display:none; }
  .ielts-cbt-footer { height:58px; grid-template-columns:minmax(0,1fr) 54px; }
  .ielts-cbt-navgroup:not(.is-active) .ielts-cbt-partsummary { display:none; }
  .ielts-cbt-navgroup.is-active { flex:3 1 0; }
  .ielts-cbt-number { min-width:26px; }
  .ielts-audio-dialog { width:calc(100% - 32px); }
  body.ielts-cbt-exact.ielts-writing .wpProQuiz_question { display:block !important; overflow:auto; }
  body.ielts-cbt-exact.ielts-writing .wpProQuiz_question::before { display:none; }
  body.ielts-cbt-exact.ielts-writing .wpProQuiz_question_text,body.ielts-cbt-exact.ielts-writing .wpProQuiz_questionList { height:auto; overflow:visible; }
}

@media (prefers-reduced-motion:reduce) { body.ielts-cbt-exact * { scroll-behavior:auto !important; animation-duration:.001ms !important; transition-duration:.001ms !important; } .ielts-cbt-partbar.is-time-warning { animation:none !important; background:var(--ws-ielts-warning-color,#d71920) !important; color:#fff !important; } }
