/* modal pro clenske karty */

#partner-modal[hidden] {
	display: none;
}

/* backdrop pouze v mobilnim rezimu */
.partner-modal__backdrop {
	display: none;
}

#partner-modal.partner-modal--centered .partner-modal__backdrop {
	display: block;
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	z-index: 999;
}

/* tooltip box */
.partner-modal__box {
	position: fixed;
	z-index: 9999;
	background: #fff;
	border-radius: 8px;
	padding: 1.1rem 1.4rem;
	max-width: 320px;
	width: calc( 100% - 2rem );
	box-shadow: 0 4px 20px rgba( 0, 0, 0, 0.15 );
	opacity: 0;
	transform: translateY( 8px );
	transition: opacity 230ms cubic-bezier( 0.16, 1, 0.3, 1 ), transform 230ms cubic-bezier( 0.16, 1, 0.3, 1 );
	pointer-events: none;
}

#partner-modal.is-open .partner-modal__box {
	opacity: 1;
	transform: translateY( 0 );
	pointer-events: auto;
}

/* mobilni rezim — vycentrovany */
#partner-modal.partner-modal--centered .partner-modal__box {
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	transform: translate( -50%, -54% );
	max-width: 440px;
	padding: 2rem 2rem 1.75rem;
}

#partner-modal.partner-modal--centered.is-open .partner-modal__box {
	transform: translate( -50%, -50% );
}

/* zavreci tlacitko — jen v mobilnim rezimu */
.partner-modal__close {
	display: none;
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	color: #555;
}

#partner-modal.partner-modal--centered .partner-modal__close {
	display: block;
}

.partner-modal__close:hover {
	color: #000;
}

.partner-modal__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

#partner-modal.partner-modal--centered .partner-modal__title {
	font-size: 1.2rem;
	margin-bottom: 0.75rem;
	padding-right: 2rem;
}

.partner-modal__title a {
	color: inherit;
	text-decoration: underline;
}

.partner-modal__body {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #444;
	white-space: pre-line;
}

.partner-has-modal {
	cursor: pointer;
}

.program-has-detail {
	cursor: pointer;
}

body.partner-modal-open {
	overflow: hidden;
}
