.courts-weather {
	--cw-width: 255px;
	box-sizing: border-box;
	width: min(var(--cw-width), calc(100vw - 24px));
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	color: #fff;
	font-family: inherit;
	line-height: 1.25;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.82);
}

.courts-weather *,
.courts-weather *::before,
.courts-weather *::after {
	box-sizing: border-box;
}

.courts-weather--overlay {
	position: absolute;
	top: var(--cw-top, 125px);
	right: var(--cw-right, 90px);
	z-index: 999;
}

.courts-weather__title {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.86rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.courts-weather__main {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin-bottom: 8px;
}

.courts-weather__icon {
	flex: 0 0 auto;
	font-size: 1.85rem;
	line-height: 1;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.68));
}

.courts-weather__condition {
	min-width: 0;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.25;
}

.courts-weather__metrics {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px 20px;
}

.courts-weather__metric {
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.courts-weather__metric span,
.courts-weather__metric strong {
	display: block;
}

.courts-weather__metric span {
	margin-bottom: 1px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.65rem;
	font-weight: 500;
}

.courts-weather__metric strong {
	overflow-wrap: anywhere;
	color: #fff;
	font-size: 0.93rem;
	font-weight: 750;
	line-height: 1.2;
}

body.admin-bar .courts-weather--overlay {
	top: calc(var(--cw-top, 125px) + 32px);
}

@media (max-width: 782px) {
	body.admin-bar .courts-weather--overlay {
		top: calc(var(--cw-top, 105px) + 46px);
	}
}

@media (max-width: 760px) {
	.courts-weather--overlay {
		top: 105px;
		right: 12px;
		width: min(215px, calc(100vw - 24px));
	}

	.courts-weather__title {
		font-size: 0.78rem;
	}

	.courts-weather__icon {
		font-size: 1.55rem;
	}

	.courts-weather__condition {
		font-size: 0.8rem;
	}

	.courts-weather__metric strong {
		font-size: 0.82rem;
	}
}

@media (max-width: 390px) {
	.courts-weather--overlay {
		top: 96px;
		right: 8px;
		width: min(195px, calc(100vw - 16px));
	}

	.courts-weather__metrics {
		gap: 6px 14px;
	}
}
