.thermometer-widget * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.thermometer-widget {
/*	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;*/
	width: 100%;
}

.thermometer-container {
	display: flex;
	column-gap: 48px;
	align-items: start;
	border-radius: 12px;
/*	overflow: hidden;*/
	width: 100%;
}

.thermometer-form-section {
	display: flex;
	flex-direction: column;
	padding: 0px;
	flex: 1;
	min-width: 0;
}

.thermometer-widget h2 {
	margin-bottom: 20px;
}

.form-description{
	margin-bottom: 20px;
}

.thermometer-form-row {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.thermometer-form-group {
	display: flex;
	flex-direction: column;
}

.thermometer-form-group.full-width {
	width: 100%;
}

/* First form - specific widths */
.thermometer-form-group.text-input {
	flex: 1;
	min-width: 0;
}

.thermometer-form-group.color-input {
	width: 154px;
	flex-shrink: 0;
}

/* Second form - 50% width fields */
.thermometer-form-group.half-width {
	width: calc(50% - 6px);
}

.thermometer-widget label {
	display: block;
	margin-bottom: 8px;
}

.thermometer-widget input[type="text"],
.thermometer-widget input[type="number"],
.thermometer-widget input[type="email"],
.thermometer-widget input[type="tel"],
.thermometer-widget select {
	width: 100%;
	padding: 12px 12px;
	border: 1.5px solid rgba(0,0,0,.1);;
	border-radius: 16px;
	transition: all 0.2s;
	background: #ffffff;
	height: 48px;
	box-sizing: border-box;
	line-height: 1em;
}

.thermometer-widget input[type="text"]:focus,
.thermometer-widget input[type="number"]:focus,
.thermometer-widget input[type="email"]:focus,
.thermometer-widget input[type="tel"]:focus,
.thermometer-widget select:focus {
	outline: none;
	border-color: #000;
	background: #ffffff;
}

.thermometer-widget select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.thermometer-color-input-group {
	display: flex;
	align-items: stretch;
	border: 1.5px solid var( --menu-border-color );;
	border-radius: 16px;
	background: #ffffff;
	overflow: hidden;
	height: 48px;
	box-sizing: border-box;
}

.thermometer-widget input[type="color"] {
	width: 48px;
	height: 100%;
	border: none;
	border-radius: 0;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	border-right: 1px solid #ddd;
}

.thermometer-widget input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}

.thermometer-widget input[type="color"]::-webkit-color-swatch {
	border: none;
	border-radius: 0;
}

.thermometer-widget input[type="color"]::-moz-color-swatch {
	border: none;
	border-radius: 0;
}

.thermometer-color-label {
	flex: 1;
	display: flex;
	align-items: center;
	padding: 12px 14px 12px 12px;
	border: none;
	cursor: pointer;
	font-size: 15px;
}

.thermometer-checkbox-group {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.thermometer-widget input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: var( --e-global-color-f884904 );
	margin: 0;
	flex-shrink: 0;
}

.thermometer-checkbox-label {
	line-height: 1.2;
	cursor: pointer;
	user-select: none;
	margin: 0 !important;
	margin-bottom: 0 !important;
	padding: 0;
}

.thermometer-button {
	border-radius: 3rem;
	padding: .75rem 1.5rem;
	transition: background .3s ease;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	width: fit-content;
	-webkit-appearance: none;
	appearance: none;
	color: var(--button-outline-text-color);
	border: 1px solid var(--button-outline-border);
	background: transparent;
	transition: background .3s ease, box-shadow .3s ease;
}



.thermometer-button:hover {
	box-shadow: inset 0 0 0 .1rem var(--button-background);
	background: var(--button-outline-background);

}

.thermometer-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.thermometer-button.secondary {
	color: var(--button-text-color);
	background: var(--button-background);
	color: white;
	width: 100%;
	margin-top: 8px;
	max-width: 100% !important;
}

.thermometer-button.secondary:hover {
	background: color-mix(in srgb, var(--button-background), black 20%);

}

.thermometer-button.secondary:disabled {
}

.thermometer-download-section {
	margin-top: 50px;
}

.thermometer-download-section h2{
	margin-bottom: 8px;
}

.thermometer-required {
	color: #F26522;
}

.thermometer-preview-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #EFF9FD;
	border-radius: 24px;
	padding: 45px;
	flex: 1;
	min-width: 0;
	box-shadow:
		-1px 7px 15px 0px #0000000D,
		-5px 27px 27px 0px #0000000A,
		-11px 11px 37px 0px #00000005,
		-20px 58px 44px 0px #00000003,
		-32px 168px 48px 0px #00000000;
}

.thermometer-svg-container {
	position: relative;
	width: 100%;
	max-width: 600px;
	height: 520px;
	margin: 24px 0;
}

.thermometer-title {
	text-align: center;
	white-space: nowrap;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
}

.thermometer-goal {
	text-align: center;
	white-space: nowrap;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
}

.thermometer-visual {
	position: relative;
	top: 0px;
	left: 50%;
	transform: translateX(-50%);
	width: 160px;
	height: 519px;
}

.thermometer-border {
	position: absolute;
	top: 0;
	left: 0;
	width: 160px;
	height: 519px;
}

.thermometer-fill {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	width: 117px;
	height: 475px;
	overflow: hidden;
}

.thermometer-fill-clip {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 475px;
	transition: clip-path 0.5s ease;
}

.thermometer-lines {
	position: absolute;
	top: 55px;
	left: 140px;
	width: 25px;
	height: 298px;
}

.thermometer-arrow-wrap {
	position: absolute;
	top: 28px;
	left: 180px;
	width: 400px;
	transition: transform 0.5s ease;
}

.thermometer-arrow-content {
	display: flex;
	align-items: center;
	gap: 10px;
}

.thermometer-arrow {
	width: 23px;
	height: 24px;
	flex-shrink: 0;
}

.thermometer-label {
	display: flex;
	flex-direction: column;
	gap: 4px;
/*	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;*/
}

.thermometer-label-raised {
	white-space: nowrap;
	font-size: 23px;
}

.thermometer-label-amount {
	font-size: 30px;
	white-space: nowrap;
	line-height: 34px;
}

.thermometer-logo {
	width: 220px;
}

/* Loading spinner */
.thermometer-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0,0,0,.1);
	border-radius: 50%;
	border-top-color: var( --e-global-color-f884904 );
	animation: donation-thermometer-spin 0.8s linear infinite;
}

/* Inline status messages shown after button actions */
.thermometer-status-msg {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.4;
}
.thermometer-status-success { color: #1a7a3c; }
.thermometer-status-error   { color: #c0392b; }

/* Spinner for secondary button */
.thermometer-button.secondary .thermometer-spinner {
	border-color: rgba(255,255,255,.3);
	border-top-color: #fff;
}

#fillClip svg {
	transform: scale(1.001);
	transform-origin: center bottom;
}

#fillClip svg path {
	shape-rendering: geometricPrecision;
}

@keyframes donation-thermometer-spin {
	to { transform: rotate(360deg); }
}

/* intl-tel-input Integration Styles */
.thermometer-widget .iti {
	width: 100%;
	display: block;
	position: relative;
}

.thermometer-widget .iti__input,
.thermometer-widget .iti__input[type="tel"],
.thermometer-widget input.iti__tel-input[type="tel"],
.thermometer-widget #thermometerPhone.iti__tel-input {
	width: 100% !important;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
	padding-left: 70px !important;
	padding-right: 12px !important;
	border: 1.5px solid var( --e-global-color-69bb33b ) !important;
	border-radius: 16px !important;
	transition: all 0.2s;
	background: #ffffff !important;
	height: 48px !important;
	box-sizing: border-box;
	line-height: 1em !important;
}

.thermometer-widget .iti__input:focus {
	outline: none !important;
	background: #ffffff !important;
}

.thermometer-widget .iti__country-container {
	position: absolute !important;
	left: 0 !important;
	right: auto !important;
	top: 0 !important;
	bottom: 0 !important;
	width: 60px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.thermometer-widget .iti__selected-country {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.thermometer-widget .iti__selected-country-primary {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.thermometer-widget .iti__flag {
	margin: 0 !important;
}

/* Mobile and Tablet responsive styles */
@media (max-width: 1024px) {
	.thermometer-container {
		flex-direction: column;
	}

	.thermometer-form-section {
		width: 100%;
	}

	.thermometer-preview-section {
		padding: 60px 20px;
		width: 100%;
	}
}

@media (max-width: 767px) {
	/* Scale down thermometer visual elements by 25% and shift 5% to the left */
	.thermometer-visual {
		transform: translateX(-65%) scale(0.75);
		transform-origin: top center;
	}

	.thermometer-svg-container {
		height: calc(520px * 0.75);
		margin: 24px 0;
	}

	.thermometer-button {
		max-width: 100%;
	}
}