/*
 * Business Hours Bricks element (TPTR_Bricks_Hours_Element).
 * Plain defaults only: the element's controls write the variables below
 * and style each part, scoped to the element by Bricks.
 */

.tptr-hours__list {
	display: grid;
	grid-template-columns: var(--tptr-hours-day-width, max-content) 1fr;
	column-gap: var(--tptr-hours-col-gap, 1.5em);
	row-gap: var(--tptr-hours-row-gap, 0.25em);
	margin: 0;
	padding: 0;
}

/* Each row spans both columns, so day widths line up down the list. */
.tptr-hours__row {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: subgrid;
	align-items: baseline;
}

.tptr-hours__day,
.tptr-hours__times {
	margin: 0;
	padding: 0;
}

.tptr-hours__span + .tptr-hours__span::before {
	content: ", ";
}

.tptr-hours--stack .tptr-hours__span {
	display: block;
}

.tptr-hours--stack .tptr-hours__span + .tptr-hours__span::before {
	content: none;
}

.tptr-hours__row--today {
	font-weight: 600;
}

/* One line: rows flow on, the separator after each but the last. */
.tptr-hours--inline .tptr-hours__list {
	display: flex;
	flex-wrap: wrap;
	column-gap: 0;
}

.tptr-hours--inline .tptr-hours__row {
	display: flex;
	column-gap: 0.4em;
}

.tptr-hours--inline .tptr-hours__sep {
	margin-inline: 0.5em;
}

.tptr-hours--inline.tptr-hours--stack .tptr-hours__span {
	display: inline;
}

.tptr-hours--inline.tptr-hours--stack .tptr-hours__span + .tptr-hours__span::before {
	content: ", ";
}

.tptr-hours__notes {
	display: grid;
	margin: 0.75em 0 0;
	padding: 0;
	list-style: none;
}
