.winterkvist-weather-card {
	--wv-blue: #4ea3d7;
	--wv-blue-strong: #22a8df;
	--wv-text: #242424;
	--wv-muted: #bdbdbd;
	--wv-link: #43381d;
	--wv-primary-size: 3.75em;
	--wv-label-size: 1.75em;
	--wv-unit-size: 1.32em;
	--wv-meta-size: 0.9em;
	--wv-small-value-size: 1.28em;

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	background: transparent;
	color: var(--wv-text);
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: none;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	text-align: center;
	letter-spacing: 0 !important;
}

.winterkvist-weather-card *:not(.winterkvist-weather-title),
.winterkvist-weather-card *::before,
.winterkvist-weather-card *::after {
	box-sizing: border-box;
	font-family: inherit !important;
	letter-spacing: 0 !important;
}


.winterkvist-weather-main {
	display: grid;
	justify-items: center;
	width: 100%;
}

.winterkvist-weather-icon {
	width: 62px;
	height: 62px;
	margin: 0 auto 0.5em;
}

.wv-mask {
	display: block;
	width: 100%;
	height: 100%;
	background-color: var(--wv-blue);
	-webkit-mask: var(--wv-icon) center / contain no-repeat;
	mask: var(--wv-icon) center / contain no-repeat;
}

.wv-mask--strong {
	background-color: var(--wv-blue-strong);
}

.winterkvist-weather-icon svg,
.winterkvist-weather-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.winterkvist-weather-place {
	margin-bottom: 0.04em;
	color: var(--wv-muted);
	font-size: var(--wv-label-size);
	font-weight: 700;
	line-height: 1.1;
}

.winterkvist-weather-observed {
	margin-top: 10px;
	color: #777;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
}

.winterkvist-weather-temp {
	display: block;
	margin-top: 0;
	color: var(--wv-blue);
	font-size: var(--wv-primary-size);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: 0 !important;
}

.winterkvist-weather-unit {
	display: block;
	margin-top: 0.12em;
	color: var(--wv-muted);
	font-size: var(--wv-unit-size);
	font-weight: 700;
	line-height: 1.1;
}

.winterkvist-weather-description {
	margin-top: 0.48em;
	color: var(--wv-muted);
	font-size: var(--wv-meta-size);
	font-weight: 700;
	line-height: 1.15;
}

.winterkvist-weather-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	margin: 22px 0 16px;
	padding: 0 18px;
}

.winterkvist-weather-metric {
	min-width: 0;
}

.winterkvist-weather-metric-icon {
	width: 34px;
	height: 26px;
	margin: 0 auto 6px;
	color: var(--wv-blue-strong);
}

.winterkvist-weather-metric-icon svg,
.winterkvist-weather-metric-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.winterkvist-weather-metric-label {
	color: var(--wv-muted);
	font-size: var(--wv-meta-size);
	font-weight: 700;
	line-height: 1.05;
	white-space: nowrap;
}

.winterkvist-weather-metric-value {
	margin-top: 5px;
	color: var(--wv-blue);
	font-size: var(--wv-small-value-size);
	font-weight: 700;
	line-height: 1.05;
	white-space: nowrap;
}

.winterkvist-weather-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 22px;
	margin: 46px auto 0;
	max-width: 500px;
	color: #666;
	font-size: 18px;
	line-height: 1.35;
	text-align: left;
}

.winterkvist-weather-detail {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding-bottom: 8px;
}

.winterkvist-weather-detail-icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	color: var(--wv-blue-strong);
}

.winterkvist-weather-detail-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.winterkvist-weather-detail span {
	color: #777;
}

.winterkvist-weather-detail strong {
	margin-left: auto;
	color: var(--wv-blue);
	font-weight: 800;
	text-align: right;
	white-space: nowrap;
}

.winterkvist-weather-footer {
	display: grid;
	justify-items: center;
	gap: 4px;
	margin-top: auto;
	padding-top: 1.5em;
	color: #5c5c5c;
	font-size: calc(var(--wv-meta-size) * 0.82);
	font-weight: 400;
	line-height: 1.35;
}

.winterkvist-weather-footer a {
	color: var(--wv-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.winterkvist-weather-card--notice {
	text-align: left;
}

.winterkvist-weather-card--notice .winterkvist-weather-title {
	margin-bottom: 24px;
}

.winterkvist-weather-card--notice p {
	margin: 0;
	color: #666;
	font-size: 18px;
	line-height: 1.5;
}

@media (max-width: 520px) {
	.winterkvist-weather-card {
		padding: 0;
	}

	.winterkvist-weather-place {
		font-size: 1.6em;
	}

	.winterkvist-weather-temp {
		font-size: 3.35em;
	}

	.winterkvist-weather-unit {
		font-size: 1.18em;
	}

	.winterkvist-weather-metrics {
		gap: 6px;
		padding: 0 4px;
	}

	.winterkvist-weather-details {
		grid-template-columns: 1fr;
	}
}

/* Enkel grunddesign: samma rader (i em), samma höjd, läsbara storlekar i alla Winterkvist-widgetar. */
.winterkvist-weather-card { container-type: inline-size; }
.winterkvist-weather-card .wk-fit {
    font-size: 18px;
    font-size: min(18px, 4.5cqw);
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 4.4em 2.2em 4em 1.8em 1.8em 9.2em minmax(5.8em,auto);
    justify-items: center;
    align-content: start;
}
.winterkvist-weather-title { color: var(--wfw-title-color, #555555) !important; grid-row: 1; }
.winterkvist-weather-icon { grid-row: 2; }
.winterkvist-weather-place { grid-row: 3; }
.winterkvist-weather-temp { grid-row: 4; }
.winterkvist-weather-unit { grid-row: 5; }
.winterkvist-weather-description { grid-row: 6; }
.winterkvist-weather-metrics { grid-row: 7; align-self: start; width: 100%; margin: 0; padding: 0 1em; gap: 0.6em; }
.winterkvist-weather-footer { grid-row: 8; align-self: start; padding-top: 0; margin-top: 0; }
.winterkvist-weather-icon, .winterkvist-weather-place, .winterkvist-weather-temp, .winterkvist-weather-unit, .winterkvist-weather-description {
    display: flex; align-items: center; justify-content: center; margin: 0; line-height: 1; width: 100%; height: auto; min-height: 0; align-self: stretch;
}
.winterkvist-weather-metric { min-width: 0; row-gap: 0.45em; }
@supports (width: 1cqw) {
    .winterkvist-weather-place { font-size: min(var(--wv-label-size), 11cqw); }
    .winterkvist-weather-temp { font-size: min(var(--wv-primary-size), 23cqw); }
    .winterkvist-weather-unit { font-size: min(var(--wv-unit-size), 8.5cqw); }
}
.winterkvist-weather-main { display: contents; }
.winterkvist-weather-icon { width: 100%; }
.winterkvist-weather-icon .wv-mask { width: 3.8em; height: 3.8em; }
.winterkvist-weather-metric-icon { width: 2.8em; height: 2em; margin: 0 auto 0.8em; }
.winterkvist-weather-metric-value { margin-top: 0.5em; line-height: 1; }
@supports (width: 1cqw) {
    .winterkvist-weather-metric-label { font-size: min(var(--wv-meta-size), 5.5cqw); }
    .winterkvist-weather-metric-value { font-size: min(var(--wv-small-value-size), 7.2cqw); }
    .winterkvist-weather-footer { font-size: min(calc(var(--wv-meta-size) * 0.82), 4.6cqw); }
}

/* Rubrik från pluginets inställningar: vänsterställd, temats rubrikfont, samma höjd i alla widgetar. */
.winterkvist-weather-title { grid-row: 1; justify-self: start; width: 100%; margin: 0 0 0.6em; padding: 0; text-align: left; font-size: var(--wv-title-size, 2em); line-height: 1.15; }

.winterkvist-weather-card .wk-fit .winterkvist-weather-title { justify-self: start !important; width: 100% !important; margin: 0 0 0.6em !important; padding: 0 !important; text-indent: 0 !important; text-align: left !important; font-size: var(--wv-title-size, 2em) !important; line-height: 1.15 !important; }
.winterkvist-weather-description { align-items: flex-start !important; padding-top: 0.15em !important; }

.winterkvist-weather-card .wk-fit { padding-bottom: 1.5em; }
@supports (width: 1cqw) { .winterkvist-weather-card .wk-fit .winterkvist-weather-description { font-size: min(calc(var(--wv-unit-size) * 0.7), 6cqw) !important; } }

.winterkvist-weather-card code{margin:0!important;padding:0;display:block;background:none}
