.ffwetter-widget {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
	color: #111;
	font-family: Arial, sans-serif;
	max-width: 100%;
	overflow: hidden;
	width: 100%;
}

.ffwetter-widget *,
.ffwetter-widget *::before,
.ffwetter-widget *::after {
	box-sizing: border-box;
}

.ffwetter-header {
	align-items: center;
	background: linear-gradient(135deg, #1a3a6b, #2d6fa4);
	color: #fff;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	justify-content: space-between;
	line-height: 1.2;
	padding: 10px 14px;
}

.ffwetter-update {
	font-size: 12px;
	font-weight: 400;
	opacity: 0.88;
}

.ffwetter-current {
	align-items: center;
	background: #f0f6ff;
	border-bottom: 1px solid #dde8f5;
	display: grid;
	gap: 12px;
	grid-template-columns: auto auto 1fr;
	padding: 20px 16px;
}

.ffwetter-icon {
	font-size: 44px;
	line-height: 1;
	text-align: center;
	width: 56px;
}

.ffwetter-temp {
	color: #1a3a6b;
	font-size: 42px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	white-space: nowrap;
}

.ffwetter-details {
	color: #444;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.95;
	min-width: 0;
	overflow-wrap: anywhere;
}

.ffwetter-warnings {
	border-bottom: 1px solid #e0e0e0;
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	padding: 12px 14px 9px;
}

.ffwetter-warning-day {
	min-width: 0;
	text-align: center;
}

.ffwetter-warning-name {
	color: #1a3a6b;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 6px;
}

.ffwetter-warning-bar {
	background: #8bc34a;
	border-radius: 5px;
	height: 12px;
	margin-bottom: 4px;
}

.ffwetter-warning-text {
	color: #176000;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.ffwetter-forecast {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ffwetter-day {
	border-right: 1px solid #eee;
	min-width: 0;
	padding: 18px 8px 20px;
	text-align: center;
}

.ffwetter-day:last-child {
	border-right: 0;
}

.ffwetter-day-name {
	color: #1a3a6b;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 14px;
}

.ffwetter-day-icon {
	font-size: 26px;
	line-height: 1;
	margin-bottom: 14px;
}

.ffwetter-day-temp {
	font-size: 15px;
	font-weight: 700;
}

.ffwetter-footer {
	align-items: center;
	background: #f5f5f5;
	border-top: 1px solid #e0e0e0;
	color: #999;
	display: flex;
	font-size: 13px;
	font-weight: 700;
	justify-content: space-between;
	line-height: 1.3;
	padding: 12px 14px;
}

.ffwetter-footer a {
	color: #0067b1;
	text-decoration: none;
}

.ffwetter-no-warnings .ffwetter-warnings,
.ffwetter-no-forecast .ffwetter-forecast,
.ffwetter-no-detail .ffwetter-detail-link {
	display: none;
}

.ffwetter-message {
	background: #fee;
	border: 1px solid #c00;
	color: #c00;
	font-size: 13px;
	line-height: 1.4;
	padding: 10px;
}

@media (max-width: 520px) {
	.ffwetter-current {
		grid-template-columns: auto 1fr;
	}

	.ffwetter-details {
		grid-column: 1 / -1;
	}

	.ffwetter-warnings {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ffwetter-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}

