/*
 * BizHours — Default front-end stylesheet
 * BEM namespace: bh-
 * Version: 0.01
 *
 * Intentionally minimal — a starting point, not an opinion.
 * Disable via Settings → Advanced to style from scratch.
 */

/* ── Hours table ──────────────────────────────────────────────────────────── */

.bizhours-table {
	display: block;
	max-width: 480px;
}

.bizhours-table__holiday-notice {
	padding: 8px 12px;
	margin-bottom: 10px;
	background: #faeeda;
	border-left: 3px solid #f0a500;
	border-radius: 0 4px 4px 0;
	font-size: 0.9em;
	color: #633806;
}

.bizhours-table__grid {
	width: 100%;
	border-collapse: collapse;
}

.bizhours-table__row {
	border-bottom: 1px solid #eee;
}

.bizhours-table__row:last-child {
	border-bottom: none;
}

.bizhours-table__row--today .bizhours-table__day,
.bizhours-table__row--today .bizhours-table__hours {
	font-weight: 600;
}

.bizhours-table__row--closed .bizhours-table__day,
.bizhours-table__row--closed .bizhours-table__hours {
	color: #999;
}

.bizhours-table__day,
.bizhours-table__hours {
	padding: 7px 8px;
	font-size: 0.95em;
	vertical-align: top;
}

.bizhours-table__day {
	min-width: 120px;
}

.bizhours-table__hours--closed {
	color: #999;
	font-style: italic;
}

/* ── Open/closed indicator ────────────────────────────────────────────────── */

.bizhours-indicator {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.bizhours-indicator__status {
	font-weight: 600;
}

.bizhours-indicator--open .bizhours-indicator__status {
	color: #3b6d11;
}

.bizhours-indicator--closed .bizhours-indicator__status {
	color: #a32d2d;
}

.bizhours-indicator--opening-soon .bizhours-indicator__status,
.bizhours-indicator--closing-soon .bizhours-indicator__status {
	color: #854f0b;
}

.bizhours-indicator__next {
	color: #666;
	font-size: 0.9em;
}

.bizhours-indicator__hours {
	color: #666;
	font-size: 0.9em;
}

/* ── Contact block ────────────────────────────────────────────────────────── */

.bizhours-contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bizhours-contact__row {
	/* No default styles — let the theme control layout */
}

.bizhours-contact__name    { font-weight: 600; }
.bizhours-contact__phone   { }
.bizhours-contact__email   { }
.bizhours-contact__website { }
.bizhours-contact__address { font-style: normal; line-height: 1.5; }

.bizhours-countdown {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bizhours-countdown__timer {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.bizhours-countdown__label {
	color: #666;
	font-size: 0.9em;
}

/* ── Message ──────────────────────────────────────────────────────────────── */

.bizhours-message {
	/* No default styles — let the theme control message appearance */
}

/* ── Summary ──────────────────────────────────────────────────────────────── */

.bizhours-summary {
	/* No default styles */
}

/* ── Calendar ─────────────────────────────────────────────────────────────── */

.bizhours-calendar {
	max-width: 480px;
}

.bizhours-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.bizhours-calendar__month {
	font-weight: 600;
}

.bizhours-calendar__nav {
	display: flex;
	gap: 4px;
}

.bizhours-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.bizhours-calendar__dow {
	font-size: 0.75em;
	text-align: center;
	color: #888;
	padding: 4px 0;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bizhours-calendar__cell {
	padding: 6px 4px;
	text-align: center;
	border-radius: 3px;
	font-size: 0.85em;
}

.bizhours-calendar__cell--today {
	outline: 2px solid #2271b1;
	outline-offset: -1px;
}

.bizhours-calendar__cell--other-month {
	opacity: 0.3;
}

.bizhours-calendar__cell--open {
	background: #eaf3de;
	color: #3b6d11;
}

.bizhours-calendar__cell--closed {
	background: #fcebeb;
	color: #a32d2d;
}

.bizhours-calendar__cell--holiday {
	background: #f0e6fc;
	color: #5b2d8a;
}

.bizhours-calendar__cell--vacation {
	background: #faeeda;
	color: #854f0b;
}

.bizhours-calendar__cell--seasonal {
	background: #e6f4fb;
	color: #185fa5;
}

.bizhours-calendar__cell--exception {
	background: #e6fbf4;
	color: #185a42;
}

.bizhours-calendar__date {
	display: block;
	font-weight: 500;
}

.bizhours-calendar__badge {
	display: block;
	font-size: 0.75em;
	margin-top: 2px;
}

.bizhours-calendar__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
	font-size: 0.8em;
	color: #666;
}

.bizhours-calendar__legend-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.bizhours-calendar__legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

/* ── Social links ─────────────────────────────────────────────────────────── */

.bizhours-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.bizhours-social__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
}

.bizhours-social__link:hover {
	opacity: 0.8;
}

.bizhours-social__label {
	font-size: 0.9em;
}

[data-layout="icon"] .bizhours-social__label {
	display: none;
}

.bizhours-table__summary {
	margin: 0;
	padding: 0;
	font-style: italic;
	color: inherit;
}
