/* Case card thumbs on /keys/: landscape 250×180, fill width, crop tops (no stretch) */
.mkl-keys-case-thumb.widget-image {
	max-width: 250px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.mkl-keys-case-thumb.widget-image .bgimage {
	max-width: 250px;
	width: 100%;
	margin: 0 auto;
	background-size: cover !important;
	background-position: center bottom !important;
	background-repeat: no-repeat !important;
}

.mkl-keys-case-thumb.widget-image .bgimage .inner {
	display: block;
	width: 100%;
	max-width: 250px;
}

.mkl-keys-case-thumb.widget-image .bgimage .proportions {
	display: block;
	width: 100%;
	height: 0 !important;
	padding-bottom: 72% !important; /* 180 / 250 */
	max-width: 250px;
}

.mkl-keys-popover-backdrop {
	position: fixed;
	inset: 0;
	z-index: 10030;
	background: transparent;
	pointer-events: none;
}

.mkl-keys-popover {
	position: absolute;
	z-index: 10035;
	box-sizing: border-box;
	width: 978px;
	max-width: calc(100vw - 24px);
	border-radius: 7px;
	background-color: rgb(255, 255, 255);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	border: 1px solid rgb(242, 242, 242);
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
	background-clip: padding-box;
	outline: none;
	padding: 20px;
	opacity: 0;
	transform-origin: 50% 0;
	transform: rotateX(-15deg);
	transition: 250ms transform ease-out, 250ms opacity ease-out;
	perspective: 1000px;
}

.mkl-keys-popover.is-open {
	opacity: 1;
	transform: rotateX(0deg);
}

.mkl-keys-popover::before,
.mkl-keys-popover::after {
	content: '';
	position: absolute;
	left: var(--arrow-left, 50%);
	transform: translateX(-50%);
	width: 0;
	height: 0;
	pointer-events: none;
}

.mkl-keys-popover::before {
	top: -10px;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid rgb(242, 242, 242);
}

.mkl-keys-popover::after {
	top: -9px;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-bottom: 9px solid #fff;
}

.mkl-keys-popover__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	border: 0;
	background: transparent;
	color: #631080;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 6px;
}

.mkl-keys-popover__inner {
	position: relative;
}

.mkl-keys-popover__cols {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

.mkl-keys-popover__left {
	flex: 1.15 1 0;
	min-width: 0;
}

.mkl-keys-popover__right {
	flex: 0.85 1 0;
	min-width: 0;
}

.mkl-keys-popover__section {
	margin-bottom: 16px;
}

.mkl-keys-popover__label {
	margin: 0 0 8px;
	font-family: 'TTNorms Medium', sans-serif;
	font-size: 17px;
	line-height: 1.35;
	color: #631080;
}

.mkl-keys-popover__text {
	margin: 0;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
}

.mkl-keys-popover__list {
	margin: 0;
	padding-left: 20px;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
}

.mkl-keys-popover__list li + li {
	margin-top: 5px;
}

.mkl-keys-popover__list a {
	color: #631080;
	word-break: break-all;
}

.mkl-keys-popover__preview {
	width: 100%;
	max-width: 240px;
	margin: 0 auto;
	aspect-ratio: 218 / 134;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.mkl-keys-popover__site-title {
	margin: 10px 0 14px;
	text-align: center;
	font-family: 'TTNorms Medium', sans-serif;
	font-size: 17px;
	line-height: 1.35;
	color: #231971;
}

.mkl-keys-popover__section--result {
	padding-left: 18px;
}

.mkl-keys-popover__cta {
	display: block;
	width: 100%;
	max-width: 220px;
	margin: 16px auto 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 6px;
	background: linear-gradient(180deg, #7b2d9e 0%, #631080 100%);
	color: #fff;
	font-family: 'TTNorms Medium', sans-serif;
	font-size: 15px;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.mkl-keys-popover__cta:hover {
	opacity: 0.92;
}

.mkl-keys-form-modal {
	display: contents;
}

.mkl-keys-form-modal:not(.is-open) .mkl-keys-form-modal__overlay,
.mkl-keys-form-modal:not(.is-open) .mkl-keys-form-modal__panel {
	display: none !important;
}

.mkl-keys-form-modal__overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	z-index: 10050;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.mkl-keys-form-modal__panel {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10051;
	width: 440px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow: auto;
	box-sizing: border-box;
}

.mkl-keys-form-modal__content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px 32px;
	box-sizing: border-box;
}

.mkl-keys-form-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	color: #631080;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.mkl-keys-form-modal__title {
	margin: 0 0 10px;
	font-family: 'TTNorms Medium', sans-serif;
	font-size: 22px;
	line-height: 1.3;
	color: #231971;
}

.mkl-keys-form-modal__lead {
	margin: 0 0 18px;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: #555;
}

.mkl-keys-form-modal__field {
	margin-bottom: 14px;
}

.mkl-keys-form-modal__field label {
	display: block;
	margin-bottom: 6px;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 14px;
	color: #333;
}

.mkl-keys-form-modal__req {
	color: #c00;
}

.mkl-keys-form-modal__field input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 15px;
}

.mkl-keys-form-modal__privacy {
	margin: 0 0 16px;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 12px;
	line-height: 1.4;
	color: #888;
}

.mkl-keys-form-modal__submit {
	display: block;
	width: 100%;
	padding: 12px 18px;
	border: 0;
	border-radius: 6px;
	background: linear-gradient(180deg, #7b2d9e 0%, #631080 100%);
	color: #fff;
	font-family: 'TTNorms Medium', sans-serif;
	font-size: 15px;
	cursor: pointer;
}

.mkl-keys-form-modal__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.mkl-keys-form-modal__success {
	margin-top: 12px;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: #231971;
	white-space: pre-line;
}

@media (max-width: 1024px) {
	.mkl-keys-popover {
		padding: 18px;
	}

	.mkl-keys-popover__cols {
		gap: 20px;
	}

	.mkl-keys-popover__preview {
		max-width: 220px;
	}

	.mkl-keys-popover__label {
		font-size: 16px;
	}

	.mkl-keys-popover__text,
	.mkl-keys-popover__list {
		font-size: 15px;
	}
}

@media (max-width: 768px) {
	.mkl-keys-popover {
		padding: 16px;
		-webkit-overflow-scrolling: touch;
	}

	.mkl-keys-popover__cols {
		flex-direction: column;
		gap: 16px;
	}

	.mkl-keys-popover__left,
	.mkl-keys-popover__right {
		flex: 1 1 auto;
	}

	.mkl-keys-popover__preview {
		max-width: 200px;
	}

	.mkl-keys-popover__section--result {
		padding-left: 12px;
	}

	.mkl-keys-popover__cta {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.mkl-keys-popover {
		padding: 14px 14px 16px;
	}

	.mkl-keys-popover__label {
		font-size: 15px;
	}

	.mkl-keys-popover__text,
	.mkl-keys-popover__list {
		font-size: 14px;
	}

	.mkl-keys-popover__preview {
		max-width: 180px;
	}

	.mkl-keys-popover__site-title {
		font-size: 15px;
	}
}
