/* R&A Business Hours: front end.
   Colors are variables so they can be adjusted from Appearance → Customize → Additional CSS, e.g.
   .rabh-table { --rabh-accent: #23408e; } */

table.rabh-table {
	--rabh-border: #e5e5e5;
	--rabh-text: #666;
	--rabh-accent: #23408e;
	width: 100%;
	margin: 0 0 1.5em;
	border: 0;
	border-collapse: collapse;
	background: none;
	font-size: inherit;
}

table.rabh-table th,
table.rabh-table td {
	padding: 16px 12px;
	border: 0;
	border-bottom: 1px solid var(--rabh-border);
	background: none;
	color: var(--rabh-text);
	font-size: inherit;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	vertical-align: top;
}

table.rabh-table th {
	width: 47%;
}

table.rabh-table tr.rabh-today th,
table.rabh-table tr.rabh-today td {
	color: var(--rabh-accent);
	font-weight: 600;
}

.rabh-note {
	display: block;
	margin-top: 2px;
	font-size: 0.85em;
	font-weight: 400;
	opacity: 0.8;
}

/* Open / closed indicator */
.rabh-status {
	--rabh-open: #1a7f37;
	--rabh-closed: #b42318;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25em 0.5em;
}

.rabh-dot {
	flex: none;
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	background: var(--rabh-closed);
}

.rabh-is-open .rabh-dot {
	background: var(--rabh-open);
	box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.18);
}

.rabh-status-label {
	font-weight: 600;
}

.rabh-status-detail {
	opacity: 0.8;
}

.rabh-status-detail:empty {
	display: none;
}

/* Upcoming holidays */
.rabh-holidays {
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.rabh-holidays li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25em 1em;
	margin: 0;
	padding: 12px;
	border-bottom: 1px solid #e5e5e5;
	color: #666;
}

.rabh-holiday-label {
	flex: 1 1 auto;
}

.rabh-holidays li[hidden],
.rabh-if[hidden] {
	display: none !important;
}

/* All showrooms: [business_hours_locations] */
.rabh-locations {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px 48px;
	margin: 0 0 1.5em;
}

.rabh-location-name {
	margin: 0 0 8px;
}

.rabh-location-details {
	margin: 0 0 8px;
	color: #666;
}

.rabh-location-address,
.rabh-location-phone {
	display: block;
}

.rabh-location-status {
	margin: 0 0 4px;
}
