/* Veterinární ordinace – oznámení (banner + modal) */

body.vm-notification-banner-visible {
	padding-top: 48px;
}

.vm-notification-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 40px;
	background-color: #c0392b;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	box-sizing: border-box;
	transform: translateY(-100%);
	opacity: 0;
	transition: transform 200ms ease, opacity 200ms ease;
}

.vm-notification-banner.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.vm-notification-banner.is-clickable {
	cursor: pointer;
	transition: transform 200ms ease, opacity 200ms ease, background-color 150ms ease;
}

.vm-notification-banner.is-clickable:hover {
	background-color: #a93226;
}

.vm-notification-banner__text {
	flex: 1;
	max-width: 100%;
}

.vm-notification-banner__chevron {
	margin-left: 8px;
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
}

.vm-notification-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 200ms ease, visibility 200ms ease;
}

.vm-notification-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.vm-notification-modal {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		'title close'
		'body body';
	column-gap: 12px;
	row-gap: 16px;
	align-items: center;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
}

.vm-notification-modal__close {
	grid-area: close;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	color: #294442;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
	flex-shrink: 0;
}

.vm-notification-modal__close:hover,
.vm-notification-modal__close:focus {
	background: rgba(122, 194, 67, 0.1);
	background: color-mix(in srgb, #7ac243 10%, transparent);
	outline: none;
}

.vm-notification-modal__title {
	grid-area: title;
	margin: 0;
	min-width: 0;
	padding-left: 0;
	color: #294442;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.vm-notification-modal__body {
	grid-area: body;
	margin: 0;
	padding-left: 0;
	color: #333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	white-space: pre-line;
}

@media (max-width: 480px) {
	.vm-notification-banner {
		font-size: 13px;
		padding: 0 12px;
		height: auto;
		min-height: 48px;
	}

	body.vm-notification-banner-visible {
		padding-top: 56px;
	}

	.vm-notification-modal {
		padding: 24px 20px;
	}

	.vm-notification-modal__title {
		font-size: 18px;
	}
}
