.akhweather {
	--akhweather-accent: #0878e5;
	position: relative;
	box-sizing: border-box;
	direction: rtl;
	font-family: inherit;
	color: #1d2a36;
}

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

.akhweather-inner {
	border: 1px solid #dfe7ee;
	border-radius: 16px;
	background:
		linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,249,253,.98));
	box-shadow: 0 10px 30px rgba(22,55,88,.08);
	overflow: hidden;
}

.akhweather-custom-title {
	margin: 0 0 10px;
	font-size: 18px;
}

.akhweather-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid #e6edf3;
}

.akhweather-card-head strong,
.akhweather-card-head span {
	display: block;
}

.akhweather-card-head strong {
	font-size: 18px;
}

.akhweather-card-head span,
.akhweather-card-head time {
	color: #6b7884;
	font-size: 12px;
}

.akhweather-current {
	display: grid;
	grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
	gap: 18px;
	padding: 20px;
}

.akhweather-current-condition {
	display: flex;
	align-items: center;
	gap: 14px;
}

.akhweather-main-icon {
	font-size: 60px;
	line-height: 1;
}

.akhweather-main-temp {
	display: block;
	font-size: 48px;
	line-height: 1;
}

.akhweather-current-condition span:last-child {
	display: block;
	margin-top: 7px;
	color: #62707d;
}

.akhweather-current-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.akhweather-current-grid > div {
	padding: 11px;
	border-radius: 11px;
	background: #f3f7fa;
}

.akhweather-current-grid small,
.akhweather-current-grid strong {
	display: block;
}

.akhweather-current-grid small {
	margin-bottom: 5px;
	color: #6b7884;
}

.akhweather-alerts {
	display: grid;
	gap: 7px;
	padding: 0 20px 15px;
}

.akhweather-alert {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
}

.akhweather-alert.level-info {
	background: #edf6ff;
	color: #155e9f;
}

.akhweather-alert.level-warning {
	background: #fff7e5;
	color: #815800;
}

.akhweather-alert.level-danger {
	background: #fff0f0;
	color: #9b2929;
}

.akhweather-section-title {
	padding: 10px 20px;
	border-top: 1px solid #e6edf3;
	color: #44515d;
	font-size: 13px;
	font-weight: 700;
}

.akhweather-hourly,
.akhweather-daily {
	display: flex;
	gap: 8px;
	padding: 0 20px 18px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.akhweather-hourly > div,
.akhweather-daily > div {
	flex: 0 0 78px;
	padding: 11px 8px;
	border: 1px solid #e3eaf0;
	border-radius: 11px;
	background: #fff;
	text-align: center;
}

.akhweather-hourly time,
.akhweather-hourly span,
.akhweather-hourly strong,
.akhweather-hourly small,
.akhweather-daily time,
.akhweather-daily span,
.akhweather-daily strong,
.akhweather-daily small,
.akhweather-daily em {
	display: block;
}

.akhweather-hourly span,
.akhweather-daily span {
	margin: 6px 0;
	font-size: 23px;
}

.akhweather-hourly time,
.akhweather-daily time {
	color: #65727f;
	font-size: 11px;
}

.akhweather-hourly small,
.akhweather-daily small,
.akhweather-daily em {
	color: #6d7984;
	font-size: 11px;
	font-style: normal;
}

.akhweather-daily > div {
	flex-basis: 92px;
}

.akhweather-attribution {
	display: block;
	margin-top: 5px;
	color: #76838f;
	font-size: 10px;
	text-align: left;
	text-decoration: none;
}

.akhweather-live-status {
	position: absolute;
	z-index: 5;
	top: 10px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	max-width: min(360px, calc(100% - 24px));
	padding: 6px 10px;
	border: 1px solid #dce5ec;
	border-radius: 999px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 4px 15px rgba(20, 48, 75, .10);
	color: #44515d;
	font-size: 11px;
	line-height: 1.4;
}

.akhweather-live-status[hidden],
.akhweather-live-status:empty {
	display: none !important;
}

.akhweather-live-status.is-loading {
	color: #155e9f;
}

.akhweather-live-status.is-error {
	border-color: #efd2d2;
	background: rgba(255, 245, 245, .97);
	color: #922c2c;
}

.akhweather-error {
	padding: 12px;
	border: 1px solid #efc9c9;
	border-radius: 10px;
	background: #fff1f1;
	color: #9c2929;
}

/* Bar */
.akhweather-layout-bar .akhweather-inner {
	border-radius: 12px;
}

.akhweather-bar-main {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px 16px;
}

.akhweather-location {
	padding-left: 16px;
	border-left: 1px solid #e0e7ed;
}

.akhweather-condition {
	display: flex;
	align-items: center;
	gap: 8px;
}

.akhweather-condition .akhweather-icon {
	font-size: 28px;
}

.akhweather-condition strong {
	font-size: 26px;
}

.akhweather-bar-metrics {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	flex-wrap: wrap;
	color: #596775;
	font-size: 12px;
}

/* Compact */
.akhweather-layout-compact .akhweather-inner {
	padding: 15px;
}

.akhweather-compact-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.akhweather-compact-main strong,
.akhweather-compact-main span {
	display: block;
}

.akhweather-compact-main > div:first-child > span {
	margin-top: 4px;
	color: #677481;
	font-size: 12px;
}

.akhweather-compact-temp {
	display: flex;
	align-items: center;
	gap: 7px;
}

.akhweather-compact-temp .akhweather-icon {
	font-size: 33px;
}

.akhweather-compact-temp strong {
	font-size: 31px;
}

.akhweather-compact-details {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e6edf3;
	flex-wrap: wrap;
	color: #5f6c79;
	font-size: 11px;
}

/* Forecast */
.akhweather-layout-forecast .akhweather-current,
.akhweather-layout-forecast .akhweather-alerts {
	display: none;
}

@media (min-width: 769px) {
	.akhweather-hide-desktop {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.akhweather-hide-mobile {
		display: none !important;
	}

	.akhweather-current {
		grid-template-columns: 1fr;
	}

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

	.akhweather-main-icon {
		font-size: 50px;
	}

	.akhweather-main-temp {
		font-size: 42px;
	}

	.akhweather-bar-main {
		align-items: flex-start;
		flex-direction: column;
		gap: 9px;
	}

	.akhweather-location {
		padding-left: 0;
		border-left: 0;
	}
}
