/* watupro-custom timer – Test The Talent design.
   Colours and shapes come from the WatuPRO theme ttt.css (:root --ttt-*);
   the fallbacks are the same values for sites without that theme. */

/* ---- Timer bar: white pill at the top, blue time (as #timerDiv in ttt.css) */
.wcustom-timer {
    position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
    z-index: 999999;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--ttt-font, "Open Sans", Helvetica, Arial, sans-serif);
    font-size: 15px; font-weight: 600; line-height: 1;
    color: var(--ttt-ink, #32323b);
    background: #fff;
    border: 1px solid var(--ttt-line, #e1e1e1);
    border-radius: var(--ttt-radius-pill, 25px);
    padding: 9px 18px;
    box-shadow: 0 4px 14px rgba(50, 50, 59, .12);
    white-space: nowrap;
}
.wcustom-timer-label { font-weight: 500; color: var(--ttt-muted, #6b7280); }
.wcustom-timer-value {
    font-size: 18px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ttt-blue, #0064ff);
}
.wcustom-timer.is-critical {
    background: var(--ttt-red-light, #fdecec);
    border-color: #f5b5b5;
}
.wcustom-timer.is-critical .wcustom-timer-value { color: var(--ttt-red, #e03131); }
@media (max-width: 600px) {
    .wcustom-timer { top: 8px; font-size: 13px; padding: 7px 14px; gap: 7px; max-width: calc(100vw - 32px); }
    .wcustom-timer-label { overflow: hidden; text-overflow: ellipsis; }
    .wcustom-timer-value { font-size: 16px; }
}

/* No way back (per-question timer) */
body.wcustom-no-back #prev-question { display: none !important; }

/* ---- Start choice from {{{timer-choice}}} in the intro text ---------------
   Left-aligned column: "With timer" = the theme's start button (blue, ttt.css
   .watupro-start-quiz), "Without timer" = a small text link under it (2026-10-19).
   display:flex (block-level) so a centred intro paragraph does not centre it.
   Selectors are specific + !important because ttt.css styles every button in the
   intro text (.watupro-exam-description button). */
.wcustom-start-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
.wcustom-start-choice button.wcustom-start-timed { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
.wcustom-ico { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: -3px; }
.wcustom-start-choice button.wcustom-start-untimed,
.watupro-exam-description .wcustom-start-choice button.wcustom-start-untimed {
    display: inline-block;
    font-family: var(--ttt-font, "Open Sans", Helvetica, Arial, sans-serif) !important;
    font-size: 15px !important; font-weight: 400 !important; line-height: 1.4 !important;
    letter-spacing: 0; text-shadow: none !important; text-transform: none;
    color: var(--ttt-blue, #0064ff) !important;
    background: none !important; background-image: none !important;
    border: 0 !important; border-radius: 3px !important;
    padding: 0 !important; margin: 0 !important;
    min-height: 0; height: auto !important; width: auto !important; min-width: 0 !important;
    text-decoration: underline; text-underline-offset: 3px;
    -webkit-appearance: none !important; appearance: none !important;
    box-shadow: none !important; cursor: pointer; transition: color .15s;
}
.wcustom-start-choice button.wcustom-start-untimed:hover,
.watupro-exam-description .wcustom-start-choice button.wcustom-start-untimed:hover {
    color: var(--ttt-blue-dark, #0052cc) !important; background: none !important; text-decoration: none;
}
.wcustom-start-choice button.wcustom-start-untimed:focus-visible {
    outline: 2px solid rgba(0, 100, 255, .45) !important; outline-offset: 3px;
}
@media (max-width: 600px) {
    .wcustom-start-choice button.wcustom-start-timed { width: 100% !important; }
}

/* Secondary button in the part dialog ("Back to part N"): light blue with blue text. */
.wcustom-card .wcustom-btn-secondary {
    display: inline-block;
    font-family: var(--ttt-font, "Open Sans", Helvetica, Arial, sans-serif) !important;
    font-size: 17px !important; font-weight: 600 !important; line-height: 1.2 !important;
    text-shadow: none !important; text-transform: none;
    color: var(--ttt-blue, #0064ff) !important;
    background: var(--ttt-blue-light, #e7effe) !important;
    background-image: none !important;
    border: 1px solid var(--ttt-blue-light, #e7effe) !important;
    border-radius: var(--ttt-radius-pill, 25px) !important;
    padding: 12px 28px !important; min-height: 46px;
    width: auto !important; height: auto !important;
    -webkit-appearance: none !important; appearance: none !important;
    box-shadow: none !important; cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.wcustom-card .wcustom-btn-secondary:hover { background: #d9e6fd !important; border-color: #d9e6fd !important; }

/* ---- Screen between parts (IST) ----------------------------------------- */
.wcustom-overlay {
    position: fixed; inset: 0; z-index: 1000000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
    background: rgba(50, 50, 59, .45);
}
.wcustom-card {
    background: #fff;
    border-radius: var(--ttt-radius-box, 8px);
    padding: 28px 30px; max-width: 480px; width: 100%; box-sizing: border-box;
    box-shadow: 0 10px 34px rgba(50, 50, 59, .22);
    border-top: 4px solid var(--ttt-blue, #0064ff);
    text-align: left;
    font-family: var(--ttt-font, "Open Sans", Helvetica, Arial, sans-serif);
    color: var(--ttt-ink, #32323b);
}
.wcustom-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; line-height: 1.45; color: var(--ttt-ink, #32323b); }
.wcustom-card p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: var(--ttt-text, #444); }
.wcustom-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.wcustom-card .wcustom-btn-primary {
    display: inline-block;
    font-family: var(--ttt-font, "Open Sans", Helvetica, Arial, sans-serif);
    font-size: 17px; font-weight: 600; line-height: 1.2;
    color: #fff; background: var(--ttt-blue, #0064ff);
    border: 1px solid var(--ttt-blue, #0064ff);
    border-radius: var(--ttt-radius-pill, 25px);
    padding: 12px 28px; min-height: 46px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 100, 255, .22);
    transition: background-color .15s;
}
.wcustom-card .wcustom-btn-primary:hover { background: var(--ttt-blue-dark, #0052cc); border-color: var(--ttt-blue-dark, #0052cc); }
.wcustom-card .wcustom-btn:focus-visible { outline: 3px solid rgba(0, 100, 255, .45); outline-offset: 2px; }
@media (max-width: 600px) {
    .wcustom-card { padding: 22px 20px; }
    .wcustom-buttons { flex-direction: column; }
    .wcustom-card .wcustom-btn { width: 100%; }
}

/* ---- Result screen note (untimed attempt) ------------------------------- */
.wcustom-untimed-note {
    padding: 12px 16px; margin: 0 0 18px;
    background: var(--ttt-blue-soft, #f3f7ff);
    border-left: 4px solid var(--ttt-blue, #0064ff);
    border-radius: 4px;
    color: var(--ttt-ink, #32323b);
}
