.coloff-weather-widget {
	background: var(--wug-widget-background, linear-gradient(180deg, #1f4e79 0%, #173a59 100%));
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	color: #ffffff;
	margin: 0 0 16px;
	overflow: hidden;
	padding: 18px;
	position: relative;
}

.coloff-weather-widget *,
.coloff-secondary-conditions *,
.weather-link * {
	box-sizing: border-box;
}

.weather-town {
	color: #ffffff;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 14px;
	text-align: center;
}

/* Main icon + temp row */
.weather-header {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-bottom: 16px;
	width: 100%;
	text-align: center;
}

/* Works if you update the template to use an inner wrapper */
.weather-header-inner {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 16px;
	margin: 0 auto;
	text-align: center;
	width: auto;
	max-width: 100%;
}

/* Also works with current markup (icon + spacer + temp directly inside header) */
.weather-header > .weather-icon,
.weather-header > .weather-temp {
	flex: 0 0 auto;
}

.weather-icon {
	display: block;
	height: 72px;
	max-width: 72px;
	width: 72px;
	margin: 0 !important;
	flex: 0 0 72px;
}

.weather-temp {
	color: #ffffff;
	font-size: 2.4rem;
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1;
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
	white-space: nowrap;
	width: auto !important;
	flex: 0 0 auto !important;
	float: none !important;
}

/* Kill the old spacer completely */
.weather-spacer {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	flex: 0 0 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Force current direct-child layout to center nicely */
.weather-header:not(:has(.weather-header-inner)) {
	gap: 16px;
}

.weather-details {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 12px 14px;
}

.weather-details p {
	align-items: baseline;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin: 0;
	padding: 8px 0;
}

.weather-details p:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.weather-label {
	color: rgba(255, 255, 255, 0.88);
	display: inline-block;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.3;
	margin-right: 8px;
}

.weather-value {
	color: #ffffff;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
}

.weather-error,
.weather-debug {
	margin: 10px 0 0;
	text-align: center;
}

.weather-error {
	color: #ffe0e0;
	font-weight: 700;
}

.weather-debug {
	color: #fff7bf;
	font-size: 0.92rem;
}

.coloff-secondary-conditions {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 16px;
}

.secondary-condition {
	background: #f6f8fb;
	border: 1px solid #d8e0ea;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(10, 25, 41, 0.08);
	padding: 14px 12px;
	text-align: center;
}

.secondary-town {
	color: #1b365d;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 6px;
}

.secondary-temp {
	color: #0d2238;
	font-size: 1.45rem;
	font-weight: 900;
	line-height: 1;
	margin: 0;
}

.weather-link {
	margin: 0;
	text-align: center;
}

.weather-link a {
	background: #0f2740;
	border: 1px solid #1a456d;
	border-radius: 999px;
	color: #ffffff;
	display: inline-block;
	font-size: 0.96rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 10px 18px;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.weather-link a:hover,
.weather-link a:focus {
	background: #173a59;
	border-color: #2a6aa1;
	color: #ffffff;
	outline: none;
	text-decoration: none;
	transform: translateY(-1px);
}

.weather-link a:focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24), 0 0 0 5px rgba(42, 106, 161, 0.7);
}

@media (max-width: 640px) {
	.coloff-weather-widget {
		border-radius: 14px;
		padding: 16px;
	}

	.weather-town {
		font-size: 1.28rem;
		margin-bottom: 12px;
	}

	.weather-header {
		margin-bottom: 14px;
	}

	.weather-header-inner,
	.weather-header:not(:has(.weather-header-inner)) {
		gap: 12px;
	}

	.weather-icon {
		height: 60px;
		max-width: 60px;
		width: 60px;
		flex-basis: 60px;
	}

	.weather-temp {
		font-size: 2rem;
	}

	.weather-details p {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.weather-value {
		text-align: left;
	}

	.coloff-secondary-conditions {
		grid-template-columns: 1fr;
	}
}