/* ITBoffins Live Opening Hours — front-end styles. */

/* ---- Status banner ---- */
.iboh-banner {
	font-family: inherit;
	font-size: inherit;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 44px 10px 18px;
	line-height: 1.4;
	z-index: 99990;
	text-align: center;
}

.iboh-banner.iboh-pos-top.iboh-sticky.iboh-push-top {
	position: sticky;
	top: 0;
}

.iboh-banner.iboh-pos-top.iboh-sticky.iboh-overlay-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.iboh-banner.iboh-pos-top.iboh-not-sticky.iboh-push-top {
	position: relative;
}

.iboh-banner.iboh-pos-top.iboh-not-sticky.iboh-overlay-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.iboh-banner.iboh-pos-bottom.iboh-sticky {
	position: fixed;
	left: 0;
	bottom: 0;
}

.iboh-banner.iboh-pos-bottom.iboh-not-sticky {
	position: relative;
}

.iboh-banner-inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.iboh-banner-skeleton {
	display: none;
	align-items: center;
	gap: 8px;
	justify-content: center;
}

.iboh-banner-skeleton span {
	display: block;
	height: 0.75em;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.32;
	animation: iboh-skeleton-pulse 1.2s ease-in-out infinite;
}

.iboh-banner-skeleton .iboh-skeleton-main {
	width: 9ch;
}

.iboh-banner-skeleton .iboh-skeleton-sub {
	width: 14ch;
	opacity: 0.22;
}

.iboh-banner.iboh-loading .iboh-banner-skeleton {
	display: inline-flex;
}

.iboh-banner.iboh-loading .iboh-dot,
.iboh-banner.iboh-loading .iboh-banner-main,
.iboh-banner.iboh-loading .iboh-banner-sub,
.iboh-banner.iboh-loading .iboh-banner-upcoming {
	display: none;
}

@keyframes iboh-skeleton-pulse {
	0%, 100% {
		opacity: 0.22;
	}
	50% {
		opacity: 0.4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iboh-banner-skeleton span {
		animation: none;
	}
}

.iboh-banner-main {
	font-weight: 700;
}

.iboh-banner-sub {
	opacity: 0.9;
}

/* Upcoming special-date note (banner + inline status). */
.iboh-banner-upcoming,
.iboh-status-upcoming {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	opacity: 0.95;
}

.iboh-banner-upcoming {
	flex: 1 1 100%;
	justify-content: center;
}

.iboh-status-upcoming {
	justify-content: flex-start;
}

.iboh-upcoming-item {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35em;
	white-space: nowrap;
}

.iboh-upcoming-item::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.55;
	align-self: center;
	flex: 0 0 auto;
}

.iboh-upcoming-date {
	font-weight: 700;
}

.iboh-upcoming-detail {
	font-weight: 400;
	opacity: 0.92;
}

/* Collapse the secondary lines when empty so they take no gap space. */
.iboh-banner-sub:empty,
.iboh-banner-upcoming:empty,
.iboh-status-sub:empty,
.iboh-status-upcoming:empty {
	display: none;
}

.iboh-banner-close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	color: inherit;
	font-family: inherit;
	font-size: 1.375em;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	padding: 0 4px;
}

.iboh-banner-close:hover {
	opacity: 1;
}

/* ---- Status indicator dot ---- */
.iboh-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.85;
	flex: 0 0 auto;
}

.iboh-open .iboh-dot {
	background: #1db954;
}

.iboh-closed .iboh-dot {
	background: #e5484d;
}

/* ---- Inline status (shortcode/block) ---- */
.iboh-status {
	font-family: inherit;
	font-size: inherit;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.iboh-status-main {
	font-weight: 700;
}

.iboh-status.iboh-open .iboh-status-main {
	color: #0a7a3d;
}

.iboh-status.iboh-closed .iboh-status-main {
	color: #b3261e;
}

.iboh-status-sub {
	opacity: 0.8;
}

@media (max-width: 520px) {
	.iboh-upcoming-item {
		white-space: normal;
	}
}

/* ---- Hours table ---- */
.iboh-widget {
	font-family: inherit;
	font-size: inherit;
	max-width: 420px;
}

.iboh-hours {
	font-family: inherit;
	font-size: inherit;
	width: 100%;
	border-collapse: collapse;
}

.iboh-hours th,
.iboh-hours td {
	font-family: inherit;
	font-size: inherit;
	text-align: left;
	padding: 7px 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.iboh-hours .iboh-day {
	font-weight: 600;
}

.iboh-hours .iboh-times {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.iboh-hours tr.iboh-today {
	background: rgba(0, 184, 107, 0.10);
}

.iboh-hours tr.iboh-today .iboh-day {
	position: relative;
}

/* ---- Upcoming special dates list ---- */
.iboh-upcoming {
	margin-top: 16px;
}

.iboh-upcoming-heading {
	font-family: inherit;
	font-size: 0.875em;
	margin: 0 0 6px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.7;
}
