.worx-content-layout {
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0,1fr);
  > * {
	min-width: 0;
  }
  &.has-sidebar {
  	align-items: start;
	  grid-template-columns: minmax(0,1fr) minmax(16rem,20rem);
  }
}
.worx-poll {
	background: #f8fafc;
	border-radius: .65rem;
	border: 1px solid #cbd5e1;
	box-sizing: border-box;
	color: #172033;
	font: 1rem/1.5 system-ui, sans-serif;
	margin: 1.5rem 0;
	max-width: 320px;
	overflow-wrap: anywhere;
	padding: 1.4rem !important;
	width: 100%;
  .qs-button {
    cursor: pointer;
    padding: .65rem 1.2rem;
  }
  .worx-poll-option {
    align-items: baseline;
    cursor: pointer;
    display: flex;
    gap: .65rem;
    padding: .55rem 0;
  }
  .worx-poll-question {
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0 0 .8rem;
  }
  :focus-visible {
    outline-offset: 3px;
    outline: 3px solid #245c88;
  }
  button:disabled {
    cursor: wait;
    opacity: .6;
  }
  input[type="checkbox"],
  input[type="radio"] {
    -webkit-appearance: auto !important;
    accent-color: #245c88 !important;
    appearance: auto !important;
    background-color: transparent !important;
    flex: 0 0 auto;
    height: 1rem;
    position: static;
    width: 1rem;
  }
  progress {
    accent-color: #245c88;
    grid-column: 1 / -1;
    height: .7rem;
    width: 100%;
  }
}
.worx-poll-feedback,
.worx-poll-message,
.worx-poll-results p {
	font-size: .9rem;
}
.worx-poll-feedback:empty {
	display: none;
}
.worx-poll-form > fieldset {
	background: transparent;
	border-radius: 0 !important;
	border: 0;
	box-shadow: none;
	box-sizing: border-box;
	font: inherit;
	margin: 0 0 1rem;
	min-width: 0;
	padding: 0 !important;
	position: static;
	width: 100%;
  > legend {
    background: transparent;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    color: #475569;
    float: none;
    font: inherit;
    font-size: .9rem;
    margin: 0 0 .7rem;
    max-width: 100%;
    padding: 0;
    position: static;
    white-space: normal;
    width: auto;
    &::after,
    &::before {
      content: none;
      display: none;
    }
  }
}
.worx-poll-notice {
	border: 1px solid #cbd5e1;
	margin-bottom: 1rem;
	padding: 1rem;
}
.worx-poll-result {
	display: grid;
	gap: .4rem .8rem;
	grid-template-columns: minmax(0,1fr) auto;
	margin: .9rem 0;
  strong {
    font-size: .85rem;
  }
}
.worx-widget-sidebar {
	background-color: transparent;
	border: 0;
	display: grid;
	gap: 1.25rem;
	padding: 0;
	width: 100%;
  .worx-poll {
    margin: 0;
  }
}
@media (max-width: 800px) {
	.worx-content-layout.has-sidebar {
		grid-template-columns: minmax(0,1fr);
	}
}
/*
 * ---------------------------------------------------------
 * Weather widget
 * ---------------------------------------------------------
 */

.worx-weather {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: .65rem;
	box-sizing: border-box;
	color: #172033;
	font: 1rem/1.5 system-ui, sans-serif;
/*
	margin: 1.5rem 0;
*/
  padding:0;
	overflow: hidden;
	width: 100%;

	.worx-weather-header {
		align-items: flex-start;
		display: flex;
		justify-content: space-between;
		padding: 1.45rem 1.4rem 1rem;
	}

	.worx-weather-label {
		color: #64748b;
		display: block;
		font-size: .72rem;
		font-weight: 700;
		letter-spacing: .08em;
		line-height: 1.2;
		margin-bottom: .2rem;
		text-transform: uppercase;
	}

	.worx-weather-location {
		color: #172033;
		font-size: 1.6rem;
		line-height: 1.2;
		margin: 0;
	}

	.worx-weather-units {
		align-items: center;
		background: #e2e8f0;
		border-radius: .5rem;
		display: inline-flex;
		gap: .2rem;
		padding: .2rem;

		.worx-weather-unit {
			appearance: none;
			background: transparent;
			border: 0;
			border-radius: .35rem;
			color: #475569;
			cursor: pointer;
			font: inherit;
			font-size: .78rem;
			font-weight: 700;
			line-height: 1;
			min-width: 1.6rem;
			padding: .5rem .25rem;

			&:hover {
				background: #f8fafc;
				color: #172033;
			}

			&:focus-visible {
				outline: 2px solid #245c88;
				outline-offset: 2px;
			}

			&.is-active {
				background: #245c88;
				color: #fff;
			}
		}
	}

	.worx-weather-current {
		align-items: stretch;
		display: grid;
		gap: 0;
		grid-template-columns: minmax(18rem,1fr) minmax(28rem,1.7fr);
		padding: .7rem 1.4rem 1.35rem;
	}

	.worx-weather-current-main {
		align-items: center;
		display: flex;
		gap: 1.2rem;
		min-height: 8rem;
		min-width: 0;
		padding-right: 1.7rem;
	}

	.worx-weather-icon {
		align-items: center;
		display: flex;
		flex: 0 0 auto;
		font-size: 3.8rem;
		height: 4.5rem;
		justify-content: center;
		line-height: 1;
		width: 4.5rem;
	}

	.worx-weather-temperature {
		font-size: 3.6rem;
		font-weight: 700;
		letter-spacing: -.05em;
		line-height: .95;
		white-space: nowrap;
	}

	.worx-weather-condition {
		color: #475569;
		font-size: 1.05rem;
		margin-top: .55rem;
	}

	.worx-weather-details {
		align-self: stretch;
		display: grid;
		grid-template-columns: repeat(3,minmax(0,1fr));

		> div {
			align-content: center;
			border-left: 1px solid #cbd5e1;
			display: grid;
			gap: .45rem;
			justify-items: center;
			min-width: 0;
			padding: 1rem 1.25rem;
			text-align: center;
		}

		span {
			color: #64748b;
			font-size: .9rem;
			letter-spacing: .01em;
		}

		strong {
			color: #172033;
			font-size: 1.25rem;
			font-weight: 700;
			line-height: 1.2;
			white-space: nowrap;
		}
	}

	.worx-weather-forecast {
		border-top: 1px solid #cbd5e1;
		display: grid;
		grid-template-columns: repeat(7,minmax(0,1fr));
	}

	.worx-weather-day {
		align-items: center;
		display: flex;
		flex-direction: column;
		gap: .3rem;
		min-width: 0;
		padding: 1rem .45rem 1.05rem;
		text-align: center;

		& + .worx-weather-day {
			border-left: 1px solid #e2e8f0;
		}
	}

	.worx-weather-day-name {
		color: #475569;
		font-size: .76rem;
		font-weight: 700;
		letter-spacing: .04em;
		text-transform: uppercase;
	}

	.worx-weather-day-icon {
		align-items: center;
		display: flex;
		font-size: 1.45rem;
		height: 1.9rem;
		justify-content: center;
		line-height: 1;
	}

	.worx-weather-day-condition {
		color: #64748b;
		font-size: .72rem;
		line-height: 1.2;
		min-height: 1.75em;
		overflow-wrap: anywhere;
	}

	.worx-weather-day-temperature {
		align-items: baseline;
		display: flex;
		gap: .3rem;
		justify-content: center;

		strong {
			font-size: .95rem;
		}

		span {
			color: #64748b;
			font-size: .82rem;
		}
	}

	.worx-weather-precipitation {
		color: #64748b;
		font-size: .7rem;
		white-space: nowrap;
	}

	.worx-weather-status {
		background: #fff;
		border-top: 1px solid #e2e8f0;
		color: #64748b;
		font-size: .8rem;
		padding: .7rem 1.4rem;
	}

	&.worx-weather-compact {
		.worx-weather-header {
			padding-bottom: .55rem;
		}

		.worx-weather-current {
			display: block;
			padding-top: .35rem;
		}

		.worx-weather-temperature {
			font-size: 2.15rem;
		}
	}
}


/*
 * ---------------------------------------------------------
 * Weather widget — sidebar
 * ---------------------------------------------------------
 */

.worx-widget-sidebar {
	.worx-weather {
		margin: 0;

		.worx-weather-header {
			padding: 1rem 1rem .7rem;
		}

		.worx-weather-location {
			font-size: 1.25rem;
		}

		.worx-weather-current {
			display: block;
			padding: .45rem 1rem 1rem;
		}

		.worx-weather-current-main {
			gap: .7rem;
		}

		.worx-weather-icon {
			font-size: 2.2rem;
			height: 2.7rem;
			width: 2.7rem;
		}

		.worx-weather-temperature {
			font-size: 2rem;
		}

		.worx-weather-details {
			border-top: 1px solid #e2e8f0;
			gap: .55rem;
			grid-template-columns: 1fr;
			margin-top: .85rem;
			padding-top: .8rem;

			> div {
				align-items: baseline;
				display: flex;
				justify-content: space-between;
			}
		}

		.worx-weather-forecast {
			display: block;
		}

		.worx-weather-day {
			display: grid;
			gap: .45rem;
			grid-template-columns: 2.35rem 2rem minmax(0,1fr) auto;
			padding: .65rem 1rem;
			text-align: left;

			& + .worx-weather-day {
				border-left: 0;
				border-top: 1px solid #e2e8f0;
			}
		}

		.worx-weather-day-name {
			font-size: .72rem;
		}

		.worx-weather-day-icon {
			font-size: 1.15rem;
			height: auto;
		}

		.worx-weather-day-condition {
			font-size: .72rem;
			min-height: 0;
		}

		.worx-weather-day-temperature {
			justify-content: flex-end;
			white-space: nowrap;
		}

		.worx-weather-precipitation {
			grid-column: 3 / 5;
			justify-self: start;
		}

		.worx-weather-status {
			padding-left: 1rem;
			padding-right: 1rem;
		}
	}
}


/*
 * ---------------------------------------------------------
 * Weather widget — responsive
 * ---------------------------------------------------------
 */

@media (max-width: 1050px) {
	.worx-weather {
		.worx-weather-current {
			align-items: start;
			grid-template-columns: minmax(0,1fr);
		}

		.worx-weather-details {
			grid-template-columns: repeat(3,minmax(0,1fr));
		}

		.worx-weather-forecast {
			grid-template-columns: repeat(4,minmax(0,1fr));
		}

		.worx-weather-day {
			border-top: 1px solid #e2e8f0;

			& + .worx-weather-day {
				border-left: 0;
			}

			&:not(:nth-child(4n + 1)) {
				border-left: 1px solid #e2e8f0;
			}

			&:nth-child(-n + 4) {
				border-top: 0;
			}
		}
	}
}

@media (max-width: 640px) {
	.worx-weather {
		.worx-weather-header {
			padding: 1rem 1rem .7rem;
		}

		.worx-weather-current {
			gap: 1rem;
			padding: .55rem 1rem 1rem;
		}

		.worx-weather-temperature {
			font-size: 2.2rem;
		}

		.worx-weather-details {
			gap: .5rem;
			grid-template-columns: 1fr;

			> div {
				align-items: baseline;
				display: flex;
				justify-content: space-between;
			}
		}

		.worx-weather-forecast {
			display: block;
		}

		.worx-weather-day {
			display: grid;
			gap: .45rem;
			grid-template-columns: 2.5rem 2rem minmax(0,1fr) auto;
			padding: .7rem 1rem;
			text-align: left;

			& + .worx-weather-day {
				border-left: 0;
				border-top: 1px solid #e2e8f0;
			}

			&:not(:nth-child(4n + 1)) {
				border-left: 0;
			}

			&:nth-child(-n + 4) {
				border-top: 1px solid #e2e8f0;
			}

			&:first-child {
				border-top: 0;
			}
		}

		.worx-weather-day-condition {
			min-height: 0;
		}

		.worx-weather-day-temperature {
			justify-content: flex-end;
			white-space: nowrap;
		}

		.worx-weather-precipitation {
			grid-column: 3 / 5;
		}
	}
}
