/* OFC Matury probne v2 — the students' page ([ofc_matury_probne_v2]). Fonts and text colour come from the theme. */
.ofc-mpv2-student { max-width: 760px; }
.ofc-mpv2-student.is-busy { opacity: 0.6; }
.ofc-mpv2-student .ofc-mpv2-version { margin: 0 0 12px; color: #999; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.02em; }
.ofc-mpv2-student .mpv2-s-name { margin: 0 0 4px; }
.ofc-mpv2-student h3 { margin: 28px 0 12px; }
.ofc-mpv2-student .mpv2-s-card { margin: 0 0 16px; padding: 16px 18px; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 8px; }
.ofc-mpv2-student .mpv2-s-card > :last-child { margin-bottom: 0; }
.ofc-mpv2-student .mpv2-s-confirmed { border-left: 4px solid #1a7f37; }
.ofc-mpv2-student .mpv2-s-title { margin: 0 0 4px; font-size: 1.15em; }
.ofc-mpv2-student .mpv2-s-code { font-size: 0.85em; font-weight: normal; opacity: 0.7; }
.ofc-mpv2-student .mpv2-s-meta { margin: 0 0 12px; opacity: 0.8; }
.ofc-mpv2-student .mpv2-s-when { margin: 0 0 8px; font-weight: 600; }
.ofc-mpv2-student .mpv2-s-note { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid #dba617; background: rgba(219, 166, 23, 0.1); }
.ofc-mpv2-student .mpv2-s-main { margin: 0 0 12px; }
.ofc-mpv2-student .mpv2-s-main p { margin: 0 0 8px; }
.ofc-mpv2-student .mpv2-s-other { margin: 0 0 12px; }
.ofc-mpv2-student .mpv2-s-other summary { padding: 4px 0; color: #2271b1; font-weight: 600; cursor: pointer; }
.ofc-mpv2-student .mpv2-s-terms { margin: 8px 0 12px; padding: 0; list-style: none; }
.ofc-mpv2-student .mpv2-s-terms li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.ofc-mpv2-student .mpv2-s-decline { margin: 4px 0 0; }
/* paid actions (0.14.0): the price, the two ways to write, a choice waiting for its payment */
.ofc-mpv2-student .mpv2-s-price { margin: 0 0 12px; font-weight: 600; }
/* 0.19.0: what goes to the shop and why — small print above the ways to write */
.ofc-mpv2-student .mpv2-s-data { margin: 0 0 12px; font-size: 0.85em; line-height: 1.45; opacity: 0.8; }
/* 0.17.0: „Dostępne opcje pisania matury próbnej:" — each way to write is a section opened at a click of its title, each on its own */
.ofc-mpv2-student .mpv2-s-modes { margin: 16px 0 8px; font-size: 1em; }
.ofc-mpv2-student .mpv2-s-opt { margin: 0 0 10px; border: 1px solid rgba(34, 113, 177, 0.5); border-radius: 8px; }
.ofc-mpv2-student .mpv2-s-opt > summary { display: block; position: relative; margin: 0; padding: 12px 14px 12px 40px; border-radius: 7px; background: rgba(34, 113, 177, 0.1); color: #135e96; font-size: 1.1em; font-weight: 700; line-height: 1.3; list-style: none; cursor: pointer; }
.ofc-mpv2-student .mpv2-s-opt > summary::-webkit-details-marker { display: none; }
.ofc-mpv2-student .mpv2-s-opt > summary::before { content: ""; position: absolute; top: 50%; left: 16px; width: 8px; height: 8px; margin-top: -5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.ofc-mpv2-student .mpv2-s-opt[open] > summary { border-radius: 7px 7px 0 0; }
.ofc-mpv2-student .mpv2-s-opt[open] > summary::before { margin-top: -7px; transform: rotate(45deg); }
.ofc-mpv2-student .mpv2-s-opt > summary:hover { background: rgba(34, 113, 177, 0.18); }
.ofc-mpv2-student .mpv2-s-opt > summary:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }
.ofc-mpv2-student .mpv2-s-opt-body { padding: 12px 14px; }
.ofc-mpv2-student .mpv2-s-opt-body p { margin: 0 0 8px; }
.ofc-mpv2-student .mpv2-s-opt-body > :last-child { margin-bottom: 0; }
.ofc-mpv2-student .mpv2-s-wait { border-left: 4px solid #dba617; }
.ofc-mpv2-student .mpv2-s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; }
/* 0.21.0: the box confirming the account's e-mail address — above the maturas, before the way to the shop opens (themes often make labels and inputs blocks / 100% wide) */
.ofc-mpv2-student .mpv2-s-gate { margin: 0 0 20px; padding: 16px 18px; border: 1px solid rgba(0, 0, 0, 0.15); border-left: 4px solid #dba617; border-radius: 8px; }
.ofc-mpv2-student .mpv2-s-gate p { margin: 0 0 12px; }
.ofc-mpv2-student .mpv2-s-gate > :last-child { margin-bottom: 0; }
.ofc-mpv2-student .mpv2-s-gate .mpv2-s-gate-title { margin: 0 0 8px; font-size: 1.15em; font-weight: 700; }
.ofc-mpv2-student .mpv2-s-gate-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ofc-mpv2-student .mpv2-s-gate-code label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; float: none; width: auto; margin: 0; padding: 0; font: inherit; }
.ofc-mpv2-student .mpv2-s-gate-code input { display: inline-block; float: none; width: 7.5em; min-width: 0; max-width: 100%; height: auto; min-height: 0; margin: 0; padding: 0.5em 0.6em; border: 1px solid rgba(0, 0, 0, 0.35); border-radius: 6px; background: transparent; box-shadow: none; color: inherit; font: inherit; line-height: 1.3; letter-spacing: 0.15em; }
.ofc-mpv2-student .mpv2-s-gate-code input:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }
/* paid actions (0.16.0): the terms on site as a month calendar — a day with a free seat is a button, the chosen day's hours stand under it */
.ofc-mpv2-student .mpv2-s-cal [hidden] { display: none !important; }
.ofc-mpv2-student .mpv2-s-cal-intro { margin: 0 0 10px; }
.ofc-mpv2-student .mpv2-s-month { max-width: 336px; margin: 0 0 12px; }
.ofc-mpv2-student .mpv2-s-cal-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.ofc-mpv2-student .mpv2-s-cal-head strong { flex: 1; text-align: center; }
.ofc-mpv2-student .mpv2-s-cal-nav { display: block; flex: none; width: 36px; min-width: 0; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; box-shadow: none; color: #2271b1; font: inherit; font-size: 1.4em; line-height: 1; }
.ofc-mpv2-student button.mpv2-s-cal-nav { border: 1px solid rgba(0, 0, 0, 0.2); cursor: pointer; }
.ofc-mpv2-student button.mpv2-s-cal-nav:hover { background: rgba(34, 113, 177, 0.08); color: #2271b1; }
.ofc-mpv2-student .mpv2-s-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ofc-mpv2-student .mpv2-s-wd { padding: 2px 0; font-size: 0.8em; text-align: center; opacity: 0.7; }
.ofc-mpv2-student .mpv2-s-day { display: flex; align-items: center; justify-content: center; width: auto; min-width: 0; height: auto; min-height: 40px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; box-shadow: none; color: inherit; font: inherit; line-height: 1; letter-spacing: 0; }
.ofc-mpv2-student span.mpv2-s-day { opacity: 0.4; }
.ofc-mpv2-student button.mpv2-s-day { border-color: #2271b1; background: rgba(34, 113, 177, 0.08); color: #2271b1; font-weight: 600; cursor: pointer; }
.ofc-mpv2-student button.mpv2-s-day:hover { background: rgba(34, 113, 177, 0.2); color: #2271b1; }
.ofc-mpv2-student button.mpv2-s-day[aria-pressed="true"] { background: #2271b1; color: #fff; }
.ofc-mpv2-student .mpv2-s-day:focus-visible,
.ofc-mpv2-student .mpv2-s-cal-nav:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }
.ofc-mpv2-student select { padding: 0.2em 0.4em; font: inherit; }
/* CG: „w godz. [12:00–15:00] (180 min.)" flows in the line like plain hours — themes often make labels and selects blocks / 100% wide */
.ofc-mpv2-student .mpv2-s-hours { display: inline; float: none; margin: 0; padding: 0; font: inherit; white-space: nowrap; }
.ofc-mpv2-student .mpv2-s-hours select { display: inline-block; float: none; width: auto; min-width: 0; max-width: 100%; margin: 0; vertical-align: baseline; }
/* 0.17.0: the hours' own arrow with room kept for it — on an iPhone the browser's arrow stood on the hours */
.ofc-mpv2-student .mpv2-s-hours select { -webkit-appearance: none; appearance: none; height: auto; min-height: 0; padding: 0.25em 1.9em 0.25em 0.5em; border: 1px solid rgba(0, 0, 0, 0.35); border-radius: 6px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.6em center / 0.7em auto; color: inherit; line-height: 1.3; text-indent: 0; }
.ofc-mpv2-student .mpv2-s-history { padding-left: 1.2em; }
.ofc-mpv2-student .mpv2-s-none,
.ofc-mpv2-student .mpv2-s-loading { opacity: 0.75; }
.ofc-mpv2-student .mpv2-s-notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 6px; }
.ofc-mpv2-student .mpv2-s-notice-success { border-left: 4px solid #1a7f37; background: rgba(26, 127, 55, 0.1); }
.ofc-mpv2-student .mpv2-s-notice-error { border-left: 4px solid #b32d2e; background: rgba(179, 45, 46, 0.08); }

/* buttons — also in the dialog, which lives outside the page's box */
.ofc-mpv2-student .mpv2-s-btn,
.mpv2-s-dialog .mpv2-s-btn { display: inline-block; padding: 0.55em 1.1em; border: 1px solid #2271b1; border-radius: 6px; background: transparent; color: #2271b1; font: inherit; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.ofc-mpv2-student .mpv2-s-btn:hover,
.mpv2-s-dialog .mpv2-s-btn:hover { background: rgba(34, 113, 177, 0.08); }
.ofc-mpv2-student .mpv2-s-primary,
.mpv2-s-dialog .mpv2-s-primary { background: #2271b1; color: #fff; }
.ofc-mpv2-student .mpv2-s-primary:hover,
.mpv2-s-dialog .mpv2-s-primary:hover { background: #135e96; }
.ofc-mpv2-student .mpv2-s-linkbtn { padding: 0; border: 0; background: none; color: #b32d2e; font: inherit; text-decoration: underline; cursor: pointer; }
.ofc-mpv2-student button:disabled { cursor: wait; }
.ofc-mpv2-student .mpv2-s-btn:focus-visible,
.ofc-mpv2-student .mpv2-s-linkbtn:focus-visible,
.mpv2-s-dialog .mpv2-s-btn:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }

.mpv2-s-dialog { width: min(480px, calc(100% - 32px)); padding: 20px 22px; border: 0; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); font: inherit; }
.mpv2-s-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.mpv2-s-dialog .mpv2-s-q { margin: 0 0 18px; line-height: 1.5; }
.mpv2-s-dialog-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

@media (max-width: 600px) {
	.ofc-mpv2-student .mpv2-s-btn { width: 100%; }
	.ofc-mpv2-student .mpv2-s-terms li { display: block; }
	.ofc-mpv2-student .mpv2-s-terms li .mpv2-s-btn { margin-top: 8px; }
	.ofc-mpv2-student .mpv2-s-gate-code label { width: 100%; }
	.ofc-mpv2-student .mpv2-s-gate-code input { flex: 1 1 7.5em; }
}

/* 0.53.0: the links to a matura's own files */
.ofc-mpv2-student p.mpv2-s-files { margin: 0 0 12px; }
.ofc-mpv2-student .mpv2-s-file { font-weight: 600; }
