/**
 * Agency Worker Business Hours widget — structural styles only.
 * Typography and colours inherit from the theme unless highlight is set.
 */

.aw-business-hours-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

.aw-business-hours__status {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25em;
	margin: 0;
}

.aw-business-hours__status-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.aw-business-hours__clock {
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	vertical-align: middle;
	fill: none;
	stroke: currentColor;
}

.aw-business-hours__status-secondary {
	font-size: 0.875em;
	line-height: 1.35;
	opacity: 0.65;
	/* Align under status text (icon width + gap). */
	margin-left: calc(1em + 0.4em);
}

.aw-business-hours {
	list-style: none;
	margin: 0;
	padding: 0;
	color: inherit;
}

.aw-business-hours__row {
	display: flex;
	align-items: baseline;
	gap: 0.5em;
	margin: 0;
	padding: 0.25em 0;
	color: inherit;
}

.aw-business-hours__day {
	flex-shrink: 0;
}

.aw-business-hours--abbr .aw-business-hours__day {
	text-transform: uppercase;
}

.aw-business-hours__hours {
	flex-shrink: 0;
	margin-left: auto;
	text-align: right;
}

.aw-business-hours--leaders .aw-business-hours__hours {
	margin-left: 0;
}

.aw-business-hours__leader {
	flex: 1 1 auto;
	min-width: 0.75em;
	align-self: center;
	color: inherit;
	border: 0;
	border-bottom: 1px dotted currentColor;
	border-bottom-color: currentColor;
	opacity: 0.25;
	margin: 0 0.15em;
}

.aw-business-hours__row.is-today,
.aw-business-hours__row.is-today .aw-business-hours__day,
.aw-business-hours__row.is-today .aw-business-hours__hours {
	font-weight: 700;
}

.aw-business-hours__footer {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	margin: 0;
}

.aw-business-hours__footer-info,
.aw-business-hours__footer-cta {
	margin: 0;
	padding: 0;
}

.aw-business-hours__cta-link {
	text-decoration: none;
}

.aw-business-hours__cta-link:hover .aw-business-hours__cta-link-text,
.aw-business-hours__cta-link:focus .aw-business-hours__cta-link-text {
	text-decoration: underline;
}

/* Highlight colour: status primary, current day, CTA. */
.aw-business-hours-wrap.has-highlight .aw-business-hours__status-primary,
.aw-business-hours-wrap.has-highlight .aw-business-hours__status-primary .aw-business-hours__status-text,
.aw-business-hours-wrap.has-highlight .aw-business-hours__status-primary .aw-business-hours__clock {
	color: var(--aw-bh-highlight);
	stroke: var(--aw-bh-highlight);
}

.aw-business-hours-wrap.has-highlight .aw-business-hours__row.is-today,
.aw-business-hours-wrap.has-highlight .aw-business-hours__row.is-today .aw-business-hours__day,
.aw-business-hours-wrap.has-highlight .aw-business-hours__row.is-today .aw-business-hours__hours {
	color: var(--aw-bh-highlight);
}

.aw-business-hours-wrap.has-highlight .aw-business-hours__cta-link,
.aw-business-hours-wrap.has-highlight .aw-business-hours__cta-link-text {
	color: var(--aw-bh-highlight);
}
