/* Hours & Location */

.rew-hours {
	--rew-hours-today: var(--mg-secondary-soft);
	--rew-hours-open: var(--mg-success);
	--rew-hours-closed: var(--mg-danger);
	--rew-hours-line: var(--mg-border);
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: var(--rew-text);
}

.rew-hours--summary {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}

.rew-hours__title {
	margin: 0;
	font-family: var(--mg-font-display);
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.15;
	color: var(--rew-ink);
}

.rew-hours__summary {
	margin: 0;
	font-weight: 600;
}

.rew-hours__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin: 0;
	padding: 5px 12px 5px 10px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.rew-hours__status[hidden] {
	display: none;
}

.rew-hours__status.is-open { color: var(--rew-hours-open, var(--mg-success)); }
.rew-hours__status.is-closed { color: var(--rew-hours-closed, var(--mg-danger)); }

.rew-hours__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.rew-hours__status.is-open .rew-hours__dot {
	box-shadow: 0 0 0 0 currentColor;
	animation: rew-hours-ping 2.4s ease-out infinite;
}

@keyframes rew-hours-ping {
	0% { box-shadow: 0 0 0 0 rgba(47, 125, 79, .45); }
	80%, 100% { box-shadow: 0 0 0 8px rgba(47, 125, 79, 0); }
}

.rew-hours__list {
	display: grid;
	gap: 14px;
	margin: 0;
}

.rew-hours__row {
	display: grid;
	gap: 2px;
}

.rew-hours__label {
	margin: 0;
	color: var(--rew-muted);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.rew-hours__value {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.5;
}

body .rew-hours__value a {
	color: var(--rew-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

body .rew-hours__value a:hover {
	text-decoration-thickness: 2px;
}

.rew-hours__block {
	display: grid;
	gap: 8px;
}

.rew-hours .rew-hours__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

/* Prefixed with .rew-hours so theme table resets (borders, zebra stripes) do not apply. */
.rew-hours .rew-hours__table th,
.rew-hours .rew-hours__table td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--rew-hours-line);
	background: transparent;
	color: inherit;
	font-size: 1rem;
	text-align: start;
	vertical-align: top;
}

.rew-hours .rew-hours__table th {
	padding-inline-start: 0;
	font-weight: 600;
}

.rew-hours .rew-hours__table td {
	text-align: end;
	padding-inline-end: 0;
}

.rew-hours .rew-hours__table tr.is-today th,
.rew-hours .rew-hours__table tr.is-today td {
	background: var(--rew-hours-today);
}

.rew-hours .rew-hours__table tr.is-today th {
	padding-inline-start: 12px;
	border-radius: 10px 0 0 10px;
}

.rew-hours .rew-hours__table tr.is-today td {
	padding-inline-end: 12px;
	border-radius: 0 10px 10px 0;
}

.rew-hours .rew-hours__table tr.is-closed td {
	color: var(--rew-muted);
}

.rew-hours__note {
	margin: 0;
	color: var(--rew-muted);
	font-size: .95rem;
}

.rew-hours__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

body a.rew-hours__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 160px;
	min-height: 50px;
	padding: 0 22px;
	border: 1.5px solid var(--rew-ink);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

body a.rew-hours__btn--primary {
	background: var(--rew-ink);
	color: #fff;
}

body a.rew-hours__btn--primary:hover,
body a.rew-hours__btn--primary:focus-visible {
	background: var(--mg-ink);
	color: #fff;
}

body a.rew-hours__btn--secondary {
	background: transparent;
	color: var(--rew-ink);
}

body a.rew-hours__btn--secondary:hover,
body a.rew-hours__btn--secondary:focus-visible {
	background: var(--rew-ink);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.rew-hours__status.is-open .rew-hours__dot {
		animation: none;
	}
}
