/* RSI Location Hours. Inherits the site font and colors; only spacing and layout are set here. */

.rsi-hours {
	margin: 0 0 24px;
	padding: 16px 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12); /* Google requires Places content to be visually separated. */
	font-size: 16px;
	line-height: 1.5;
}

.rsi-hours__title {
	margin: 0 0 8px;
	padding: 0;
}

.rsi-hours__list {
	display: grid;
	grid-template-columns: max-content max-content; /* Columns size to their content, so hours sit right next to the day. */
	column-gap: 24px;
	row-gap: 4px;
	margin: 0;
	padding: 0;
}

.rsi-hours__row {
	display: contents;
}

.rsi-hours__day,
.rsi-hours__time {
	margin: 0;
	padding: 0;
}

.rsi-hours__day {
	font-weight: 600;
}

.rsi-hours__time {
	text-align: left;
}

/* Very narrow columns: stack the hours under the day. */
@media (max-width: 360px) {
	.rsi-hours__list {
		grid-template-columns: max-content;
		row-gap: 0;
	}

	.rsi-hours__time {
		margin-bottom: 6px;
	}
}

/* Attribution: official logo at 18px tall (Google allows 16–19px), with required clear space above and below. */
.rsi-hours__attribution {
	margin-top: 10px;
	padding-bottom: 5px;
	line-height: 0;
}

.rsi-hours__logo {
	display: block;
	width: auto;
	height: 18px;
	max-width: none;
}

/* Text fallback ([location_hours logo="text"]). Google's styling rules for the attribution text require Roboto/sans-serif here. */
.rsi-hours__attribution-text {
	font-family: Roboto, sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: normal;
	white-space: nowrap;
	color: #5e5e5e;
}
