/* Tutor LMS Guest Exams – frontend. Logical properties => RTL (Arabic) works without a second sheet. */
.tge-wrap { --tge-accent: var(--wp--preset--color--primary, #2563eb); --tge-border: #d6dae1; --tge-bg: #f7f8fa; --tge-ok: #15803d; --tge-bad: #b91c1c; --tge-warn: #b45309;
	max-width: 860px; margin-inline: auto; padding-block: 12px; font-size: 1rem; line-height: 1.6; box-sizing: border-box; }
.tge-wrap *, .tge-wrap *::before, .tge-wrap *::after { box-sizing: border-box; }
.tge-wrap img { max-width: 100%; height: auto; }
.tge-title { margin: 0 0 12px; }
.tge-box { border: 1px solid var(--tge-border); background: var(--tge-bg); border-radius: 8px; padding: 12px 16px; margin-block: 12px; }
.tge-error { border-color: #f1b4b4; background: #fdf0f0; color: var(--tge-bad); }
.tge-pending { border-color: #f0d9a8; background: #fff8e6; color: #7a4b00; }
.tge-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0 0 12px; list-style: none; color: #475069; }
.tge-facts li::before { content: "•"; margin-inline-end: 6px; }
.tge-field { margin: 0 0 14px; }
.tge-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.tge-field input[type=text], .tge-field input[type=tel], .tge-wrap textarea, .tge-wrap select, .tge-wrap input.tge-blank { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--tge-border); border-radius: 6px; font: inherit; background: #fff; color: inherit; }
.tge-wrap input.tge-blank { display: inline-block; width: 11em; margin-inline: 6px; padding: 4px 8px; }
.tge-req { color: var(--tge-bad); }
.tge-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tge-terms label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.tge-terms input { margin-top: 5px; flex: none; }
.tge-msg { color: var(--tge-bad); min-height: 1.2em; margin-block: 6px; font-weight: 600; }
.tge-btn { display: inline-block; padding: 10px 22px; border: 1px solid var(--tge-border); border-radius: 6px; background: #fff; color: #1f2937; cursor: pointer; font: inherit; text-decoration: none; }
.tge-btn:disabled { opacity: .5; cursor: not-allowed; }
.tge-btn-primary { background: var(--tge-accent); border-color: var(--tge-accent); color: #fff; }
.tge-head { position: sticky; top: 0; z-index: 5; background: #fff; padding-block: 8px; border-bottom: 1px solid var(--tge-border); margin-bottom: 14px; }
.admin-bar .tge-head { top: 32px; }
.tge-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.tge-clock { font-weight: 700; font-variant-numeric: tabular-nums; }
.tge-warn { color: var(--tge-warn); }
.tge-clock.tge-warn { color: var(--tge-bad); }
.tge-status { color: #475069; }
.tge-resume { margin-top: 6px; } .tge-resume input { width: 100%; font-size: .8rem; padding: 4px 6px; }
.tge-q { border: 1px solid var(--tge-border); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.tge-q-head { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .85rem; color: #475069; margin-bottom: 6px; }
.tge-q-req { color: var(--tge-bad); font-weight: 600; }
.tge-q-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.tge-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.tge-opt:hover { background: var(--tge-bg); }
.tge-opt input { margin-top: 6px; flex: none; }
.tge-opt-body img { display: block; max-height: 220px; margin-bottom: 4px; border-radius: 4px; }
.tge-order { list-style: none; margin: 0; padding: 0; counter-reset: o; }
.tge-order-item { counter-increment: o; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--tge-border); border-radius: 6px; margin-bottom: 6px; background: var(--tge-bg); }
.tge-order-item::before { content: counter(o) "."; font-weight: 700; min-width: 1.6em; }
.tge-order-text { flex: 1; } .tge-order-item img { max-height: 60px; }
.tge-mini { border: 1px solid var(--tge-border); background: #fff; border-radius: 4px; width: 34px; height: 34px; cursor: pointer; }
.tge-mini:disabled { opacity: .35; }
.tge-match-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.tge-match-left img { display: block; max-height: 110px; margin-bottom: 4px; }
.tge-ia-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.tge-ia-row img { max-height: 120px; } .tge-ia-row input { flex: 1; min-width: 160px; padding: 8px 10px; border: 1px solid var(--tge-border); border-radius: 6px; font: inherit; }
.tge-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; }
.tge-count { display: block; text-align: end; color: #6b7280; }
.tge-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 14px; }
.tge-meta dt { font-weight: 600; } .tge-meta dd { margin: 0; }
.tge-score { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 14px 16px; border: 2px solid var(--tge-border); border-radius: 10px; margin-block: 12px; }
.tge-score-main { font-size: 2rem; font-weight: 800; } .tge-score-pct { font-size: 1.4rem; font-weight: 700; }
.tge-badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; color: #fff; background: #6b7280; }
.tge-pass { background: var(--tge-ok); } .tge-fail { background: var(--tge-bad); } .tge-pend { background: var(--tge-warn); }
.tge-review-item { border-bottom: 1px solid var(--tge-border); padding-block: 10px; }
.tge-review-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.tge-marks { margin-inline-start: auto; font-weight: 700; }
.tge-review-line { margin-top: 4px; } .tge-correct { color: var(--tge-ok); } .tge-muted { color: #6b7280; } .tge-feedback { background: var(--tge-bg); padding: 6px 10px; border-radius: 6px; }
.tge-keep input { width: 100%; padding: 6px 8px; margin-block: 6px; font-size: .85rem; }
.tge-list { list-style: none; margin: 0; padding: 0; } .tge-list-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--tge-border); flex-wrap: wrap; }
.tge-list-title { font-weight: 600; }
[dir=rtl] .tge-wrap { text-align: right; }
@media (max-width: 600px) {
	.tge-match-row { grid-template-columns: 1fr; }
	.tge-score-main { font-size: 1.6rem; }
	.tge-wrap input.tge-blank { width: 8em; }
	.tge-btn { padding: 12px 18px; }
}
@media print { .tge-nav, .tge-keep, .tge-head { display: none; } }

/* ---- v1.1: price, buy box, member start, exams section ---- */
.tge-wrap .tge-price { margin-top: .25em; }
.tge-wrap .tge-buy { margin: 1em 0; }
.tge-wrap .tge-hello { font-weight: 600; margin: 0 0 .75em; }
.tge-wrap details.tge-have { margin: 1em 0; }
.tge-wrap details.tge-have > summary { cursor: pointer; font-weight: 600; padding: .4em 0; }
.tge-price-badge { display: inline-block; padding: .1em .6em; border-radius: 999px; background: #eef6ff; color: #0b5cad; font-size: .9em; font-weight: 600; }
.tge-price-badge.tge-free { background: #eaf7ee; color: #1a7f37; }
.tge-archive-price { margin: 0 0 .5em; }
.tge-order-exams { margin: 1.5em 0; }
.tge-order-exams ul { list-style: none; margin: 0; padding: 0; }
.tge-order-exams li { margin: .5em 0; }
.tge-cats { list-style: none; margin: 0; padding: 0; }
.tge-cats li { margin: .35em 0; }

/* ---- protected exam warning ---- */
.tge-guard { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(120, 10, 10, .92); color: #fff; text-align: center; font-size: 1.15em; }
.tge-guard p { max-width: 34em; margin: 0; }
.tge-guard-final { background: rgba(30, 30, 30, .92); }

.tge-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.tge-filter-item select { display: block; min-width: 150px; }
.tge-archive-terms { margin: 0 0 .5em; color: #555; font-size: .9em; }

/* Hardening: themes often hide or restyle radios/checkboxes and label text. */
.tge-wrap .tge-opt { display: flex !important; visibility: visible !important; opacity: 1 !important; }
.tge-wrap .tge-opt input[type=radio], .tge-wrap .tge-opt input[type=checkbox] { display: inline-block !important; visibility: visible !important; opacity: 1 !important; position: static !important; -webkit-appearance: auto !important; appearance: auto !important; width: 18px !important; height: 18px !important; margin: 4px 0 0 !important; clip: auto !important; }
.tge-wrap .tge-opt-body, .tge-wrap .tge-opt-body span { display: block !important; visibility: visible !important; opacity: 1 !important; color: inherit !important; font-size: inherit !important; }
