/* Otevírací doba OFTALMED */

.od-obal {
	--od-barva: #12207a;
	--od-text: #3a4256;
	--od-sedy: #6b7385;
	--od-ram: #e0e6f2;
	display: inline-block;
}

.od-obal *,
.od-obal *::before,
.od-obal *::after {
	box-sizing: border-box;
}

/* Tlačítko ------------------------------------------------------------- */

.od-obal .od-spustec {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-family: inherit;
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.od-obal .od-spustec--tlacitko {
	padding: 0.6rem 1.2rem;
	border: 1px solid var(--od-barva);
	border-radius: 999px;
	background: transparent;
	color: var(--od-barva);
}

.od-obal .od-spustec--tlacitko:hover {
	background: var(--od-barva);
	color: #fff;
}

.od-obal .od-spustec--mala {
	gap: 0.4rem;
	padding: 0.4rem 0.9rem;
	font-size: 0.85rem;
}

.od-obal .od-spustec--mala .od-hodiny {
	width: 15px;
	height: 15px;
}

.od-obal .od-spustec--velka {
	gap: 0.6rem;
	padding: 0.85rem 1.6rem;
	font-size: 1rem;
}

.od-obal .od-spustec--odkaz {
	padding: 0;
	border: 0;
	background: none;
	color: var(--od-barva);
	text-decoration: underline;
}

.od-obal .od-spustec:focus-visible {
	outline: 2px solid var(--od-barva);
	outline-offset: 3px;
}

.od-hodiny {
	flex: 0 0 auto;
}

/* Překryv a okno ------------------------------------------------------- */

.od-prekryv {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(20, 28, 60, 0.45);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.od-prekryv.je-otevreno {
	opacity: 1;
}

.od-prekryv[hidden] {
	display: none;
}

.od-okno {
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 2.5rem);
	overflow-y: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(20, 28, 60, 0.28);
	transform: translateY(8px);
	transition: transform 0.18s ease;
	color: var(--od-text);
	text-align: left;
}

.od-prekryv.je-otevreno .od-okno {
	transform: translateY(0);
}

.od-hlavicka {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 1.75rem 1rem;
}

.od-obal .od-nadpis,
.od-okno .od-nadpis {
	margin: 0;
	color: var(--od-barva);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
}

.od-zavrit {
	flex: 0 0 auto;
	display: inline-flex;
	padding: 0;
	border: 0;
	background: none;
	color: var(--od-sedy);
	cursor: pointer;
	line-height: 0;
}

.od-zavrit:hover {
	color: var(--od-barva);
}

.od-zavrit:focus-visible {
	outline: 2px solid var(--od-barva);
	outline-offset: 2px;
	border-radius: 50%;
}

.od-telo {
	padding: 0.5rem 1.75rem 1.75rem;
}

/* Tabulka -------------------------------------------------------------- */

.od-tabulka {
	width: 100%;
	border-collapse: collapse;
	background: #f7f9fd;
	border-radius: 12px;
	overflow: hidden;
}

.od-tabulka th,
.od-tabulka td {
	padding: 0.7rem 1.1rem;
	font-size: 1rem;
	text-align: left;
	vertical-align: middle;
}

.od-tabulka th {
	font-weight: 600;
	color: var(--od-text);
	white-space: nowrap;
}

.od-tabulka td {
	color: var(--od-sedy);
	width: 100%;
}

.od-tabulka tr + tr th,
.od-tabulka tr + tr td {
	border-top: 1px solid var(--od-ram);
}

.od-zavreno-text {
	color: var(--od-sedy);
}

.od-poznamka {
	margin: 1rem 0 0;
	font-size: 0.92rem;
	color: var(--od-sedy);
}

/* Mobil ---------------------------------------------------------------- */

@media (max-width: 480px) {
	.od-hlavicka {
		padding: 1.25rem 1.25rem 0.75rem;
	}

	.od-telo {
		padding: 0.5rem 1.25rem 1.25rem;
	}

	.od-obal .od-nadpis {
		font-size: 1.35rem;
	}

	.od-tabulka th,
	.od-tabulka td {
		padding: 0.65rem 0.85rem;
		font-size: 0.95rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.od-prekryv,
	.od-okno {
		transition: none !important;
	}
}
