/* Endobiogenikos registracija – artimiausi laisvi laikai
 * Naudoja tuos pačius --esb-* kintamuosius kaip registracija.
 */

.esb-next {
	--esb-ink: #14201d;
	--esb-body: #3c4a46;
	--esb-muted: #5f726c;
	--esb-line: #e3e9e6;
	--esb-field: #84938d;
	--esb-surface: #ffffff;
	--esb-accent: #1b6656;
	--esb-accent-dark: #144f43;
	--esb-accent-soft: #e6f0ec;
	--esb-radius: 2px;

	font-family: var(--esb-font, inherit);
	color: var(--esb-body);
	line-height: 1.5;
	padding: 24px 0 22px;
	border-top: 1px solid var(--esb-ink);
	border-bottom: 1px solid var(--esb-line);
	box-sizing: border-box;
}

.esb-next *,
.esb-next *::before,
.esb-next *::after {
	box-sizing: border-box;
}

.esb-next .esb-next__title {
	margin: 0 0 4px;
	font-family: var(--esb-display, inherit);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--esb-ink);
}

.esb-next .esb-next__service {
	margin: 0 0 22px;
	font-size: 16px;
	color: var(--esb-body);
}

/* Aukštis rezervuotas iš anksto – įkėlus laikus blokas neperšoka. */
.esb-next .esb-next__body {
	min-height: 86px;
}

.esb-next .esb-next__day {
	display: block;
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--esb-ink);
}

.esb-next .esb-next__times {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.esb-next .esb-next__times li {
	margin: 0;
	padding: 0;
}

.esb-next .esb-next__time {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border: 1px solid var(--esb-field);
	border-radius: var(--esb-radius);
	background: var(--esb-surface);
	font-size: 17px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--esb-ink);
	text-decoration: none;
	transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.esb-next a.esb-next__time:hover {
	border-color: var(--esb-accent);
	background: var(--esb-accent);
	color: #fff;
}

.esb-next a.esb-next__time:focus-visible,
.esb-next .esb-next__all:focus-visible {
	outline: 2px solid var(--esb-accent);
	outline-offset: 2px;
}

/* Kol kraunasi – tylūs kontūrai toje pačioje vietoje */
.esb-next .esb-next__day--ghost {
	width: 11em;
	height: 1.35em;
	background: var(--esb-line);
	border-radius: var(--esb-radius);
}

.esb-next .esb-next__time--ghost {
	border-color: var(--esb-line);
	background: transparent;
}

.esb-next .esb-next__msg {
	margin: 0 0 18px;
	font-size: 16px;
	color: var(--esb-body);
}

.esb-next .esb-next__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-size: 16px;
	font-weight: 600;
	color: var(--esb-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.esb-next .esb-next__all:hover {
	color: var(--esb-accent-dark);
	text-decoration-thickness: 2px;
}

.esb-next .esb-next__all svg {
	transition: transform 0.15s ease;
}

.esb-next .esb-next__all:hover svg {
	transform: translateX(2px);
}

@media (max-width: 360px) {
	.esb-next .esb-next__times {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.esb-next * {
		transition: none !important;
	}
}
