/* Site Review — front-end. Everything is namespaced .sr-* and sits on its own
   stacking layer; the host site's styles are reset on the root. */

.sr-root,
.sr-root * {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}

/* Colour flows down from each component; the host site's colours stop here. */
.sr-root * {
	color: inherit;
}

.sr-root {
	color: #1d1d1f;
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	overflow: visible;
	z-index: 2147483000;
}

.sr-root button {
	cursor: pointer;
	border: 0;
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	background: none;
	box-shadow: none;
	text-decoration: none;
	border-radius: 0;
	min-height: 0;
	min-width: 0;
	width: auto;
}

/* Floating button: dark pill with a pen icon and the label; red while it waits
   for a drag. The counter shows how many points this page has and toggles
   the pins. */
.sr-root .sr-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483004;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 18px 0 16px;
	border-radius: 999px;
	background: #1d1d1f;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;
	transition: background-color .25s, transform .2s, box-shadow .25s;
	-webkit-tap-highlight-color: transparent;
}

.sr-root .sr-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .1) inset;
}

.sr-root .sr-fab:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.sr-root .sr-fab svg {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sr-root .sr-fab__label {
	color: #fff;
}

.sr-root .sr-fab__count {
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 11px;
	background: rgba(255, 255, 255, .2);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	transition: background-color .2s;
}

.sr-root .sr-fab__count:hover {
	background: rgba(255, 255, 255, .34);
}

.sr-pins-hidden .sr-root .sr-fab__count {
	text-decoration: line-through;
	opacity: .7;
}

/* Red while it waits for a drag or click. */
.sr-root .sr-fab.is-armed {
	background: #e5484d;
	box-shadow: 0 10px 30px rgba(229, 72, 77, .4), 0 0 0 1px rgba(255, 255, 255, .12) inset;
}

/* Hint bar while waiting for a drag */
.sr-root .sr-hint {
	position: fixed;
	left: 50%;
	top: 14px;
	z-index: 2147483003;
	transform: translateX(-50%);
	max-width: calc(100vw - 32px);
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(29, 29, 31, .92);
	color: #fff;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	opacity: 0;
	transition: opacity .25s;
}

.sr-armed .sr-root .sr-hint {
	opacity: 1;
}

/* Selection overlay: only while armed, so the page stays usable otherwise */
.sr-root .sr-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: none;
	cursor: crosshair;
	touch-action: none;
}

.sr-armed .sr-root .sr-overlay {
	display: block;
}

/* Document-space layer: selection box and pins */
.sr-root .sr-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	z-index: 2147483002;
	pointer-events: none;
}

.sr-root .sr-box {
	position: absolute;
	border: 2px solid #e5484d;
	border-radius: 3px;
	background: rgba(229, 72, 77, .06);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 9999px rgba(20, 20, 20, .18);
	display: none;
}

.sr-root .sr-box.is-point {
	border-radius: 50%;
	background: rgba(229, 72, 77, .18);
}

.sr-root .sr-box.is-visible {
	display: block;
}

/* Ink: pen strokes on a viewport canvas */
.sr-root .sr-ink {
	position: fixed;
	inset: 0;
	z-index: 2147483003;
	display: none;
	pointer-events: none;
	touch-action: none;
}

.sr-root .sr-ink.is-visible {
	display: block;
}

.sr-pen .sr-root .sr-ink {
	pointer-events: auto;
	cursor: crosshair;
}

/* Pins of existing points: always on the page, hover or tap for the note */
.sr-pins-hidden .sr-root .sr-pins {
	display: none;
}

.sr-root .sr-pin {
	position: absolute;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border-radius: 50%;
	background: #e5484d;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3), 0 0 0 2px #fff;
	pointer-events: auto;
	cursor: pointer;
	transition: opacity .2s;
}

.sr-root .sr-pin.is-done {
	background: #2e9e5b;
}

.sr-root .sr-pin.is-busy {
	opacity: .4;
	pointer-events: none;
}

.sr-root .sr-pin__tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%);
	width: max-content;
	max-width: 280px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #1d1d1f;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	display: none;
	cursor: default;
}

.sr-root .sr-pin:hover .sr-pin__tip,
.sr-root .sr-pin.is-open .sr-pin__tip {
	display: block;
}

.sr-root .sr-pin__text {
	white-space: pre-wrap;
	color: #fff;
}

.sr-root .sr-pin__tip small {
	display: block;
	margin-top: 6px;
	color: #a1a1a6;
	font-size: 11px;
}

.sr-root .sr-pin__x {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}

.sr-root .sr-pin__x:hover {
	background: rgba(255, 255, 255, .22);
}

.sr-root .sr-pin__x svg {
	width: 11px;
	height: 11px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
}

/* Panel */
.sr-root .sr-panel {
	position: fixed;
	z-index: 2147483005;
	width: 320px;
	max-width: calc(100vw - 24px);
	padding: 14px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .06);
	display: none;
}

.sr-root .sr-panel.is-visible {
	display: block;
}

.sr-root .sr-panel__tools {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.sr-root .sr-tool {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 10px;
	border-radius: 8px;
	background: #f2f2f4;
	color: #1d1d1f;
	font-size: 12px;
	font-weight: 600;
}

.sr-root .sr-tool svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sr-root .sr-tool.is-active {
	background: #e5484d;
	color: #fff;
}

.sr-root .sr-panel textarea,
.sr-root .sr-panel input[type="text"] {
	display: block;
	width: 100%;
	margin: 0 0 8px;
	padding: 9px 10px;
	border: 1px solid #d2d2d7;
	border-radius: 8px;
	background: #fff;
	color: #1d1d1f;
	font-size: 14px;
	line-height: 1.4;
	outline: none;
	resize: vertical;
	box-shadow: none;
	min-height: 0;
}

.sr-root .sr-panel textarea {
	min-height: 84px;
}

.sr-root .sr-panel textarea:focus,
.sr-root .sr-panel input[type="text"]:focus {
	border-color: #1d1d1f;
}

.sr-root .sr-panel__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 4px;
}

.sr-root .sr-btn {
	height: 34px;
	padding: 0 14px;
	border-radius: 8px;
	background: #f2f2f4;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 600;
}

.sr-root .sr-btn--primary {
	background: #1d1d1f;
	color: #fff;
}

.sr-root .sr-btn:disabled {
	opacity: .5;
	cursor: wait;
}

.sr-root .sr-panel__error {
	margin: -2px 0 8px;
	color: #c62828;
	font-size: 12px;
	display: none;
}

.sr-root .sr-panel__error.is-visible {
	display: block;
}

.sr-root .sr-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* "Klaar met reviewen", bottom-left */
.sr-root .sr-done {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 2147483004;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 44px;
	padding: 0 16px 0 14px;
	border-radius: 999px;
	background: #fff;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .08);
	transition: transform .2s, background-color .25s, color .25s;
}

.sr-root .sr-done:hover:not(:disabled) {
	transform: translateY(-2px);
}

.sr-root .sr-done svg {
	width: 16px;
	height: 16px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sr-root .sr-done.is-sent {
	background: #e4f7e9;
	color: #1d6b31;
	cursor: default;
}

.sr-root .sr-done:disabled {
	opacity: .9;
}

/* Confirmation */
.sr-root .sr-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483007;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 20, 20, .45);
}

.sr-root .sr-modal.is-visible {
	display: flex;
}

.sr-root .sr-modal__box {
	width: 420px;
	max-width: 100%;
	padding: 22px 22px 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.sr-root .sr-modal__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #1d1d1f;
}

.sr-root .sr-modal__text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #3a3a3c;
}

.sr-root .sr-modal input[type="text"] {
	display: block;
	width: 100%;
	margin: 0 0 10px;
	padding: 9px 10px;
	border: 1px solid #d2d2d7;
	border-radius: 8px;
	background: #fff;
	color: #1d1d1f;
	font-size: 14px;
	outline: none;
	box-shadow: none;
	min-height: 0;
}

.sr-root .sr-modal input[type="text"]:focus {
	border-color: #1d1d1f;
}

/* Toast */
.sr-root .sr-toast {
	position: fixed;
	left: 50%;
	bottom: 80px;
	z-index: 2147483006;
	transform: translate(-50%, 12px);
	max-width: calc(100vw - 32px);
	padding: 10px 16px;
	border-radius: 10px;
	background: #1d1d1f;
	color: #fff;
	font-size: 13px;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
}

.sr-root .sr-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* While the screenshot is taken, the whole tool steps out of the frame. */
.sr-capturing .sr-root {
	visibility: hidden !important;
}

@media (max-width: 640px) {
	.sr-root .sr-panel {
		left: 12px !important;
		right: 12px !important;
		top: auto !important;
		bottom: 12px !important;
		width: auto;
		max-width: none;
	}

	.sr-root .sr-fab {
		right: 12px;
		bottom: 12px;
		height: 44px;
	}

	.sr-root .sr-done {
		left: 12px;
		bottom: 12px;
		height: 40px;
		padding: 0 12px;
		font-size: 12px;
	}

	.sr-root .sr-done span {
		max-width: 120px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.sr-root .sr-hint {
		top: 10px;
		font-size: 12px;
	}
}
