/* Floating contact widget styles (medziosandelis.eu-inspired) */
:root {
	--msdw-green: #1f7a3e;
	--msdw-border: #e5e7eb;
	--msdw-text: #111;
	--msdw-muted: #6b7280;
	--msdw-shadow: rgba(0, 0, 0, 0.25);
}

.msdw-launcher {
	position: fixed;
	right: 22px;
	bottom: calc(22px + var(--msdw-bottom-bars-offset, 0px));
	width: 58px;
	height: 58px;
	border-radius: 999px;
	background: var(--msdw-green);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 14px 30px rgba(31, 122, 62, 0.35);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.msdw-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 42px rgba(31, 122, 62, 0.42);
}

.msdw-launcher:focus-visible {
	outline: 3px solid rgba(31, 122, 62, 0.35);
	outline-offset: 2px;
}

.msdw-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.45);
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	padding: 24px;
	/* JS gali uždėti cookie banner’o aukštį, kad pranešimai neuždengtų viršaus */
	padding-bottom: calc(24px + var(--msdw-cookie-offset, 0px));
	z-index: 99998;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.msdw-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.msdw-panel {
	position: relative;
	width: 420px;
	max-width: 92vw;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 60px var(--msdw-shadow);
	padding: 18px 18px 16px;
	transform: translateY(10px) scale(0.98);
	transition: transform 0.2s ease;
}

.msdw-overlay.is-open .msdw-panel {
	transform: translateY(0) scale(1);
}

.msdw-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	border: none;
	background: #f3f4f6;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.msdw-close:focus-visible {
	outline: 3px solid rgba(31, 122, 62, 0.35);
	outline-offset: 2px;
}

.msdw-title {
	margin: 10px 0 14px;
	padding-right: 44px;
	font-size: 16px;
	line-height: 1.3;
	color: var(--msdw-text);
}

.msdw-form {
	margin: 0;
}

.msdw-field {
	margin-bottom: 12px;
}

.msdw-field label {
	display: block;
	font-size: 13px;
	color: var(--msdw-text);
	margin-bottom: 6px;
}

.msdw-required {
	color: var(--msdw-green);
	font-weight: 700;
}

.msdw-field input,
.msdw-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--msdw-border);
	border-radius: 12px;
	padding: 11px 12px;
	font-size: 14px;
	color: var(--msdw-text);
	background: #fff;
	outline: none;
}

.msdw-field textarea {
	resize: vertical;
	min-height: 120px;
}

.msdw-field input:focus,
.msdw-field textarea:focus {
	border-color: rgba(31, 122, 62, 0.65);
	box-shadow: 0 0 0 4px rgba(31, 122, 62, 0.12);
}

.msdw-recaptcha {
	margin-top: 4px;
}

.msdw-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.msdw-submit {
	width: 100%;
	background: #111;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 12px 14px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.msdw-submit[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
}

.msdw-submit:focus-visible {
	outline: 3px solid rgba(31, 122, 62, 0.35);
	outline-offset: 2px;
}

.msdw-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	animation: msdw-spin 1s linear infinite;
}

@keyframes msdw-spin {
	from {
		transform: rotate(0);
	}
	to {
		transform: rotate(360deg);
	}
}

.msdw-status {
	margin-top: 8px;
}

.msdw-status-success,
.msdw-status-error {
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	margin-top: 10px;
}

.msdw-status-success {
	background: #e8f7ee;
	color: #0b5a2b;
	border: 1px solid #bdeac8;
}

.msdw-status-error {
	background: #fdecec;
	color: #b42318;
	border: 1px solid #f5b7b7;
}

@media (max-width: 480px) {
	.msdw-overlay {
		padding: 0;
		align-items: flex-end;
	}

	.msdw-panel {
		width: 100%;
		max-width: none;
		border-radius: 18px 18px 0 0;
		padding: 16px 14px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.msdw-overlay,
	.msdw-panel,
	.msdw-launcher {
		transition: none;
	}
}

