/**
 * The feedback tab and panel. Plain CSS with its own colours, so it looks
 * the same on every page whatever the page's own styles are doing.
 */

.cong-fb-tab {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 99990;
	padding: 12px 8px;
	border: 0;
	border-radius: 10px 0 0 10px;
	background: #0b2a42;
	color: #fff;
	font: 700 14px/1 system-ui, -apple-system, Segoe UI, sans-serif;
	letter-spacing: 0.04em;
	writing-mode: vertical-rl;
	transform: translateY(-50%);
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.2);
	cursor: pointer;
}

.cong-fb-tab:hover,
.cong-fb-tab:focus-visible {
	background: #22507a;
	outline: none;
}

.cong-fb-tab[aria-expanded="true"] {
	background: #aebc21;
	color: #0b2a42;
}

@media print {
	.cong-fb-tab,
	.cong-fb-panel {
		display: none !important;
	}
}

.cong-fb-panel {
	position: fixed;
	right: 52px;
	bottom: 24px;
	z-index: 99991;
	width: min(380px, calc(100vw - 72px));
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 18px 20px 20px;
	border-radius: 16px;
	background: #fff;
	color: #0b2a42;
	font: 15px/1.45 system-ui, -apple-system, Segoe UI, sans-serif;
	box-shadow: 0 12px 40px rgb(11 42 66 / 0.28);
}

.cong-fb-panel[hidden],
.cong-fb-panel [hidden] {
	display: none !important;
}

@media (max-width: 600px) {
	.cong-fb-panel {
		right: 8px;
		bottom: 8px;
		left: 8px;
		width: auto;
		max-height: 85vh;
	}
}

.cong-fb-panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.cong-fb-panel h2 {
	margin: 0;
	color: #0b2a42;
	font: 700 18px/1.25 system-ui, -apple-system, Segoe UI, sans-serif;
}

.cong-fb-close {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #eef3f7;
	color: #0b2a42;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.cong-fb-form {
	display: grid;
	gap: 10px;
}

.cong-fb-kinds {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
}

.cong-fb-kinds legend,
.cong-fb-label {
	margin-bottom: 4px;
	padding: 0;
	color: #0b2a42;
	font-weight: 700;
	font-size: 14px;
}

.cong-fb-kind {
	cursor: pointer;
}

.cong-fb-kind input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cong-fb-kind span {
	display: inline-block;
	padding: 6px 12px;
	border: 1.5px solid #c9d6e0;
	border-radius: 999px;
	font-size: 14px;
}

.cong-fb-kind input:checked + span {
	border-color: #0b2a42;
	background: #0b2a42;
	color: #fff;
}

.cong-fb-kind input:focus-visible + span {
	outline: 2px solid #aebc21;
	outline-offset: 2px;
}

.cong-fb-form textarea,
.cong-fb-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1.5px solid #c9d6e0;
	border-radius: 10px;
	background: #fff;
	color: #0b2a42;
	font: inherit;
}

.cong-fb-form textarea:focus,
.cong-fb-form input[type="email"]:focus {
	border-color: #0b2a42;
	outline: none;
}

.cong-fb-spot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.cong-fb-point,
.cong-fb-again {
	padding: 8px 14px;
	border: 1.5px solid #0b2a42;
	border-radius: 999px;
	background: #fff;
	color: #0b2a42;
	font: 700 14px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
	cursor: pointer;
}

.cong-fb-point::before {
	content: "⌖ ";
}

.cong-fb-spotted {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	color: #1f7a2e;
	font-weight: 700;
	font-size: 14px;
}

.cong-fb-link {
	padding: 0;
	border: 0;
	background: none;
	color: #4a6a7e;
	font: inherit;
	font-weight: 400;
	text-decoration: underline;
	cursor: pointer;
}

.cong-fb-device {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 8px;
	align-items: start;
	font-size: 14px;
	cursor: pointer;
}

.cong-fb-device input {
	margin-top: 3px;
}

.cong-fb-device small {
	grid-column: 2;
	color: #5b6b78;
	font-size: 12px;
}

.cong-fb-trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cong-fb-error {
	margin: 0;
	color: #b32d2e;
	font-weight: 700;
}

.cong-fb-send {
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: #0b2a42;
	color: #fff;
	font: 700 15px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
	cursor: pointer;
}

.cong-fb-send:disabled {
	opacity: 0.6;
	cursor: wait;
}

.cong-fb-thanks p {
	margin: 0 0 12px;
}

/* Pointing at the spot. */
.cong-fb-layer {
	position: fixed;
	inset: 0;
	z-index: 99995;
	background: rgb(11 42 66 / 0.18);
	cursor: crosshair;
	touch-action: none;
}

.cong-fb-hint {
	position: fixed;
	top: 12px;
	left: 50%;
	margin: 0;
	padding: 10px 16px;
	border-radius: 999px;
	background: #0b2a42;
	color: #fff;
	font: 700 14px/1.3 system-ui, -apple-system, Segoe UI, sans-serif;
	transform: translateX(-50%);
	pointer-events: none;
	white-space: nowrap;
}

.cong-fb-box {
	position: fixed;
	border: 3px solid #aebc21;
	border-radius: 6px;
	background: rgb(174 188 33 / 0.15);
	box-shadow: 0 0 0 9999px rgb(11 42 66 / 0.25);
	pointer-events: none;
}

/* A reported spot, redrawn for staff. */
.cong-fb-mark {
	position: absolute;
	z-index: 99980;
	border: 3px solid #d63638;
	border-radius: 6px;
	background: rgb(214 54 56 / 0.08);
	pointer-events: none;
}

.cong-fb-mark span {
	position: absolute;
	top: -26px;
	left: -3px;
	padding: 2px 8px;
	border-radius: 6px 6px 6px 0;
	background: #d63638;
	color: #fff;
	font: 700 12px/20px system-ui, -apple-system, Segoe UI, sans-serif;
}
