.wpw-widget {
	--wpw-primary: #2f80ed;
	--wpw-bg: #ffffff;
	--wpw-text: #1a1a1a;
	background: var(--wpw-bg);
	color: var(--wpw-text);
	border-radius: 14px;
	padding: 20px 22px;
	max-width: 420px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.wpw-widget * {
	box-sizing: border-box;
}

.wpw-widget.wpw-error {
	text-align: center;
	color: var(--wpw-text);
	opacity: 0.75;
}

/* ---------- Current conditions ---------- */
.wpw-current {
	display: flex;
	align-items: center;
	gap: 16px;
}

.wpw-current-icon {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	color: var(--wpw-primary);
}

.wpw-icon-svg {
	width: 100%;
	height: 100%;
	display: block;
}

.wpw-current-info {
	flex: 1 1 auto;
	min-width: 0;
}

.wpw-location {
	font-size: 14px;
	font-weight: 600;
	opacity: 0.75;
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpw-temp {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--wpw-primary);
}

.wpw-condition {
	font-size: 15px;
	font-weight: 500;
	margin-top: 2px;
}

.wpw-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 8px;
	font-size: 12.5px;
	opacity: 0.8;
}

/* ---------- Forecast ---------- */
.wpw-forecast {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(127, 127, 127, 0.2);
}

.wpw-forecast-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.65;
	margin-bottom: 12px;
}

.wpw-forecast-days {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	overflow-x: auto;
}

.wpw-forecast-day {
	flex: 1 1 0;
	min-width: 42px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.wpw-forecast-day-name {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.75;
}

.wpw-forecast-day-icon {
	width: 30px;
	height: 30px;
	color: var(--wpw-primary);
}

.wpw-forecast-day-temps {
	font-size: 12.5px;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.wpw-forecast-max {
	font-weight: 700;
}

.wpw-forecast-min {
	opacity: 0.6;
}

/* ---------- Inline / compact layout ---------- */
.wpw-layout-inline {
	max-width: 100%;
	padding: 12px 16px;
	border-radius: 10px;
}

.wpw-layout-inline .wpw-current {
	gap: 10px;
}

.wpw-layout-inline .wpw-current-icon {
	width: 40px;
	height: 40px;
}

.wpw-layout-inline .wpw-temp {
	font-size: 24px;
}

.wpw-layout-inline .wpw-location {
	font-size: 12px;
}

.wpw-layout-inline .wpw-condition {
	font-size: 13px;
}

.wpw-layout-inline .wpw-meta {
	display: none;
}

.wpw-layout-inline .wpw-forecast {
	margin-top: 10px;
	padding-top: 10px;
}

/* ---------- RTL ---------- */
.wpw-widget[dir="rtl"] .wpw-meta,
.wpw-widget[dir="rtl"] .wpw-forecast-days {
	direction: rtl;
}

/* ---------- Small screens ---------- */
@media (max-width: 380px) {
	.wpw-forecast-days {
		flex-wrap: wrap;
	}
	.wpw-forecast-day {
		flex: 1 1 30%;
	}
}
