/* OP-TAC Player Disclaimers: front-end + shared document styles. Brand: #778046 olive, Roboto. */
/* My Account icon menu: equal-width columns once our column is in the row (loaded in <head>, so no reflow). */
.elementor-container:has(> .optac-pd-navcol) > .elementor-column { flex: 1 1 0 !important; width: auto !important; max-width: none !important; }
/* Labels: every label box is two lines tall (h3 line-height is 1.4em) with the text centred, so single-line labels
   sit level with the middle of two-line ones in the same row (desktop and phones). */
.elementor-container:has(> .optac-pd-navcol) .elementor-icon-box-title { display: flex !important; align-items: center; justify-content: center; min-height: 2.8em; }
/* Phones: the six page icons in 2 rows x 3 columns, Log out (always the last column) on the right spanning both rows. */
@media (max-width: 767px) {
	.elementor-container:has(> .optac-pd-navcol) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .9fr); grid-auto-rows: 1fr; }
	.elementor-container:has(> .optac-pd-navcol) > .elementor-column { width: auto !important; max-width: none !important; }
	.elementor-container:has(> .optac-pd-navcol) > .elementor-column:last-child { grid-column: 4; grid-row: 1 / span 2; border-left: 1px solid rgba(255, 255, 255, .25); }
	.elementor-container:has(> .optac-pd-navcol) > .elementor-column:last-child > .elementor-widget-wrap { height: 100%; align-content: center; }
}
.optac-pd-navcol.is-active { background-color: #68703B; }
/* display:block so the SVG sits exactly like the theme's font icons (inline it was 3-4px low, pushing its label down). */
.optac-pd-navcol .optac-pd-navicon { width: 1em; height: 1em; fill: currentColor; display: block; vertical-align: top; }

:root {
	--pd-olive: #778046;
	--pd-olive-dark: #5f6738;
	--pd-text: #2b2b2b;
	--pd-muted: #6b6b6b;
	--pd-line: #d9dccd;
	--pd-bg: #f6f7f1;
}
.optac-pd, .optac-pd-doc, .optac-pd-orderbox, .optac-pd-table, .optac-pd-notice, .optac-pd-btn {
	font-family: Roboto, Arial, sans-serif;
	color: var(--pd-text);
}
.optac-pd { max-width: 860px; margin: 48px auto 56px; padding: 0 16px; box-sizing: border-box; }
.optac-pd [hidden], .optac-pd-form [hidden] { display: none !important; }
.optac-pd-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.optac-pd-form, .optac-pd-doc {
	background: #fff;
	border: 1px solid var(--pd-line);
	border-top: 6px solid var(--pd-olive);
	border-radius: 6px;
	padding: 28px 32px;
	box-sizing: border-box;
}
.optac-pd-doc-head h2 { margin: 0 0 4px; font-size: 28px; font-weight: 700; color: #111; }
.optac-pd-doc-head h3 { margin: 0 0 18px; font-size: 18px; font-weight: 500; color: var(--pd-olive); text-decoration: underline; text-underline-offset: 4px; }
.optac-pd-legal p, .optac-pd-doc > p { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }

.optac-pd-form fieldset {
	border: 1px solid var(--pd-line);
	border-radius: 6px;
	padding: 16px 18px 6px;
	margin: 20px 0;
	background: var(--pd-bg);
}
.optac-pd-form legend { font-weight: 700; padding: 0 6px; color: var(--pd-olive-dark); }
.optac-pd-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.optac-pd-form input[type=text], .optac-pd-form input[type=tel], .optac-pd-form input[type=date], .optac-pd-form textarea {
	display: block; width: 100%; box-sizing: border-box; margin-top: 4px;
	padding: 10px 12px; font: inherit; font-weight: 400; font-size: 16px;
	border: 1px solid #c5c9b5; border-radius: 4px; background: #fff; color: var(--pd-text);
}
.optac-pd-form input:focus, .optac-pd-form textarea:focus { outline: 2px solid var(--pd-olive); outline-offset: 1px; border-color: var(--pd-olive); }
.optac-pd-form input[readonly] { background: #eef0e6; }
.optac-pd-row { display: flex; gap: 14px; flex-wrap: wrap; }
.optac-pd-row > label { flex: 0 0 auto; min-width: 160px; }
.optac-pd-row > .optac-pd-grow { flex: 1 1 220px; }
.optac-pd-short { max-width: 200px; }
.optac-pd .req { color: #b3261e; }
.optac-pd-hint { font-size: 13px; color: var(--pd-muted); margin: 0 0 10px; }
.optac-pd-hint.is-expired a { color: #b3261e; font-weight: 600; }

.optac-pd-siglabel { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.optac-pd-siglabel small { font-weight: 400; color: var(--pd-muted); margin-left: 6px; }
.optac-pd-sigwrap { position: relative; margin-bottom: 14px; }
.optac-pd-sigwrap canvas {
	display: block; width: 100%; height: 180px; background: #fff;
	border: 2px dashed #b9be9f; border-radius: 6px; cursor: crosshair;
}
.optac-pd-clear {
	position: absolute; top: 8px; right: 8px; font-size: 13px; padding: 4px 10px;
	background: #fff; border: 1px solid #c5c9b5; border-radius: 4px; cursor: pointer; color: var(--pd-text);
}
.optac-pd-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.optac-pd-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--pd-olive); }
.optac-pd-invalid { border-color: #b3261e !important; box-shadow: 0 0 0 1px #b3261e; }
.optac-pd-clienterr { color: #b3261e; font-weight: 600; }

.optac-pd-btn, a.optac-pd-btn, .woocommerce a.optac-pd-btn {
	display: inline-block; background: #778046 !important; color: #fff !important; border: 0;
	padding: 13px 26px; border-radius: 4px; font: 600 16px Roboto, Arial, sans-serif;
	text-decoration: none !important; cursor: pointer;
}
button.optac-pd-btn, .optac-pd button.optac-pd-btn, .optac-pd-orderbox button.optac-pd-btn {
	text-transform: none !important; letter-spacing: normal !important; font: 600 16px/1.2 Roboto, Arial, sans-serif !important;
	padding: 13px 26px !important; border-radius: 4px !important; min-height: 0; height: auto;
}
.optac-pd-actions .optac-pd-btn, .optac-pd-actions summary.optac-pd-btn { line-height: 1.2; }
.optac-pd-btn:hover, a.optac-pd-btn:hover { background: #5f6738 !important; }
.optac-pd-btn:disabled { opacity: .6; cursor: wait; }
.optac-pd-btn.is-small { padding: 6px 12px; font-size: 13px; }

.optac-pd-notice { padding: 14px 16px; border-radius: 6px; margin: 0 0 18px; border-left: 5px solid; font-size: 15px; line-height: 1.5; }
.optac-pd-notice ul { margin: 6px 0 0 18px; }
.optac-pd-notice.is-ok { background: #eef5e4; border-color: var(--pd-olive, #778046); }
.optac-pd-notice.is-info { background: #f1f3ea; border-color: #8a8f6a; }
.optac-pd-notice.is-warn { background: #fff6e0; border-color: #d99a00; }
.optac-pd-notice.is-error { background: #fdecea; border-color: #b3261e; }

.optac-pd-orderbox {
	border: 2px solid var(--pd-olive); border-radius: 6px; padding: 18px 20px; margin: 0 0 24px; background: var(--pd-bg);
}
.optac-pd-orderbox h3 { margin: 0 0 8px; color: var(--pd-olive-dark); }
.optac-pd-progress { font-size: 16px; margin-bottom: 6px; }
.optac-pd-covered { list-style: none; margin: 0 0 14px; padding: 0; }
.optac-pd-covered li { padding: 3px 0; font-size: 15px; }
.optac-pd-covered small { color: var(--pd-muted); }
.optac-pd-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-top: 8px; }
.optac-pd-actions > .optac-pd-btn { flex: 0 0 auto; }
.optac-pd-already { flex: 0 1 auto; }
.optac-pd-already[open] { flex-basis: 100%; }
.optac-pd-already > summary { list-style: none; }
.optac-pd-already > summary::-webkit-details-marker { display: none; }
.optac-pd-btn.is-ghost, a.optac-pd-btn.is-ghost, .woocommerce a.optac-pd-btn.is-ghost, .optac-pd-already > summary.optac-pd-btn {
	background: #fff !important; color: #5f6738 !important; border: 2px solid #778046; padding: 11px 24px; display: inline-block;
}
.optac-pd-btn.is-ghost:hover, a.optac-pd-btn.is-ghost:hover, .woocommerce a.optac-pd-btn.is-ghost:hover, .optac-pd-already > summary.optac-pd-btn:hover { background: #eef0e6 !important; }
a.optac-pd-btn.is-small, .woocommerce a.optac-pd-btn.is-small { padding: 9px 16px; font-size: 14px; }
.optac-pd-already[open] > summary.optac-pd-btn { background: #778046 !important; color: #fff !important; }
.optac-pd-orderbox.is-done { border-color: #4f7d2c; background: #f1f7ea; }
.optac-pd-orderbox.is-done h3 { color: #3d6322; }
.optac-pd-already > summary.optac-pd-linkbtn, a.optac-pd-linkbtn {
	display: inline-block; padding: 12px 4px; color: #5f6738 !important; font: 600 15px Roboto, Arial, sans-serif;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0;
}
.optac-pd-already > summary.optac-pd-linkbtn:hover, a.optac-pd-linkbtn:hover { color: #3d4129 !important; }
.optac-pd-already[open] > summary.optac-pd-linkbtn { text-decoration: none; }
.optac-pd-hidden-summary { display: none !important; }
.optac-pd-papernew { margin: 6px 0 10px; }
.optac-pd-papernew > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #5f6738; padding: 6px 0; }
.optac-pd-papernew[open] > summary { margin-bottom: 6px; }
.optac-pd-alreadyform .optac-pd-actions { margin-top: 4px; }
.optac-pd-alreadyform { margin-top: 14px; background: #fff; border: 1px solid var(--pd-line); border-radius: 6px; padding: 16px 18px; }
.optac-pd-alreadyform p { margin: 0 0 10px; font-size: 14px; }
.optac-pd-alreadyform textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; font: 400 15px Roboto, Arial, sans-serif; border: 1px solid #c5c9b5; border-radius: 4px; margin-bottom: 10px; }
.optac-pd-alreadyform .optac-pd-check { font-size: 14px; margin-bottom: 10px; }

.optac-pd-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; vertical-align: middle; }
.optac-pd-badge.is-valid { background: #4f7d2c; }
.optac-pd-badge.is-soon { background: #c98a00; }
.optac-pd-badge.is-expired { background: #b3261e; }
.optac-pd-badge.is-minor { background: #4a5a8a; }
tr.is-expired td { background: #fdf3f2; }

/* Read-only document */
.optac-pd-fields { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14px; }
.optac-pd-fields th, .optac-pd-fields td { border-bottom: 1px solid var(--pd-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.optac-pd-fields th { width: 34%; font-weight: 700; }
.optac-pd-fields th.optac-pd-sub { background: var(--pd-bg); color: var(--pd-olive-dark); }
.optac-pd-sigimg { max-width: 320px; width: 100%; height: auto; border: 1px solid var(--pd-line); background: #fff; }
.optac-pd-staff { margin-top: 18px; padding-top: 10px; border-top: 1px dashed var(--pd-line); color: var(--pd-muted); font-size: 13px; }
.optac-pd-staff-h { text-align: center; letter-spacing: .05em; }
.optac-pd-audit { margin-top: 14px; font-size: 12px; color: var(--pd-muted); background: var(--pd-bg); padding: 10px; border-radius: 4px; word-break: break-all; }

@media (max-width: 600px) {
	.optac-pd-orderbox { padding: 16px; }
	.optac-pd-actions > a.optac-pd-btn, .optac-pd-actions > button.optac-pd-btn, .optac-pd-already, .optac-pd-already > summary.optac-pd-btn { width: 100%; box-sizing: border-box; text-align: center; white-space: normal; }
	.optac-pd-already > summary.optac-pd-linkbtn { text-align: left; }
	.optac-pd { margin-top: 28px; padding: 0; }
	.optac-pd-form, .optac-pd-doc { padding: 18px 16px; }
	.optac-pd-doc-head h2 { font-size: 22px; }
	.optac-pd-short { max-width: none; }
	.optac-pd-row > label { min-width: 0; flex: 1 1 100%; }
	.optac-pd-fields th { width: 42%; }
}

@media print {
	.optac-pd-doc { border: 0; padding: 0; }
	.woocommerce-MyAccount-navigation, header, footer, .optac-pd-notice { display: none !important; }
}
