/* MentorsBoss — Google Review Link Generator tool styles
 * Loaded only on /tools/google-review-link-generator/ (see
 * functions.php). Scoped under .gr-tool. Uses the theme's own
 * variables (--navy, --violet, --gold, --ink, --line, --mist)
 * so the tool stays in step with the rest of the site. No new
 * dependency. Print styles live at the bottom of this file.
 */

/* Layout (25 Nov 2026): form card + 360px output panel in a grid
   (minmax(0,1fr) 360px). The panel gets a DEFINITE inner column
   (grid-template-columns:minmax(0,1fr)) and min-width:0 on the panel
   and every card inside it — learned the hard way on the Schema
   Generator and UTM Builder: an `auto` inner column sizes to its
   widest min-content child (a long URL, a long Place ID, a long
   message line) and spills past 360px. Long content must
   ellipsise or scroll internally, never push a card wider. */
.gr-tool{
	background:linear-gradient(135deg,var(--navy) 0%,var(--navy3) 55%,#241056 100%);
	border-radius:18px;
	padding:28px;
	color:#DBE2F5;
}
.gr-tool h2{color:#fff}
.gr-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.gr-form-card,.gr-output{min-width:0}
.gr-output{position:sticky;top:84px;align-self:start}
.gr-form-card{
	background:#fff;color:var(--ink);border-radius:14px;padding:22px;
	box-shadow:0 18px 40px rgba(6,13,36,.35);
}
.gr-form-card .gr-label{color:var(--navy)}
.gr-field{margin-bottom:16px}
.gr-label{display:block;font-size:14px;font-weight:700;color:var(--navy);margin-bottom:6px}
.gr-req{color:#B91C1C}
.gr-input{
	width:100%;font:inherit;font-size:15px;color:var(--ink);
	background:#fff;border:1px solid var(--line);border-radius:8px;
	padding:10px 12px;min-height:44px;
}
.gr-input:focus{outline:2px solid var(--violet);outline-offset:1px;border-color:var(--violet)}
textarea.gr-input{resize:vertical;min-height:84px;line-height:1.5}
.gr-hint{font-size:13px;color:var(--ink-soft);margin:5px 0 0;line-height:1.45}
.gr-error{
	display:none;font-size:14px;line-height:1.55;font-weight:600;
	background:#FDECEC;color:#991B1B;border-radius:10px;
	padding:10px 12px;margin:0 0 16px;
}
.gr-note{
	font-size:13.5px;color:var(--ink-soft);line-height:1.6;margin:0;
}
.gr-note b{color:var(--ink)}
.gr-note a{color:var(--violet-d);font-weight:700;text-decoration:none}
.gr-output{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.gr-output>*{min-width:0}
.gr-link-card{background:var(--navy2);border-radius:14px;padding:18px 20px;box-shadow:0 18px 40px rgba(6,13,36,.35)}
.gr-link-card h3{color:#fff;font-size:15px;margin:0 0 12px}
.gr-link{
	font-family:"JetBrains Mono",ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;
	font-size:12.5px;line-height:1.6;color:#D8CCFF;background:transparent;
	border:0;margin:0;padding:0;white-space:pre-wrap;word-break:break-all;overflow:auto;max-height:120px;
}
.gr-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.gr-actions .btn{flex:1 1 auto}
/* The theme's .btn-ghost is dark navy text for LIGHT backgrounds —
   inside the dark link card it would be dark-on-dark. Light ghost
   styling for the Share button on dark surfaces (same fix as the
   UTM Builder). */
.gr-actions .btn-ghost{color:#DBE2F5;border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.06)}
.gr-actions .btn-ghost:hover{border-color:#fff;color:#fff;background:rgba(255,255,255,.12)}
.gr-link-note{font-size:13.5px;color:#AEBADD;line-height:1.6;margin:12px 0 0}
.gr-qr-card{
	background:#fff;color:var(--ink);border-radius:14px;padding:18px 20px;
	box-shadow:0 18px 40px rgba(6,13,36,.35);text-align:center;
}
.gr-qr-card h3{color:var(--navy);font-size:15px;margin:0 0 12px;text-align:left}
.gr-qr-card canvas{display:block;margin:0 auto 12px;border-radius:8px;max-width:100%;height:auto;min-width:0}
.gr-qr-note{font-size:13.5px;color:var(--ink-soft);margin:0 0 12px;line-height:1.55;text-align:left}
.gr-qr-controls{
	display:flex;flex-wrap:wrap;gap:14px;align-items:center;
	justify-content:flex-start;text-align:left;margin:0 0 12px;
}
.gr-qr-control{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;color:var(--navy)}
.gr-qr-control input[type="color"]{
	width:44px;height:36px;padding:2px;border:1px solid var(--line);
	border-radius:8px;background:#fff;cursor:pointer;
}
.gr-qr-control input[type="checkbox"]{width:18px;height:18px;accent-color:var(--violet);cursor:pointer}
.gr-messages-card{
	background:#fff;color:var(--ink);border-radius:14px;padding:18px 20px;
	box-shadow:0 18px 40px rgba(6,13,36,.35);border:1px solid var(--line);
}
.gr-msg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.gr-msg-grid .gr-msg-block{margin-bottom:0}
.gr-messages-card h3{color:var(--navy);font-size:15px;margin:0 0 12px}
.gr-msg-block{margin-bottom:16px}
.gr-msg-block:last-child{margin-bottom:0}
.gr-msg-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.gr-msg-head b{font-size:14px;color:var(--navy)}
.gr-msg-open{font-size:13px;font-weight:700;color:var(--violet-d);text-decoration:none;white-space:nowrap}
.gr-msg-open[aria-disabled="true"]{color:var(--ink-soft);pointer-events:none;text-decoration:none}
.gr-msg{
	width:100%;font:inherit;font-size:14px;line-height:1.55;color:var(--ink);
	background:#fff;border:1px solid var(--line);border-radius:8px;
	padding:10px 12px;min-height:84px;resize:vertical;word-break:break-word;
}
.gr-msg:focus{outline:2px solid var(--violet);outline-offset:1px;border-color:var(--violet)}
.gr-msg-subject{min-height:44px;resize:none}
.gr-msg-copy{
	font:inherit;font-size:13.5px;font-weight:700;color:var(--violet-d);
	background:var(--violet-100);border:1px solid #DDD6FE;border-radius:999px;
	padding:6px 14px;min-height:32px;cursor:pointer;margin-top:8px;
}
.gr-msg-copy:hover{background:var(--violet);color:#fff}
.gr-msg-copy:disabled{opacity:.45;cursor:not-allowed}
.gr-print-wrap{max-width:460px;margin:0 auto;text-align:center}
.gr-print-wrap .btn{margin-top:14px}
.gr-print-card{
	background:#fff;color:var(--ink);border-radius:14px;padding:22px 20px;
	box-shadow:0 18px 40px rgba(6,13,36,.35);border:1px solid var(--line);text-align:center;
}
.gr-print-name{font-size:19px;font-weight:800;color:var(--navy);margin:0 0 4px;word-break:break-word}
.gr-print-line{font-size:14px;color:var(--ink-soft);line-height:1.55;margin:0 0 14px}
.gr-print-card canvas{display:block;margin:0 auto 14px;border-radius:8px;max-width:100%;height:auto;min-width:0}
.gr-print-card .gr-print-note{font-size:12.5px;color:var(--ink-soft);margin:12px 0 0;line-height:1.5}
.gr-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.gr-guide-list{margin:0 0 16px;padding-left:20px;color:var(--ink-soft);font-size:16px;line-height:1.7}
.gr-guide-list li{margin-bottom:8px}
.gr-guide-list li::marker{color:var(--violet)}
.gr-guide-list b{color:var(--ink)}
.gr-guide-list a{color:var(--violet-d);font-weight:700;text-decoration:none}

@media (max-width:900px){
	.gr-layout{grid-template-columns:1fr}
	.gr-output{position:static}
	.gr-tool{padding:20px 16px}
	.gr-form-card{padding:18px 16px}
	.gr-msg-grid{grid-template-columns:1fr}
}

/* Print stylesheet: only the printable review card prints.
   Everything else on the page is hidden; the card prints at the
   top of the page. The Print button sits outside the card, so it
   never prints either. */
@media print{
	body *{visibility:hidden}
	#gr-print-card,#gr-print-card *{visibility:visible}
	#gr-print-card{
		position:absolute;left:0;top:0;width:100%;max-width:460px;
		margin:0;box-shadow:none;border:1px solid #ddd;
	}
}
