:root {
  --snw-blue: #0470b8;
  --snw-blue-dark: #035f9d;
  --snw-pink: #d80a63;
  --snw-pink-dark: #b90853;
  --snw-text: #171717;
  --snw-muted: #6b7280;
  --snw-surface: #f3f4f5;
  --snw-soft-blue: #eef7fd;
  --snw-border: #d5dfe6;
  --snw-white: #fff;
}

.snw-weather,
.snw-widget,
.snw-notice,
.snw-widget-notice {
  color: var(--snw-text);
  font-family: inherit;
  line-height: 1.55;
}

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

.snw-weather a,
.snw-widget a {
  text-decoration: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.snw-country-button,
.snw-country-title,
.snw-daypart-card,
.snw-report,
.snw-main-section,
.snw-section-title,
.snw-forecast-card,
.snw-widget-title,
.snw-widget-slot,
.snw-widget-forecast-row,
.snw-widget-notice,
.snw-notice {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.snw-weather {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.snw-country-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  overflow: visible;
  border: 0;
}

.snw-country-button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--snw-border);
  color: var(--snw-text);
  font: inherit;
  font-size: 14px;
  background: var(--snw-white);
  cursor: pointer;
  appearance: none;
}

.snw-country-button strong {
  overflow: hidden;
  max-width: 100%;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snw-country-flag {
  display: inline-flex;
  flex: 0 0 30px;
  width: 30px;
  height: 20px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.snw-flag {
  position: relative;
  display: block;
  width: 30px;
  height: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.18);
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.snw-flag-de {
  background: linear-gradient(to bottom, #000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

.snw-flag-at {
  background: linear-gradient(to bottom, #ed2939 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666% 100%);
}

.snw-flag-ch {
  width: 20px;
  border-color: #d52b1e;
  background: #d52b1e;
}

.snw-flag-ch::before,
.snw-flag-ch::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  content: "";
  background: #fff;
  transform: translate(-50%, -50%);
}

.snw-flag-ch::before {
  width: 4px;
  height: 12px;
}

.snw-flag-ch::after {
  width: 12px;
  height: 4px;
}

.snw-country-button:hover,
.snw-country-button:focus-visible,
.snw-country-button.is-active {
  border-color: var(--snw-pink);
  color: var(--snw-white) !important;
  background: var(--snw-pink) !important;
}

.snw-country-button:hover *,
.snw-country-button:focus-visible *,
.snw-country-button.is-active * {
  color: var(--snw-white) !important;
}

.snw-country-button:hover { outline: 0; }
.snw-country-button:focus-visible { outline: 3px solid var(--snw-blue); outline-offset: 2px; }
.snw-panel[hidden] { display: none !important; }

.snw-country-title,
.snw-section-title {
  display: inline-block;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  color: var(--snw-white) !important;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  background: var(--snw-pink) !important;
}

.snw-country-title { margin-bottom: 18px; }

.snw-section-title {
  display: table;
  max-width: calc(100% - 32px);
  margin: 16px 16px 0;
}

.snw-main-section {
	margin: 0 0 24px;
	overflow: hidden;
	border: 1px solid var(--snw-border);
	background: var(--snw-white);
}

.snw-main-section-body {
	padding: 16px;
	border: 0;
	background: var(--snw-white);
}

.snw-dayparts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.snw-daypart-card {
	min-width: 0;
	min-height: 190px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--snw-border);
	border-top: 4px solid var(--snw-blue);
	background: var(--snw-white);
}

.snw-daypart-card:nth-child(even) { border-top-color: var(--snw-pink); }

.snw-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.snw-card-heading h3 {
  margin: 0;
  color: var(--snw-text);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.snw-card-heading div > span { color: var(--snw-muted); font-size: 12px; }
.snw-weather-icon { flex: 0 0 auto; font-size: 42px; line-height: 1; }

.snw-condition {
  margin: 16px 0 2px;
  color: var(--snw-blue-dark);
  font-size: 15px;
  font-weight: 700;
}

.snw-temperature {
  margin: 0;
  color: var(--snw-text);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.snw-details {
  margin: 14px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--snw-border);
  color: var(--snw-muted);
  font-size: 12px;
  line-height: 1.45;
}

.snw-report {
	margin: 16px 0 0;
  padding: 0;
  border: 0;
  color: var(--snw-white);
  background: var(--snw-blue);
}

.snw-report p {
	margin: 0;
	padding: 13px 16px;
  color: var(--snw-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

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

.snw-forecast-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 12px;
  min-width: 0;
	padding: 16px;
	border: 1px solid var(--snw-border);
	background: #f9fafb;
}

.snw-forecast-date {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--snw-text);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.snw-forecast-icon { grid-row: span 3; font-size: 34px; line-height: 1; }
.snw-forecast-condition { overflow: hidden; color: var(--snw-blue-dark); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.snw-forecast-temp { font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 700; }
.snw-forecast-meta { color: var(--snw-muted); font-size: 11px; }
.snw-source { margin-top: 14px; color: var(--snw-muted); font-size: 10px; line-height: 1.5; }

.snw-source a { color: var(--snw-blue-dark); text-decoration: underline !important; text-underline-offset: 2px; }

.snw-notice,
.snw-widget-notice { padding: 14px 18px; border: 0; border-left: 5px solid var(--snw-pink); color: var(--snw-text); background: #fff0f6; }

.snw-widget {
  container: snw-widget / inline-size;
  width: 100%;
  padding: 0 0 22px;
  border: 0;
  background: transparent;
}

.snw-widget-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }

.snw-widget-title {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  color: var(--snw-white) !important;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  background: var(--snw-pink) !important;
}

.snw-widget-body {
  padding: 12px;
  border: 1px solid var(--snw-border);
  background: var(--snw-white);
}

.snw-widget-country {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--snw-text);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.snw-widget-country .snw-country-flag { flex-basis: 40px; width: 40px; height: 26px; }
.snw-widget-country .snw-flag { width: 38px; height: 26px; }
.snw-widget-country .snw-flag-ch { width: 26px; }
.snw-country-title .snw-country-flag { margin-right: 8px; }
.snw-widget-current { display: flex; align-items: center; gap: 13px; margin: 0 0 14px; }
.snw-widget-main-icon { flex: 0 0 auto; font-size: 44px; line-height: 1; }
.snw-widget-current div { display: flex; flex-direction: column; }
.snw-widget-current strong { color: var(--snw-text); font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif; font-size: 23px; font-weight: 700; line-height: 1.15; }
.snw-widget-current div > span { color: var(--snw-muted); font-size: 12px; }

.snw-widget-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 14px; border: 1px solid var(--snw-border); background: var(--snw-white); }
.snw-widget-facts > span { display: flex; flex-direction: column; padding: 10px 12px; color: var(--snw-muted); font-size: 11px; }
.snw-widget-facts > span + span { border-left: 1px solid var(--snw-border); }
.snw-widget-facts b { color: var(--snw-text); font-size: 14px; }
.snw-widget-report { margin: 0; color: var(--snw-text); font-size: 15px; line-height: 1.55; }

.snw-widget-slot-list,
.snw-widget-forecast-list { display: grid; gap: 8px; margin: 0; border: 0; }

.snw-widget-slot,
.snw-widget-forecast-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid var(--snw-border);
  background: var(--snw-white);
}

.snw-widget-slot > div,
.snw-widget-forecast-row > div { display: flex; min-width: 0; flex-direction: column; }
.snw-widget-slot b,
.snw-widget-forecast-row b { color: var(--snw-text); font-size: 14px; }
.snw-widget-slot div > span,
.snw-widget-forecast-row div > span { overflow: hidden; color: var(--snw-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.snw-widget-slot-icon { font-size: 27px; line-height: 1; }
.snw-widget-slot > strong,
.snw-widget-forecast-row > strong { color: var(--snw-text); font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif; font-size: 14px; text-align: right; white-space: nowrap; }

.snw-widget-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.snw-widget-button {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 0;
  border-radius: 0 !important;
  color: var(--snw-white) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: var(--snw-pink) !important;
  box-shadow: none !important;
}

.snw-widget-button:hover,
.snw-widget-button:focus-visible {
  color: var(--snw-white) !important;
  outline: 2px solid var(--snw-blue);
  outline-offset: 2px;
  background: var(--snw-pink-dark) !important;
}

@media (max-width: 780px) {
	.snw-dayparts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.snw-forecast-grid { grid-template-columns: 1fr; }
	.snw-daypart-card { min-height: 0; }
	.snw-main-section { margin-bottom: 18px; }
}

@media (max-width: 560px) {
	.snw-country-selector {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 5px;
		margin-bottom: 16px;
	}

	.snw-country-button {
		min-height: 72px;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		padding: 7px 4px;
		font-size: 11px;
		line-height: 1.15;
		text-align: center;
	}

	.snw-country-button strong {
		overflow: visible;
		white-space: normal;
		text-overflow: clip;
	}

	.snw-country-button .snw-country-flag {
		flex-basis: auto;
		width: 24px;
		height: 16px;
	}

	.snw-country-button .snw-flag { width: 24px; height: 16px; }
	.snw-country-button .snw-flag-ch { width: 16px; }

	.snw-section-title {
		max-width: calc(100% - 20px);
		margin: 10px 10px 0;
		padding: 7px 10px;
		font-size: 15px;
	}

	.snw-main-section-body { padding: 10px; }
	.snw-dayparts,
	.snw-forecast-grid { gap: 10px; }
	.snw-daypart-card { padding: 14px; }
	.snw-card-heading h3 { font-size: 18px; }
	.snw-weather-icon { font-size: 36px; }
	.snw-condition { margin-top: 10px; }
	.snw-temperature { font-size: 26px; }
	.snw-details { margin-top: 10px; padding-top: 9px; }
	.snw-report { margin-top: 10px; }
	.snw-report p { padding: 11px 12px; font-size: 14px; }
	.snw-forecast-card { padding: 13px; }
	.snw-source { margin-top: 10px; }
}

@media (max-width: 380px) {
	.snw-dayparts { grid-template-columns: 1fr; }
}

@container snw-widget (max-width: 439px) {
  .snw-widget-heading { flex-wrap: wrap; gap: 8px 12px; }
  .snw-widget-actions { display: block; }
  .snw-widget-button { width: 100%; }
}

@media (max-width: 340px) {
  .snw-widget-slot,
  .snw-widget-forecast-row { grid-template-columns: minmax(0, 1fr) auto; }
  .snw-widget-slot-icon { display: none; }
}

@media (forced-colors: active) {
  .snw-country-button,
  .snw-country-title,
  .snw-report,
  .snw-section-title,
  .snw-widget-title { border: 1px solid currentColor; }
}
