/* AE Hours — minimal, theme-friendly styles. All selectors namespaced under
   .ae-hours so the widget inherits the theme's typography by default and only
   adds light structure. */

.ae-hours {
	display: block;
	max-width: 32rem;
	line-height: 1.5;
}

.ae-hours__title {
	margin: 0 0 0.5rem;
	font-size: 1.1em;
}

.ae-hours__status {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 600;
}

.ae-hours__status--open {
	background: #e7f6ec;
	color: #1a7f37;
}

.ae-hours__status--closed {
	background: #fbeaea;
	color: #a4282a;
}

.ae-hours__weekly {
	width: 100%;
	border-collapse: collapse;
}

.ae-hours__caption {
	text-align: left;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.ae-hours__row > th,
.ae-hours__row > td {
	padding: 0.2em 0;
	text-align: left;
	vertical-align: top;
}

.ae-hours__day {
	font-weight: 500;
	padding-right: 1.5em;
}

.ae-hours__times {
	white-space: nowrap;
}

.ae-hours__row--closed .ae-hours__times {
	opacity: 0.7;
}

/* Schedule-change notice: the upcoming standing pattern differs from the week
   shown above. A light, attention-drawing block (not an error) carrying the
   change date and the new week's hours. */
.ae-hours__change {
	margin-top: 1rem;
	padding: 0.6em 0.85em;
	border-left: 3px solid #b88600;
	background: #fff8e5;
}

.ae-hours__change-lead {
	margin: 0 0 0.4rem;
	font-weight: 600;
}

.ae-hours__change-week {
	width: 100%;
	border-collapse: collapse;
}

.ae-hours__change-caption {
	text-align: left;
	font-weight: 500;
	opacity: 0.8;
	margin-bottom: 0.25rem;
}

.ae-hours__exceptions {
	margin-top: 1rem;
}

.ae-hours__exceptions-title {
	margin: 0 0 0.35rem;
	font-size: 1em;
}

.ae-hours__exceptions-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ae-hours__exception {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	padding: 0.15em 0;
}

.ae-hours__exception-date {
	font-weight: 500;
	min-width: 4.5em;
}

.ae-hours__exception-note {
	opacity: 0.75;
}

/* Multi-week "upcoming hours" view: a plain, customer-facing day-by-day list
   grouped into rolling weeks. No provenance colours or edit affordances — just
   readable structure, with special days lightly marked. */
.ae-hours__u-week {
	margin: 0 0 1rem;
}

.ae-hours__u-week-title {
	margin: 0 0 0.3rem;
	font-size: 0.95em;
	font-weight: 600;
	opacity: 0.85;
}

.ae-hours__u-table {
	width: 100%;
	border-collapse: collapse;
}

.ae-hours__u-day > th,
.ae-hours__u-day > td {
	padding: 0.18em 0;
	text-align: left;
	vertical-align: top;
}

.ae-hours__u-date {
	font-weight: 500;
	padding-right: 1.25em;
	white-space: nowrap;
}

.ae-hours__u-times {
	white-space: nowrap;
	padding-right: 1em;
}

.ae-hours__u-note {
	width: 100%;
	opacity: 0.75;
	font-size: 0.95em;
}

.ae-hours__u-day--closed .ae-hours__u-times {
	opacity: 0.7;
}

/* Special days: a left accent. Closures/exceptions in muted red, the start of a
   new regular pattern in the same amber as the weekly-view change notice. */
.ae-hours__u-day--exception > th,
.ae-hours__u-day--closure > th,
.ae-hours__u-day--calendar_response > th {
	box-shadow: inset 3px 0 0 #d6a0a0;
	padding-left: 0.5em;
}

.ae-hours__u-day--change > th {
	box-shadow: inset 3px 0 0 #b88600;
	padding-left: 0.5em;
}

/* Graceful unavailable state: a neutral public line, plus an admin-only
   diagnostic (the __notice paragraph) naming the failed identifier. */
.ae-hours__unavailable {
	margin: 0;
	color: #555;
	font-style: italic;
}

.ae-hours__notice {
	margin: 0.5em 0 0;
	padding: 0.5em 0.75em;
	border-left: 3px solid #d63638;
	background: #fcf0f1;
	font-size: 0.9em;
	font-style: normal;
}
