/* Highlight to Reddit - front end. Navy / red / white / gold, large readable type, high contrast. */

.htr-ui, .htr-ui * { box-sizing: border-box; }

/* Floating button */
.htr-float {
	position: absolute;
	z-index: 2147483000;
	display: none;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 18px;
	min-height: 48px;
	background: #13294B;
	color: #FFFFFF;
	border: 3px solid #C9A227;
	border-radius: 999px;
	font: 700 18px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	white-space: nowrap;
}
.htr-float.htr-visible { display: inline-flex; }
.htr-float:hover { background: #0B1A33; color: #FFFFFF; }
.htr-float:focus-visible { outline: 4px solid #B3192C; outline-offset: 3px; }
.htr-float-icon { font-size: 20px; color: #C9A227; }

/* Overlay + dialog */
.htr-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(11, 26, 51, 0.72);
}
.htr-overlay.htr-open { display: flex; }
html.htr-noscroll { overflow: hidden; }

.htr-dialog {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 28px 24px;
	background: #FFFFFF;
	color: #111111;
	border-top: 8px solid #13294B;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	font: 400 18px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	text-align: left;
}

.htr-heading {
	margin: 0 40px 18px 0;
	padding: 0;
	color: #13294B;
	font: 800 26px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.htr-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	background: #FFFFFF;
	color: #13294B;
	border: 2px solid #13294B;
	border-radius: 50%;
	font: 700 26px/1 Arial, sans-serif;
	cursor: pointer;
}
.htr-close:hover { background: #13294B; color: #FFFFFF; }

.htr-label {
	display: block;
	margin: 16px 0 6px;
	color: #111111;
	font-size: 18px;
	font-weight: 700;
}
.htr-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.htr-label-row .htr-label { margin-bottom: 6px; }
.htr-count { color: #333333; font-size: 16px; }

.htr-input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	background: #FFFFFF;
	color: #111111;
	border: 2px solid #4A4A4A;
	border-radius: 8px;
	font: 400 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
textarea.htr-input { resize: vertical; }
.htr-input:focus { outline: 3px solid #13294B; outline-offset: 1px; border-color: #13294B; }
.htr-input::placeholder { color: #555555; }

.htr-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0 0;
	color: #111111;
	font-size: 18px;
	cursor: pointer;
}
.htr-check input { width: 24px; height: 24px; margin: 0; accent-color: #13294B; }

.htr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.htr-btn {
	margin: 0;
	padding: 14px 22px;
	min-height: 52px;
	border-radius: 8px;
	font: 700 18px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.htr-btn:focus-visible { outline: 4px solid #C9A227; outline-offset: 2px; }
.htr-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.htr-btn-primary { background: #B3192C; color: #FFFFFF; border: 2px solid #B3192C; }
.htr-btn-primary:hover { background: #8E1222; border-color: #8E1222; color: #FFFFFF; }
.htr-btn-secondary { background: #13294B; color: #FFFFFF; border: 2px solid #13294B; }
.htr-btn-secondary:hover { background: #0B1A33; color: #FFFFFF; }
.htr-btn-ghost { background: #FFFFFF; color: #13294B; border: 2px solid #13294B; }
.htr-btn-ghost:hover { background: #F2F4F8; color: #13294B; }

.htr-status { margin-top: 18px; font-size: 18px; line-height: 1.5; color: #111111; }
.htr-status:empty { display: none; }
.htr-status-ok, .htr-status-err { padding: 12px 14px; border-radius: 8px; border-left: 6px solid; }
.htr-status-ok { background: #F2F4F8; border-color: #13294B; color: #13294B; font-weight: 600; }
.htr-status-err { background: #FDF1F2; border-color: #B3192C; color: #7A0F1C; font-weight: 600; }
.htr-status a { color: #B3192C; font-weight: 700; text-decoration: underline; }

.htr-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

@media (max-width: 600px) {
	.htr-dialog { padding: 22px 18px 18px; }
	.htr-heading { font-size: 22px; }
	.htr-actions .htr-btn { width: 100%; }
}

/* Link-in-comment option and follow-up button */
.htr-check.htr-sub { margin-left: 34px; margin-top: 10px; align-items: flex-start; }
.htr-check.htr-sub input { margin-top: 3px; flex: 0 0 auto; }
.htr-step2 { display: block; margin-top: 14px; }

.htr-longwarn { margin-top: 12px; padding: 6px 16px 14px; background: #FDF1F2; border: 2px solid #B3192C; border-radius: 8px; color: #7A0F1C; font-size: 17px; font-weight: 600; line-height: 1.5; }
.htr-longwarn p { margin: 8px 0; color: #111111; font-weight: 400; }
.htr-longwarn .htr-longwarn-title { color: #7A0F1C; font-weight: 700; }
.htr-longwarn .htr-btn { margin-top: 6px; }
.htr-count.htr-count-over { color: #7A0F1C; font-weight: 700; }
