.mpsr-trigger-wrap {
	display: inline-block;
	margin: 0 0 12px 14px;
}

.mpsr-trigger {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	color: #102f5d;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.35;
	padding: 0 0 2px;
	user-select: none;
}

.mpsr-trigger:hover,
.mpsr-trigger:focus,
.mpsr-trigger:focus-visible,
.mpsr-trigger:active {
	background: transparent !important;
	background-color: transparent !important;
	border-bottom-color: #061c3c !important;
	box-shadow: none !important;
	color: #061c3c !important;
}

.mpsr-trigger:focus-visible,
.mpsr-dialog button:focus-visible,
.mpsr-dialog input:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
}

.mpsr-dialog {
	background: #fff;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
	color: #20242b;
	margin: auto;
	max-height: min(760px, calc(100vh - 32px));
	max-width: min(620px, calc(100vw - 32px));
	overflow: auto;
	padding: 0;
	width: 100%;
	z-index: 100000;
}

.mpsr-dialog::backdrop {
	background: rgba(8, 15, 28, .72);
}

.mpsr-dialog[open] {
	display: block;
}

.mpsr-dialog__inner {
	padding: 34px 36px 36px;
	position: relative;
}

.mpsr-dialog__inner h2 {
	color: #102f5d;
	font-size: clamp(24px, 4vw, 32px);
	line-height: 1.2;
	margin: 0 44px 10px 0;
}

.mpsr-dialog__intro {
	color: #555d68;
	font-size: 15px;
	margin: 0 0 24px;
}

.mpsr-dialog__close {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #20242b;
	cursor: pointer;
	display: flex;
	font-size: 31px;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 20px;
	top: 20px;
	width: 44px;
}

.mpsr-fields {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mpsr-field {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.mpsr-field input {
	background: #fff;
	border: 1px solid #aeb5bf;
	border-radius: 2px;
	box-shadow: none;
	box-sizing: border-box;
	color: #20242b;
	display: block;
	font-size: 16px;
	height: 46px;
	margin: 6px 0 0;
	padding: 8px 11px;
	width: 100%;
}

.mpsr-field input[aria-invalid="true"] {
	border-color: #b42318;
}

.mpsr-field__error,
.mpsr-fit-error {
	color: #b42318;
	display: block;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	margin-top: 5px;
}

.mpsr-fit {
	border: 0;
	margin: 23px 0 0;
	padding: 0;
}

.mpsr-fit legend {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 10px;
}

.mpsr-fit label {
	align-items: center;
	background: #fff;
	border: 1px solid #aeb5bf;
	border-radius: 3px;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	gap: 7px;
	margin: 0 24px 8px 0;
	min-height: 44px;
	padding: 8px 12px;
}

.mpsr-fit input {
	appearance: auto !important;
	clip: auto !important;
	display: inline-block !important;
	height: 20px !important;
	margin: 0 !important;
	opacity: 1 !important;
	position: static !important;
	visibility: visible !important;
	width: 20px !important;
}

.mpsr-fit label:has(input:checked) {
	background: #f2f6fb;
	border-color: #102f5d;
	box-shadow: 0 0 0 1px #102f5d;
}

.mpsr-calculate,
.mpsr-select-size {
	appearance: none;
	background: #102f5d;
	border: 2px solid #102f5d;
	border-radius: 2px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	margin-top: 18px;
	min-height: 46px;
	padding: 10px 18px;
}

.mpsr-dialog .mpsr-calculate:hover,
.mpsr-dialog .mpsr-calculate:focus-visible,
.mpsr-dialog .mpsr-select-size:hover,
.mpsr-dialog .mpsr-select-size:focus-visible {
	background: #061c3c !important;
	border-color: #061c3c !important;
	color: #fff !important;
}

.mpsr-select-size:disabled {
	background: #596273;
	border-color: #596273;
	cursor: default;
}

.mpsr-result {
	background: #f2f6fb;
	border-left: 4px solid #102f5d;
	margin-top: 22px;
	padding: 16px 18px;
}

.mpsr-result--unavailable {
	background: #fff6ed;
	border-left-color: #b54708;
}

.mpsr-result__message {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
}

.mpsr-result .mpsr-select-size {
	margin-top: 12px;
}

@media (max-width: 600px) {
	.mpsr-trigger-wrap {
		margin-left: 8px;
	}

	.mpsr-dialog {
		max-height: calc(100vh - 16px);
		max-width: calc(100vw - 16px);
	}

	.mpsr-dialog__inner {
		padding: 28px 20px 24px;
	}

	.mpsr-dialog__close {
		right: 10px;
		top: 10px;
	}

	.mpsr-fields {
		grid-template-columns: 1fr;
	}

	.mpsr-fit label {
		display: flex;
		margin-right: 0;
	}

	.mpsr-calculate,
	.mpsr-select-size {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mpsr-dialog,
	.mpsr-dialog * {
		scroll-behavior: auto !important;
	}
}
