/* Frontend styles: opening hours shortcode */

.elmur-ds-oh-display {
	margin: 1.5em 0;
}

.elmur-ds-oh-display__table {
	border-collapse: collapse;
	width: auto;
}

.elmur-ds-oh-display__day {
	padding: 0 0.75em 0.25em 0;
	font-weight: 500;
	white-space: nowrap;
	vertical-align: top;
	text-align: left;
}

.elmur-ds-oh-display__times {
	padding: 0 0 0.25em 0;
	vertical-align: top;
}

.elmur-ds-oh-display__table tr:last-child .elmur-ds-oh-display__day,
.elmur-ds-oh-display__table tr:last-child .elmur-ds-oh-display__times {
	padding-bottom: 0;
}

/* Inline label after times (e.g. "Lunch break") */
.elmur-ds-oh-label {
	margin-left: 0.25rem;
	font-style: italic;
	opacity: 0.75;
}

/* Label-only row (e.g. "Closed") */
.elmur-ds-oh-label--closed {
	margin-left: 0;
	font-style: normal;
	opacity: 1;
}

/* Empty state */
.elmur-ds-oh-empty {
	color: #666;
	font-style: italic;
}

/* Multi-location wrapper */
.elmur-ds-oh-locations {
	line-height: 1.375rem;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.elmur-ds-oh-locations__item {
	margin: 0.75rem 0 0;
}

.elmur-ds-oh-locations__item:first-child {
	margin-top: 0;
}

.elmur-ds-oh-locations__name {
	margin: 0 0 0.25rem;
	color: var(--color-accent, #cc0000);
}

/* Remove default top/bottom margin from the opening-hours table
   inside the multi-location wrapper — spacing is handled by the items. */
.elmur-ds-oh-locations .elmur-ds-oh-display {
	margin: 0;
}

/* Responsive: stack on very small screens */
@media (max-width: 25rem) {
	.elmur-ds-oh-display__table,
	.elmur-ds-oh-display__table tbody,
	.elmur-ds-oh-display__table tr,
	.elmur-ds-oh-display__day,
	.elmur-ds-oh-display__times {
		display: block;
		width: 100%;
	}

	.elmur-ds-oh-display__day {
		padding-bottom: 0.125rem;
	}

	.elmur-ds-oh-display__times {
		padding-top: 0;
		padding-left: 0.75rem;
	}
}

/* Display: card (boxed container) */
.elmur-ds-oh-display--card {
	margin: 0;
	padding: 1rem;
	background: var(--color-bg-alt, #f5f5f5);
	border: 1px solid var(--color-border, #e5e5e5);
	border-radius: var(--radius-md, 8px);
}

/* Display: compact (slim, e.g. footer) */
.elmur-ds-oh-display--compact {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.375rem;
}

.elmur-ds-oh-display--compact .elmur-ds-oh-display__day,
.elmur-ds-oh-display--compact .elmur-ds-oh-display__times {
	padding-bottom: 0.125rem;
}

/* Card grid for multiple locations */
.elmur-ds-oh-locations--card {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 1.5rem;
}

.elmur-ds-oh-locations--card .elmur-ds-oh-locations__item {
	margin: 0;
}

.elmur-ds-oh-locations--cols-2 { grid-template-columns: repeat(2, 1fr); }
.elmur-ds-oh-locations--cols-3 { grid-template-columns: repeat(3, 1fr); }
.elmur-ds-oh-locations--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 48rem) {
	.elmur-ds-oh-locations--cols-2,
	.elmur-ds-oh-locations--cols-3,
	.elmur-ds-oh-locations--cols-4 {
		grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	}
}
