.ca-weather-widget {
	--ca-weather-bg-top: #12263a;
	--ca-weather-bg-bottom: #0b1828;
	--ca-weather-text: #f7fbff;
	--ca-weather-muted: rgba(247, 251, 255, 0.72);
	--ca-weather-shadow: 0 28px 60px rgba(7, 18, 31, 0.24);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	max-width: 640px;
	min-height: 280px;
	padding: clamp(20px, 2.4vw, 28px);
	overflow: hidden;
	border-radius: 30px;
	background:
		radial-gradient(circle at top right, rgba(117, 198, 255, 0.16), transparent 34%),
		linear-gradient(180deg, var(--ca-weather-bg-top) 0%, var(--ca-weather-bg-bottom) 100%);
	box-shadow: var(--ca-weather-shadow);
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	color: var(--ca-weather-text);
	isolation: isolate;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.ca-weather-widget::before {
	content: "";
	position: absolute;
	inset: auto auto -28% -14%;
	width: 58%;
	height: 62%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
	z-index: -1;
}

.ca-weather-widget__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.ca-weather-widget__city,
.ca-weather-widget__meta,
.ca-weather-widget__temp {
	margin: 0;
}

.ca-weather-widget__city {
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.ca-weather-widget__meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
	font-size: clamp(0.95rem, 1.5vw, 1.45rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--ca-weather-muted);
}

.ca-weather-widget__meta-dot {
	font-size: 0.85em;
}

.ca-weather-widget__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-top: 20px;
}

.ca-weather-widget__temp {
	flex: 1 1 auto;
	max-width: 100%;
	font-size: clamp(3.65rem, 6vw, 5.5rem);
	font-weight: 500;
	line-height: 0.88;
	letter-spacing: -0.06em;
}

.ca-weather-widget__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	width: 82px;
	height: 82px;
}

.ca-weather-widget__icon svg {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.16));
}

.ca-weather-widget.is-loading .ca-weather-widget__city,
.ca-weather-widget.is-loading .ca-weather-widget__meta,
.ca-weather-widget.is-loading .ca-weather-widget__temp {
	opacity: 0.72;
}

.ca-weather-widget.is-loading:not(.ca-weather-widget--preview):not(.is-ready) {
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	pointer-events: none;
}

.ca-weather-widget.is-loading .ca-weather-widget__icon,
.ca-weather-widget.is-error .ca-weather-widget__icon {
	opacity: 0.92;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ca-weather-widget-test-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	width: 100%;
}

@media (max-width: 1180px) {
	.ca-weather-widget {
		max-width: 560px;
		min-height: 250px;
	}

	.ca-weather-widget__city {
		font-size: clamp(1.75rem, 2.7vw, 2.25rem);
	}

	.ca-weather-widget__meta {
		font-size: clamp(0.9rem, 1.35vw, 1.2rem);
	}

	.ca-weather-widget__temp {
		font-size: clamp(3.2rem, 5.4vw, 4.7rem);
	}

	.ca-weather-widget__icon {
		width: 80px;
		height: 80px;
		position: relative;
		top: 5px;
	}
}

@media (max-width: 767px) {
	.ca-weather-widget {
		min-height: 220px;
		padding: 20px;
		border-radius: 24px;
	}

	.ca-weather-widget__meta {
		gap: 8px;
	}

	.ca-weather-widget__footer {
		gap: 14px;
	}

	.ca-weather-widget__temp {
		font-size: clamp(3rem, 12vw, 4rem);
	}

	.ca-weather-widget__icon {
		width: 75px;
		height: 75px;
		position: relative;
		top: 5px;
	}
}
