/* GWOG Quotes & Contracts – client pages */
:root {
	--gwog-accent: #1a8fe3;
	--gwog-ink: #222;
	--gwog-muted: #666;
	--gwog-line: #ddd;
	--gwog-paper: #fff;
}

.gwog-wrap {
	max-width: 900px;
	margin: 0 auto 60px;
	padding: 0 16px;
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--gwog-ink);
	font-size: 15px;
	line-height: 1.6;
	box-sizing: border-box;
}
.gwog-wrap *, .gwog-wrap *::before, .gwog-wrap *::after { box-sizing: border-box; }

/* ---------- Toolbar, buttons, messages ---------- */
.gwog-toolbar { display: flex; justify-content: flex-end; gap: 10px; margin: 16px 0; flex-wrap: wrap; }

.gwog-wrap .gwog-btn {
	display: inline-block;
	background: var(--gwog-accent);
	color: #fff;
	border: 1px solid var(--gwog-accent);
	border-radius: 4px;
	padding: 12px 24px;
	font: 600 15px/1.2 inherit;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s;
}
.gwog-wrap .gwog-btn:hover { filter: brightness(1.08); color: #fff; }
.gwog-wrap .gwog-btn:disabled { opacity: .6; cursor: wait; }
.gwog-wrap .gwog-btn-ghost { background: transparent; color: var(--gwog-accent); padding: 9px 18px; font-size: 14px; }
.gwog-wrap .gwog-btn-ghost:hover { background: var(--gwog-accent); color: #fff; }

.gwog-msg {
	background: #f6f7f9;
	border-left: 4px solid var(--gwog-accent);
	padding: 16px 20px;
	margin: 24px 0;
	border-radius: 2px;
}
.gwog-msg.gwog-ok { border-left-color: #2e9d57; background: #f0faf3; }
.gwog-admin-note { background: #fff8e1; border: 1px solid #f0d78a; padding: 8px 14px; font-size: 13px; margin: 16px 0 0; border-radius: 3px; }
.gwog-error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; padding: 10px 14px; border-radius: 4px; margin: 12px 0; }
.gwog-intro { text-align: center; color: var(--gwog-muted); margin: 20px 0 8px; }

/* ---------- Document ---------- */
.gwog-doc {
	background: var(--gwog-paper);
	box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
	border: 1px solid #eee;
	overflow: clip; /* not "hidden", so the initials bar can stay sticky */
}
.gwog-banner img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; }
.gwog-doc-inner { padding: 44px 56px 48px; }

.gwog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.gwog-top-center { justify-content: center; }
.gwog-logo { max-width: 220px; max-height: 90px; width: auto; height: auto; }
.gwog-doc-title { font-size: 26px; font-weight: 300; letter-spacing: .5px; }
.gwog-doc-title span { color: var(--gwog-muted); }

.gwog-label { font-size: 12px; font-weight: 700; color: #444; text-transform: none; display: block; margin-bottom: 2px; }
.gwog-name { color: var(--gwog-accent); font-size: 19px; font-weight: 400; margin-bottom: 4px; }
.gwog-addr { color: #555; font-size: 14px; }

.gwog-parties { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; margin-bottom: 28px; }
.gwog-parties > div { min-width: 0; overflow-wrap: anywhere; }
.gwog-dl { display: grid; grid-template-columns: auto auto; gap: 4px 18px; margin: 0; align-content: start; }
.gwog-dl dt { font-size: 12px; font-weight: 700; color: #444; padding-top: 3px; margin: 0; }
.gwog-dl dd { margin: 0; color: #555; }

.gwog-event { display: flex; gap: 12px 40px; flex-wrap: wrap; background: #f7f8fa; padding: 14px 18px; margin-bottom: 28px; font-size: 14px; }

/* Items */
.gwog-wrap table.gwog-items { width: 100%; border-collapse: collapse; margin: 0 0 8px; border: 0; }
.gwog-items th {
	font-size: 12px; font-weight: 700; text-transform: uppercase; color: #444;
	border: 0; border-bottom: 1px solid #ccc; padding: 8px 6px; text-align: left; background: none;
}
.gwog-items td { border: 0; border-bottom: 1px solid #e3e3e3; padding: 18px 6px; vertical-align: top; background: none; }
.gwog-items .gwog-col-num { text-align: center; width: 110px; color: #555; font-size: 17px; }
.gwog-items th.gwog-col-num { font-size: 12px; }
.gwog-items .gwog-col-total { text-align: right; width: 120px; font-weight: 700; font-size: 17px; }
.gwog-items th.gwog-col-total { font-size: 12px; }
.gwog-item-title { color: var(--gwog-accent); font-size: 19px; margin-bottom: 4px; }
.gwog-item-desc p { margin: 0 0 8px; color: #555; font-size: 14px; }

/* Totals */
.gwog-totals { margin-left: auto; max-width: 380px; padding-top: 10px; }
.gwog-trow { display: flex; justify-content: space-between; gap: 20px; padding: 6px 6px; font-size: 15px; }
.gwog-trow span:last-child { white-space: nowrap; }
.gwog-trow small { display: block; color: var(--gwog-muted); font-size: 12px; }
.gwog-grand { font-weight: 700; font-size: 18px; border-top: 1px solid #ccc; margin-top: 4px; padding-top: 10px; }
.gwog-payment { color: #2e7d4f; }

.gwog-notes { margin-top: 32px; padding-top: 16px; border-top: 1px solid #eee; color: #555; font-size: 14px; }
.gwog-notes p { margin: 0 0 6px; }

/* Accept area */
.gwog-action { text-align: center; margin: 32px 0; }
.gwog-accepted { color: #2e7d4f; font-weight: 600; }
.gwog-consent { display: flex; gap: 10px; align-items: flex-start; justify-content: center; text-align: left; margin: 0 auto 16px; max-width: 620px; cursor: pointer; font-size: 14px; }
.gwog-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--gwog-accent); }

/* ---------- Contract ---------- */
.gwog-contract .gwog-top { margin-bottom: 24px; }
.gwog-contract-title { font-size: 24px; font-weight: 400; text-align: center; margin: 0 0 24px; color: var(--gwog-ink); }
.gwog-contract-body h3 { font-size: 14px; font-weight: 700; letter-spacing: .6px; margin: 28px 0 6px; color: var(--gwog-ink); }
.gwog-contract-body p { margin: 0 0 12px; font-size: 14.5px; color: #333; }
.gwog-section-services h3 { font-size: 14px; font-weight: 700; letter-spacing: .6px; margin: 40px 0 8px; }

.gwog-initials-bar {
	position: sticky; top: 0; z-index: 5;
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	background: #fff; border: 1px solid var(--gwog-line); border-left: 4px solid var(--gwog-accent);
	padding: 10px 14px; margin: 0 0 24px; box-shadow: 0 4px 12px rgba(0,0,0,.05);
	transition: background .3s;
}
.admin-bar .gwog-initials-bar { top: 32px; }
.gwog-initials-bar.is-attention { background: #fff4d6; }
.gwog-initials-bar label { font-weight: 700; font-size: 14px; }
.gwog-wrap .gwog-initials-bar input {
	width: 90px; padding: 6px 10px; font: 600 18px/1.2 inherit; font-family: inherit; text-transform: uppercase;
	border: 1px solid #bbb; border-radius: 3px; letter-spacing: 1px; background: #fff; color: var(--gwog-ink);
}
.gwog-progress { margin-left: auto; font-size: 13px; color: var(--gwog-muted); }
.gwog-progress.is-complete { color: #2e7d4f; font-weight: 600; }

.gwog-initial-box {
	display: inline-flex; align-items: center; gap: 8px;
	border: 1px dashed #bbb; border-radius: 3px; padding: 6px 12px; margin: 0 0 8px;
	font-size: 13px; color: var(--gwog-muted); cursor: pointer; user-select: none; background: #fafafa;
}
label.gwog-initial-box:hover { border-color: var(--gwog-accent); }
.gwog-initial-box input { width: 18px; height: 18px; margin: 0; accent-color: var(--gwog-accent); }
.gwog-initial-box.is-done { border-style: solid; border-color: var(--gwog-accent); background: #fff; color: var(--gwog-ink); }
.gwog-stamp { font-weight: 700; font-size: 16px; letter-spacing: 1px; color: #1d3c8f; min-width: 1em; font-style: italic; }

/* Signatures */
.gwog-sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; }
.gwog-sig-img { display: block; max-width: 100%; height: 90px; object-fit: contain; object-position: left bottom; border-bottom: 1px solid #333; margin-bottom: 6px; }
.gwog-sig-line { height: 90px; border-bottom: 1px solid #333; margin-bottom: 6px; }
.gwog-sig-name { font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: .5px; }
.gwog-sig-date { font-size: 13px; color: var(--gwog-muted); }

.gwog-pad-wrap { position: relative; }
.gwog-pad {
	display: block; width: 100%; height: 150px;
	border: 1px solid #bbb; border-radius: 4px; background: #fff;
	background-image: linear-gradient(to top, transparent 34px, #999 34px, #999 35px, transparent 35px);
	cursor: crosshair;
}
.gwog-wrap .gwog-pad-clear {
	position: absolute; top: 6px; right: 6px; background: #fff; border: 1px solid #ccc; color: #555;
	font-size: 12px; padding: 3px 10px; border-radius: 3px; cursor: pointer;
}
.gwog-pad-hint { font-size: 12px; color: var(--gwog-muted); margin: 4px 0 12px; }
.gwog-field { display: block; font-size: 13px; font-weight: 600; }
.gwog-wrap .gwog-field input {
	display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: 400 16px/1.3 inherit; font-family: inherit;
	border: 1px solid #bbb; border-radius: 3px; background: #fff; color: var(--gwog-ink);
}

#gwog-sign-form .gwog-consent { margin-top: 32px; justify-content: flex-start; max-width: none; }
#gwog-sign-form #gwog-submit { display: block; width: 100%; max-width: 320px; margin: 16px auto 0; padding: 15px; font-size: 17px; }

.gwog-audit { margin-top: 36px; padding-top: 12px; border-top: 1px solid #eee; font-size: 11px; color: #888; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
	.gwog-doc-inner { padding: 24px 18px 28px; }
	.gwog-parties { grid-template-columns: 1fr 1fr; }
	.gwog-dl { grid-column: 1 / -1; }
	.gwog-items thead { display: none; }
	.gwog-items, .gwog-items tbody, .gwog-items tr, .gwog-items td { display: block; width: 100%; }
	.gwog-items tr { border-bottom: 1px solid #e3e3e3; padding: 12px 0; }
	.gwog-items td { border: 0; padding: 2px 0; }
	.gwog-items .gwog-col-num, .gwog-items .gwog-col-total { width: auto; text-align: left; font-size: 14px; display: inline-block; margin-right: 18px; }
	.gwog-items td[data-label]::before { content: attr(data-label) ": "; color: var(--gwog-muted); font-weight: 400; }
	.gwog-totals { max-width: none; }
	.gwog-sign-grid { grid-template-columns: 1fr; gap: 28px; }
	.gwog-progress { margin-left: 0; width: 100%; }
}
@media (max-width: 782px) { .admin-bar .gwog-initials-bar { top: 46px; } }

/* ---------- Print / Save as PDF ---------- */
@media print {
	@page { margin: 12mm; }
	body * { visibility: hidden; }
	.gwog-print, .gwog-print * { visibility: visible; }
	.gwog-print { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; }
	.gwog-noprint, .gwog-noprint * { display: none !important; }
	.gwog-doc-inner { padding: 20px 8px; }
	.gwog-wrap { font-size: 12.5px; }
	.gwog-banner img { max-height: 140px; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.gwog-items tr, .gwog-sign-grid, .gwog-trow, .gwog-initial-box { break-inside: avoid; }
	.gwog-contract-body h3 { break-after: avoid; }
}

/* ---------- Inquiry form [gwog_inquiry] ---------- */
.gwog-inq-wrap { max-width: 760px; margin-bottom: 30px; }
.gwog-inq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 18px; }
.gwog-inq-full { grid-column: 1 / -1; }
.gwog-inq label { display: block; font-size: 13px; font-weight: 600; }
.gwog-wrap .gwog-inq input, .gwog-wrap .gwog-inq select, .gwog-wrap .gwog-inq textarea {
	display: block; width: 100%; margin-top: 5px; padding: 11px 12px; font: 400 16px/1.4 inherit; font-family: inherit;
	border: 1px solid #c8c8c8; border-radius: 3px; background: #fff; color: var(--gwog-ink);
}
.gwog-wrap .gwog-inq input:focus, .gwog-wrap .gwog-inq select:focus, .gwog-wrap .gwog-inq textarea:focus { outline: 2px solid var(--gwog-accent); outline-offset: 1px; border-color: var(--gwog-accent); }
.gwog-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .gwog-inq-grid { grid-template-columns: 1fr; } }

/* ================= v3 ================= */
.gwog-r { text-align: right; }
.gwog-muted { color: var(--gwog-muted); }
.gwog-subh { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #444; margin: 32px 0 8px; }

/* Payment schedule */
.gwog-wrap table.gwog-schedule { width: 100%; border-collapse: collapse; margin: 0 0 8px; border: 0; font-size: 14px; }
.gwog-schedule th { font-size: 12px; font-weight: 700; color: #555; text-align: left; border: 0; border-bottom: 1px solid #ccc; padding: 6px 6px; background: none; }
.gwog-schedule td { border: 0; border-bottom: 1px solid #eee; padding: 10px 6px; background: none; font-variant-numeric: tabular-nums; }
.gwog-schedule th.gwog-r, .gwog-schedule td.gwog-r { text-align: right; }
.gwog-pay { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: #f0f0f0; color: #444; white-space: nowrap; }
.gwog-pay-paid { background: #e3f4e8; color: #1d6a37; }
.gwog-pay-overdue { background: #fde8e7; color: #a12a1f; }
.gwog-pay-due { background: #fff1d6; color: #7a5200; }
.gwog-pay-partial { background: #fff1d6; color: #7a5200; }

.gwog-paybox { border: 1px solid #dfe3e8; border-left: 4px solid var(--gwog-accent); border-radius: 4px; padding: 14px 16px; background: #fbfcfd; margin-top: 10px; }
.gwog-paybox-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; font-size: 14px; }
.gwog-paybox-head strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.gwog-paybox-text p { margin: 0 0 8px; font-size: 14px; color: #444; }
.gwog-paybox .gwog-btn { margin-top: 4px; }
.gwog-nextstep { max-width: 620px; margin: 0 auto 28px; }
.gwog-nextstep h3 { font-size: 17px; margin: 0 0 4px; }

/* Portal */
.gwog-portal { max-width: 760px; }
.gwog-ph { text-align: center; padding: 28px 0 8px; }
.gwog-ph .gwog-logo { max-height: 70px; }
.gwog-hello { font-size: 28px; font-weight: 300; margin: 12px 0 6px; text-align: center; }
.gwog-welcome { text-align: center; color: #555; max-width: 560px; margin: 0 auto 28px; }
.gwog-back { margin: 8px 0 14px; font-size: 14px; }
.gwog-back a, .gwog-docs a { color: var(--gwog-accent); text-decoration: none; }
.gwog-back a:hover, .gwog-docs a:hover { text-decoration: underline; }
.gwog-portal .gwog-card { background: #fff; border: 1px solid #e6e8eb; border-radius: 8px; box-shadow: 0 2px 14px rgba(0,0,0,.05); padding: 26px 28px; margin: 0 0 22px; }
.gwog-pproj-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.gwog-ptitle { font-size: 22px; font-weight: 400; color: var(--gwog-accent); margin: 0 0 4px; line-height: 1.3; }
.gwog-pmeta { margin: 0; color: #555; font-size: 14px; }
.gwog-countdown { flex: none; text-align: center; background: #f5f7f9; border-radius: 8px; padding: 8px 14px; font-size: 12px; color: #555; line-height: 1.2; }
.gwog-countdown b { display: block; font-size: 26px; color: var(--gwog-ink); font-variant-numeric: tabular-nums; }

.gwog-steps { list-style: none; display: flex; margin: 22px 0 6px; padding: 0; counter-reset: s; }
.gwog-steps li { flex: 1; position: relative; text-align: center; font-size: 12px; color: #888; padding-top: 30px; margin: 0; }
.gwog-steps li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: #e3e6ea; }
.gwog-steps li:first-child::before { display: none; }
.gwog-steps li.is-done::before, .gwog-steps li.is-current::before { background: var(--gwog-accent); }
.gwog-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #d5d9de; font-size: 12px; line-height: 20px; color: #fff; z-index: 1; }
.gwog-steps li.is-done .gwog-dot { background: var(--gwog-accent); border-color: var(--gwog-accent); }
.gwog-steps li.is-done { color: #333; }
.gwog-steps li.is-current .gwog-dot { border-color: var(--gwog-accent); box-shadow: 0 0 0 4px rgba(26,143,227,.15); }
.gwog-steps li.is-current { color: var(--gwog-ink); font-weight: 600; }

.gwog-psec { border-top: 1px solid #eef0f2; margin-top: 20px; padding-top: 16px; }
.gwog-psec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #555; margin: 0 0 10px; font-weight: 700; }
.gwog-allset { color: #1d6a37; font-weight: 600; margin: 0; }
.gwog-todos { list-style: none; margin: 0; padding: 0; }
.gwog-todo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 14px; background: #f7f9fb; border-radius: 6px; margin: 0 0 8px; }
.gwog-todo.is-late { background: #fdf1f0; }
.gwog-todo-text strong { display: block; font-size: 15px; }
.gwog-todo-text span { font-size: 13px; color: #666; }
.gwog-todo.is-late .gwog-todo-text span { color: #a12a1f; font-weight: 600; }
.gwog-todo .gwog-btn { padding: 9px 18px; font-size: 14px; }
.gwog-todo-pay { display: block; }
.gwog-todo-pay .gwog-paybox { margin-top: 10px; background: #fff; }
.gwog-docs { list-style: none; margin: 0; padding: 0; }
.gwog-docs li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f2f4; margin: 0; font-size: 15px; }
.gwog-docs li span { color: #666; font-size: 13px; text-align: right; }
.gwog-paysum { display: flex; justify-content: flex-end; gap: 18px; flex-wrap: wrap; font-size: 14px; color: #555; margin-top: 6px; font-variant-numeric: tabular-nums; }
.gwog-paysum strong { color: var(--gwog-ink); }
.gwog-past > summary { cursor: pointer; color: #555; margin: 8px 0 16px; font-weight: 600; }
.gwog-contact { text-align: center; color: #555; padding: 10px 0 30px; }
.gwog-contact h2 { font-size: 18px; font-weight: 400; color: var(--gwog-ink); margin: 0 0 6px; }
.gwog-contact a { color: var(--gwog-accent); }
.gwog-portal-login { max-width: 480px; padding-top: 40px; }
.gwog-portal-login .gwog-btn { margin-top: 12px; }

/* Questionnaire */
.gwog-qintro { color: #555; margin: 4px 0 20px; }
.gwog-qhead { margin: 28px 0 6px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.gwog-qhead h3 { font-size: 17px; margin: 0; }
.gwog-qhead p { margin: 4px 0 0; color: #666; font-size: 14px; }
.gwog-qfield { margin: 18px 0; }
.gwog-qfield > label, .gwog-qfield legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; padding: 0; }
.gwog-qfield fieldset { border: 0; margin: 0; padding: 0; }
.gwog-qhelp { margin: 0 0 6px; font-size: 13px; color: #666; }
.gwog-req { color: #b42318; }
.gwog-wrap .gwog-qfield input:not([type=checkbox]):not([type=radio]), .gwog-wrap .gwog-qfield textarea, .gwog-wrap .gwog-qfield select {
	display: block; width: 100%; padding: 10px 12px; font: 400 16px/1.4 inherit; font-family: inherit; border: 1px solid #c8c8c8; border-radius: 4px; background: #fff; color: var(--gwog-ink);
}
.gwog-wrap .gwog-qfield input:disabled, .gwog-wrap .gwog-qfield textarea:disabled, .gwog-wrap .gwog-qfield select:disabled { background: #f7f7f7; color: #333; }
.gwog-choice { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.gwog-choice input { width: 18px; height: 18px; accent-color: var(--gwog-accent); margin: 0; }
.gwog-qfield.is-missing input, .gwog-qfield.is-missing textarea, .gwog-qfield.is-missing select { border-color: #b42318 !important; }
.gwog-qerr { color: #b42318; font-size: 13px; margin-top: 4px; }
.gwog-qactions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 26px; position: sticky; bottom: 0; background: rgba(255,255,255,.96); padding: 12px 0; border-top: 1px solid #eee; }
.gwog-qsaved { font-size: 13px; color: #888; }

@media (max-width: 600px) {
	.gwog-portal .gwog-card { padding: 20px 18px; }
	.gwog-steps li .gwog-step-label { font-size: 10.5px; display: block; line-height: 1.2; }
	/* Six or more steps: only name the current one so labels don't collide. */
	.gwog-steps li:first-child:nth-last-child(n+6) .gwog-step-label,
	.gwog-steps li:first-child:nth-last-child(n+6) ~ li .gwog-step-label { visibility: hidden; height: 14px; white-space: nowrap; }
	.gwog-steps li:first-child:nth-last-child(n+6).is-current .gwog-step-label,
	.gwog-steps li:first-child:nth-last-child(n+6) ~ li.is-current .gwog-step-label { visibility: visible; font-size: 12px; position: absolute; left: 50%; transform: translateX(-50%); }
	.gwog-steps li:first-child:nth-last-child(n+6).is-current .gwog-step-label { left: 0; transform: none; }
	.gwog-steps li:first-child:nth-last-child(n+6) ~ li:last-child.is-current .gwog-step-label { left: auto; right: 0; transform: none; }
	.gwog-steps li:first-child:nth-last-child(n+6), .gwog-steps li:first-child:nth-last-child(n+6) ~ li { min-width: 0; padding-bottom: 16px; }
	.gwog-todo .gwog-btn { width: 100%; text-align: center; }
	.gwog-pproj-head { flex-direction: column; }
}

/* ---------- Stripe pay buttons ---------- */
.gwog-paybtns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gwog-wrap .gwog-btn-pay { font-size: 16px; padding: 13px 26px; }
.gwog-fee { font-size: 12px; color: #666; }
.gwog-paylink { font-size: 14px; color: var(--gwog-accent); text-decoration: underline; }
.gwog-secure { margin: 2px 0 0; font-size: 12px; color: #777; }
.gwog-otherpay { margin-top: 12px; font-size: 14px; color: #555; }
.gwog-otherpay summary { cursor: pointer; color: #444; }
.gwog-otherpay p { margin: 6px 0 0; }
@media (max-width: 600px) { .gwog-paybtns { align-items: stretch; } .gwog-wrap .gwog-btn-pay { text-align: center; } }

/* ================= v4: sale types, contracts, orders ================= */
.gwog-wrap [hidden] { display: none !important; }

/* Item photos, discount */
.gwog-item-img { float: left; width: 84px; height: 84px; object-fit: cover; border-radius: 4px; margin: 2px 14px 6px 0; }
.gwog-item-text { overflow: hidden; }
.gwog-trow.gwog-discount { color: #1d6a37; }

/* Accept / decline */
.gwog-addr-field { max-width: 620px; margin: 0 auto 16px; text-align: left; }
.gwog-wrap .gwog-field textarea {
	display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: 400 16px/1.4 inherit; font-family: inherit;
	border: 1px solid #bbb; border-radius: 3px; background: #fff; color: var(--gwog-ink);
}
.gwog-decline { margin: 22px auto 0; max-width: 620px; text-align: left; }
.gwog-decline > summary { cursor: pointer; color: var(--gwog-muted); font-size: 13px; text-align: center; }
.gwog-decline form { margin-top: 12px; padding: 14px 16px; border: 1px solid #e3e3e3; border-radius: 4px; background: #fafafa; }
.gwog-decline .gwog-btn { margin-top: 10px; }

/* PDF contracts */
.gwog-pdf-box { border: 1px solid #e0e3e7; border-radius: 6px; padding: 16px 18px; margin: 0 0 16px; background: #fbfcfd; }
.gwog-pdf-box p { margin: 0 0 12px; }
.gwog-pdf-embed { display: block; width: 100%; height: 640px; border: 1px solid #d5d9de; border-radius: 4px; background: #fff; margin: 0 0 12px; }
.gwog-pdf-meta { font-size: 12px; color: var(--gwog-muted); }
.gwog-hash { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; word-break: break-all; }
.gwog-read-box { display: flex; }

/* Portal: order status */
.gwog-ship { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 16px 0 0; padding: 12px 14px; border-radius: 6px; background: #f1f7fd; border-left: 4px solid var(--gwog-accent); font-size: 15px; }
.gwog-ship-delivered { background: #f0faf3; border-left-color: #2e9d57; }
.gwog-ship a { color: var(--gwog-accent); }

/* Portal: updates & proofs */
.gwog-pupd { padding: 14px 0; border-bottom: 1px solid #f1f2f4; scroll-margin-top: 80px; }
.gwog-pupd:last-child { border-bottom: 0; }
.gwog-pupd-head { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--gwog-muted); margin-bottom: 4px; }
.gwog-pupd-text p { margin: 0 0 8px; }
.gwog-pupd-text a { color: var(--gwog-accent); overflow-wrap: anywhere; }
.gwog-pupd-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.gwog-pupd-imgs.is-single { grid-template-columns: 1fr; }
.gwog-pupd-imgs img { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 6px; }
.gwog-pupd-imgs.is-single img { height: auto; max-height: 520px; object-fit: contain; background: #f5f6f7; }
.gwog-appr-form { margin-top: 10px; padding: 14px 16px; background: #f7f9fb; border-radius: 6px; }
.gwog-appr-q { margin: 0 0 10px; font-weight: 600; }
.gwog-appr-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.gwog-appr-changes { margin-bottom: 10px; }
.gwog-pupd-resp { margin: 6px 0 0; font-size: 14px; color: #555; }

@media (max-width: 700px) {
	.gwog-pdf-embed { display: none; } /* Phones open the PDF in their own viewer. */
	.gwog-item-img { width: 64px; height: 64px; margin-right: 10px; }
}
@media print {
	.gwog-pdf-box { border: 0; padding: 0; background: none; }
}
