/* Loaded directly by block_modal.tmpl, independently of the legacy CSS bundle. */
#js-modal:has(.b-purchase-invite.visible) {
	position: fixed;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px 16px;
	overflow-y: auto;
	background: rgba(30, 48, 72, .28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: none;
}
#js-modal:has(.b-purchase-invite.visible).hidden { display: none; }
#js-modal:has(.b-purchase-invite.visible) .b-form-wrapper {
	position: relative;
	flex: 0 0 auto;
	width: 400px;
	max-width: 100%;
	height: auto !important;
	margin: auto;
	padding: 0;
	border: 1px solid rgba(80, 129, 196, .18);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(30, 48, 72, .28);
}
#js-modal:has(.b-purchase-invite.visible) .b-form_close {
	top: 12px;
	right: 12px;
	width: 20px;
	height: 20px;
	background: none;
}
#js-modal:has(.b-purchase-invite.visible) .b-form_close:before,
#js-modal:has(.b-purchase-invite.visible) .b-form_close:after {
	content: '';
	position: absolute;
	top: 9px;
	left: 5px;
	width: 11px;
	height: 2px;
	background: #a3a3a3;
	transform: rotate(45deg);
}
#js-modal:has(.b-purchase-invite.visible) .b-form_close:after { transform: rotate(-45deg); }
#js-modal .b-purchase-invite {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 28px 28px 24px;
	border-radius: 16px;
	background: #fff;
	color: #1e2430;
	font: 13px/18px 'PT Sans Caption', Verdana, sans-serif;
	text-align: left;
}
#js-modal .b-purchase-invite__logo { display: block; width: 86px; height: auto; margin: 0 auto 18px; }
#js-modal .b-purchase-invite__header { font-size: 23px; font-weight: bold; line-height: 28px; text-align: center; }
#js-modal .b-purchase-invite__lead { margin-top: 6px; color: #c49a2e; font-size: 16px; font-weight: bold; line-height: 22px; text-align: center; }
#js-modal .b-purchase-invite__offer {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	align-items: center;
	margin-top: 20px;
	padding: 14px 16px;
	border: 1px solid #d9e2ef;
	border-radius: 12px;
	background: linear-gradient(135deg, #f4f8fd 0%, #eef4fb 100%);
}
#js-modal .b-purchase-invite__price { color: #5081c4; font-size: 28px; font-weight: bold; line-height: 32px; }
#js-modal .b-purchase-invite__offer ul { display: grid; gap: 2px; margin: 0; padding: 0; font-size: 15px; font-weight: bold; line-height: 20px; list-style: none; }
#js-modal .b-purchase-invite form { margin: 0; }
#js-modal .b-purchase-invite__email { margin-top: 20px; }
#js-modal .b-purchase-invite__email input {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #d9e2ef;
	border-radius: 10px;
	background: #fff;
	color: #1e2430;
	font: 16px 'PT Sans Caption', Verdana, sans-serif;
	outline: none;
	box-shadow: none;
}
#js-modal .b-purchase-invite__email input:focus { border-color: #5081c4; box-shadow: 0 0 0 3px rgba(80, 129, 196, .22); }
#js-modal .b-purchase-invite__hint { margin-top: 8px; color: #5a6578; font-size: 12px; line-height: 16px; }
#js-modal .b-purchase-invite__rules { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 14px; color: #5a6578; cursor: pointer; }
#js-modal .b-purchase-invite__rules input {
	position: static;
	appearance: none;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	background: #f4f4f4;
	cursor: pointer;
}
#js-modal .b-purchase-invite__rules input:checked { border-color: #5081c4; background: #5081c4; }
#js-modal .b-purchase-invite__rules input:checked:after { content: ''; display: block; width: 4px; height: 8px; margin: 2px 0 0 5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#js-modal .b-purchase-invite a { color: #5081c4; text-decoration: none; }
#js-modal .b-purchase-invite a:hover { text-decoration: underline; }
#js-modal .b-purchase-invite__payment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
#js-modal .b-purchase-invite__payment button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 10px;
	border: 1px solid #d9e2ef;
	border-radius: 10px;
	background: #fff;
	color: #5a6578;
	font: bold 13px/16px 'PT Sans Caption', Verdana, sans-serif;
	text-align: center;
	cursor: pointer;
}
#js-modal .b-purchase-invite__payment button:hover { border-color: #5081c4; background: #e8f0fa; color: #1e2430; box-shadow: 0 0 0 1px rgba(80, 129, 196, .35); }
#js-modal .b-purchase-invite__payment button:disabled { opacity: .5; cursor: wait; }
#js-modal .b-purchase-invite__payment img { display: block; width: 28px; height: 28px; object-fit: contain; }
@media only screen and (max-width: 640px) {
	#js-modal:has(.b-purchase-invite.visible) { padding: 16px; }
	#js-modal:has(.b-purchase-invite.visible) .b-form-wrapper { width: 100%; }
	#js-modal .b-purchase-invite { padding: 24px 18px 20px; }
	#js-modal .b-purchase-invite__payment button { flex-direction: column; gap: 4px; font-size: 12px; }
}
