/*! Cantata Site Feedback widget
 * All selectors are #csf-root-prefixed so they out-rank theme / Elementor kit
 * rules (e.g. `.elementor-kit-5 button`, `button span{color:…}`). Color and
 * background on interactive elements carry !important for the same reason —
 * host-site button skins must never bleed into the widget.
 */

#csf-root,
#csf-root *,
#csf-root *::before,
#csf-root *::after {
	box-sizing: border-box;
}

#csf-root {
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

#csf-root button {
	-webkit-appearance: none;
	appearance: none;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	outline: none;
	margin: 0;
}
#csf-root button span {
	color: inherit !important;
	font-family: inherit;
	text-transform: none;
	letter-spacing: inherit;
}
#csf-root button svg {
	color: inherit !important;
	fill: none;
}
#csf-root button:focus-visible {
	outline: 2px solid #B97D33;
	outline-offset: 2px;
}

/* ---- Launcher tab (small, flush with bottom edge) ----------------------- */

#csf-root .csf-tab {
	position: fixed;
	bottom: env(safe-area-inset-bottom, 0px);
	z-index: 2147483000;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	padding: 6px 12px 7px;
	border: 0;
	border-radius: 9px 9px 0 0;
	background: rgba(17, 36, 44, 0.92) !important;
	color: #FCF8F1 !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 -2px 10px rgba(17, 36, 44, 0.18);
	transition: background-color 0.15s ease, padding-bottom 0.15s ease;
}
#csf-root .csf-pos-right { right: 22px; }
#csf-root .csf-pos-left { left: 22px; }
#csf-root .csf-tab:hover,
#csf-root .csf-tab:focus-visible {
	background: #B97D33 !important;
	color: #fff !important;
	padding-bottom: 10px;
}
#csf-root .csf-tab svg {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
}
#csf-root.csf-open .csf-tab,
#csf-root.csf-selecting .csf-tab { display: none; }

@media (max-width: 520px) {
	#csf-root .csf-tab span { display: none; }
	#csf-root .csf-tab { padding: 7px 11px 8px; }
	#csf-root .csf-tab svg { width: 15px; height: 15px; }
}

/* ---- Region selection mode ---------------------------------------------- */

#csf-root .csf-select {
	position: fixed;
	inset: 0;
	z-index: 2147483150;
	display: none;
	cursor: crosshair;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}
#csf-root.csf-selecting .csf-select { display: block; }

#csf-root .csf-select-rect {
	position: fixed;
	border: 2px solid #B97D33;
	background: rgba(252, 248, 241, 0.05);
	box-shadow: 0 0 0 100000px rgba(17, 36, 44, 0.34);
	pointer-events: none;
}

#csf-root .csf-select-hint {
	position: fixed;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	max-width: calc(100vw - 24px);
	padding: 8px 10px 8px 14px;
	border-radius: 999px;
	background: rgba(17, 36, 44, 0.95);
	color: #FCF8F1;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 6px 24px rgba(10, 25, 30, 0.4);
	cursor: default;
}
#csf-root .csf-hint-btn {
	display: inline-flex;
	align-items: center;
	width: auto;
	padding: 5px 11px;
	border: 1px solid rgba(252, 248, 241, 0.45) !important;
	border-radius: 999px;
	background: transparent !important;
	color: #FCF8F1 !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
#csf-root .csf-hint-btn:hover,
#csf-root .csf-hint-btn:focus-visible {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: #E7B87A !important;
	color: #E7B87A !important;
}

#csf-root .csf-capchip {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 12px;
	background: #fff;
	color: #33454a;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 12px 40px rgba(10, 25, 30, 0.35);
}

#csf-root .csf-spin {
	width: 18px;
	height: 18px;
	border: 3px solid #cfdbdd;
	border-top-color: var(--csf-accent, #1E3C49);
	border-radius: 50%;
	animation: csf-rot 0.8s linear infinite;
	flex: 0 0 auto;
}
@keyframes csf-rot { to { transform: rotate(360deg); } }

/* ---- Overlay + modal ---------------------------------------------------- */

#csf-root .csf-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 36, 44, 0.55);
}
#csf-root.csf-open .csf-overlay { display: flex; }

#csf-root .csf-modal {
	width: 100%;
	max-width: 1400px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	color: #22333a;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(10, 25, 30, 0.45);
	font-family: inherit;
	text-align: left;
}

#csf-root .csf-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 18px;
	background: linear-gradient(120deg, #11242C, var(--csf-accent, #1E3C49));
	color: #FCF8F1;
	flex: 0 0 auto;
}
#csf-root .csf-title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
	color: #FCF8F1;
}
#csf-root .csf-x {
	background: none !important;
	border: 0 !important;
	padding: 5px;
	line-height: 0;
	color: #FCF8F1 !important;
	border-radius: 6px;
	cursor: pointer;
	width: auto;
}
#csf-root .csf-x:hover,
#csf-root .csf-x:focus-visible {
	color: #E7B87A !important;
	background: rgba(255, 255, 255, 0.08) !important;
}

#csf-root .csf-body {
	padding: 14px 18px 4px;
	overflow-y: auto;
	flex: 1 1 auto;
}

/* ---- Fields ------------------------------------------------------------- */

#csf-root .csf-field { margin: 0 0 13px; }
#csf-root .csf-field > label,
#csf-root .csf-shot-head > label {
	display: block;
	margin: 0 0 6px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #4b5d64;
}

#csf-root .csf-input,
#csf-root .csf-textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #cdd8da;
	border-radius: 9px;
	background: #fff !important;
	color: #22333a !important;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
#csf-root .csf-input:focus,
#csf-root .csf-textarea:focus {
	border-color: var(--csf-accent, #1E3C49);
	box-shadow: 0 0 0 3px rgba(30, 60, 73, 0.14);
	outline: none;
}
#csf-root .csf-input.csf-invalid,
#csf-root .csf-textarea.csf-invalid {
	border-color: #d64541;
	box-shadow: 0 0 0 3px rgba(214, 69, 65, 0.14);
}
#csf-root .csf-textarea {
	min-height: 74px;
	resize: vertical;
}

/* ---- Screenshot block --------------------------------------------------- */

#csf-root .csf-shot-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}
#csf-root .csf-shot-head > label { margin: 0; }

#csf-root .csf-shotstage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 84px;
	padding: 12px;
	border: 1px solid #dee7e8;
	border-radius: 10px;
	background-color: #f2f6f6;
	background-image:
		linear-gradient(45deg, #e7edee 25%, transparent 25%, transparent 75%, #e7edee 75%),
		linear-gradient(45deg, #e7edee 25%, transparent 25%, transparent 75%, #e7edee 75%);
	background-size: 16px 16px;
	background-position: 0 0, 8px 8px;
}

#csf-root .csf-shot {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}
#csf-root .csf-shot .csf-base {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 46vh;
	box-shadow: 0 2px 12px rgba(17, 36, 44, 0.22);
}
#csf-root .csf-shot .csf-anno {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	touch-action: none;
	cursor: crosshair;
}

#csf-root .csf-noshot {
	padding: 18px 14px;
	color: #5a6d74;
	font-size: 13.5px;
	text-align: center;
}

#csf-root .csf-tools {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
#csf-root .csf-tool {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	padding: 6px 10px;
	border: 1px solid #cdd8da !important;
	border-radius: 8px;
	background: #fff !important;
	color: #33454a !important;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	cursor: pointer;
}
#csf-root .csf-tool:hover,
#csf-root .csf-tool:focus-visible {
	border-color: var(--csf-accent, #1E3C49) !important;
	background: #fff !important;
	color: #22333a !important;
}
#csf-root .csf-tool[aria-pressed="true"] {
	background: var(--csf-accent, #1E3C49) !important;
	border-color: var(--csf-accent, #1E3C49) !important;
	color: #fff !important;
}

#csf-root .csf-swatches {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: 4px;
	padding-left: 11px;
	border-left: 1px solid #e2e9ea;
}
#csf-root .csf-swatch {
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0 !important;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
#csf-root .csf-swatch:hover { transform: scale(1.15); }
#csf-root .csf-swatch[aria-pressed="true"] {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--csf-accent, #1E3C49);
	transform: scale(1.05);
}

#csf-root .csf-hint {
	margin: 0 0 0 auto;
	font-size: 12px;
	font-weight: 400;
	color: #7b8d93;
}

/* ---- Misc --------------------------------------------------------------- */

#csf-root .csf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

#csf-root .csf-fine {
	margin: 4px 0 10px;
	font-size: 11.5px;
	color: #8a9aa0;
}

#csf-root .csf-error {
	display: none;
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdecea;
	color: #9c2b27;
	font-size: 13.5px;
}

#csf-root .csf-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 18px;
	border-top: 1px solid #e7eeef;
	background: #fbfcfc;
	flex: 0 0 auto;
}
#csf-root .csf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	padding: 10px 18px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
#csf-root .csf-primary {
	border: 1px solid var(--csf-accent, #1E3C49) !important;
	background: var(--csf-accent, #1E3C49) !important;
	color: #fff !important;
}
#csf-root .csf-primary:hover,
#csf-root .csf-primary:focus-visible {
	background: #B97D33 !important;
	border-color: #B97D33 !important;
	color: #fff !important;
}
#csf-root .csf-primary:disabled {
	opacity: 0.65;
	cursor: default;
	background: var(--csf-accent, #1E3C49) !important;
	border-color: var(--csf-accent, #1E3C49) !important;
	color: #fff !important;
}
#csf-root .csf-ghost {
	border: 1px solid #cdd8da !important;
	background: #fff !important;
	color: #33454a !important;
}
#csf-root .csf-ghost:hover,
#csf-root .csf-ghost:focus-visible {
	border-color: #9fb2b6 !important;
	background: #fff !important;
	color: #22333a !important;
}

/* ---- Success view ------------------------------------------------------- */

#csf-root .csf-success {
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 26px 22px 30px;
}
#csf-root .csf-success-icon { color: #2f6b46; line-height: 0; margin-bottom: 14px; }
#csf-root .csf-success h3 {
	margin: 0 0 6px;
	padding: 0;
	font-size: 19px;
	font-weight: 700;
	text-transform: none;
	color: #22333a;
}
#csf-root .csf-success p {
	margin: 0;
	font-size: 14.5px;
	color: #5a6d74;
}

/* ---- Wide layout: screenshot pane + fields sidebar ---------------------- */

@media (min-width: 900px) {
	#csf-root .csf-form {
		display: flex;
		align-items: flex-start;
		gap: 22px;
	}
	#csf-root .csf-shot-pane {
		flex: 1 1 auto;
		min-width: 0;
		margin-bottom: 0;
	}
	#csf-root .csf-form-side {
		flex: 0 0 340px;
		width: 340px;
	}
	#csf-root .csf-shot .csf-base { max-height: 64vh; }
	#csf-root .csf-shotstage { min-height: 200px; }
	#csf-root .csf-textarea { min-height: 140px; }
}

/* ---- Small screens ------------------------------------------------------ */

@media (max-width: 560px) {
	#csf-root .csf-overlay { padding: 10px; align-items: flex-end; }
	#csf-root .csf-modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
	#csf-root .csf-input,
	#csf-root .csf-textarea { font-size: 16px; } /* prevent iOS zoom-on-focus */
	#csf-root .csf-shot .csf-base { max-height: 34vh; }
	#csf-root .csf-hint { display: none; }
}

@media print {
	#csf-root { display: none !important; }
}
