/* Partner cabinet: first-visit offer modal */
.unclosable_overlay.cr-cabinet-offer {
	position: fixed;
	inset: 0;
	background: rgba(0, 11, 47, 0.45);
	z-index: 10050;
	overflow-y: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}

.cr-cabinet-offer .cr-cabinet-offer__card,
.unclosable_overlay.cr-cabinet-offer .block_item.popup {
	position: relative;
	top: auto;
	left: auto;
	transform: none;
	-webkit-transform: none;
	max-width: 440px;
	width: 100%;
	margin: auto;
	padding: 32px 28px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(0, 11, 47, 0.18);
	max-height: calc(100vh - 48px);
	overflow: auto;
	box-sizing: border-box;
	text-align: center;
}

.cr-cabinet-offer .cr-cabinet-offer__title,
.unclosable_overlay.cr-cabinet-offer .block_item.popup .title {
	padding: 0;
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.25;
	color: #000b2f;
	text-align: center;
}

.cr-cabinet-offer .cr-cabinet-offer__form,
.unclosable_overlay.cr-cabinet-offer .block_item.popup .field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
}

.cr-cabinet-offer .cr-cabinet-offer__doc,
.unclosable_overlay.cr-cabinet-offer .block_item.popup .field .main-link {
	display: inline-block;
	margin: 0 auto;
	font-size: 16px !important;
	font-weight: 600;
	color: #4a72ff !important;
	text-align: center;
}

.cr-cabinet-offer .cr-cabinet-offer__text,
.unclosable_overlay.cr-cabinet-offer .block_item.popup .description {
	font-size: 15px;
	line-height: 1.5;
	color: #000b2f;
	max-height: none;
	overflow: visible;
	padding: 0;
	text-align: center;
}

.cr-cabinet-offer .cr-cabinet-offer__agree {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.4;
	color: #000b2f;
	text-align: left;
	white-space: normal;
	overflow: visible;
	cursor: pointer;
}

.cr-cabinet-offer .cr-cabinet-offer__agree input {
	appearance: auto;
	-webkit-appearance: checkbox;
	position: static;
	opacity: 1;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex: 0 0 18px;
	accent-color: #4a72ff;
}

.cr-cabinet-offer .cr-cabinet-offer__agree span {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

.cr-cabinet-offer .cr-cabinet-offer__submit,
.unclosable_overlay.cr-cabinet-offer .block_item.popup .button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 100%;
	min-height: 48px;
	margin: 4px 0 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: #4a72ff !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	white-space: normal;
	cursor: pointer;
	opacity: 1;
}

.cr-cabinet-offer .cr-cabinet-offer__submit[disabled],
.unclosable_overlay.cr-cabinet-offer .block_item.popup .button[disabled] {
	background: #9eb4ff !important;
	color: #fff !important;
	opacity: 1;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 480px) {
	.unclosable_overlay.cr-cabinet-offer {
		padding: 12px;
		align-items: center;
	}
	.cr-cabinet-offer .cr-cabinet-offer__card,
	.unclosable_overlay.cr-cabinet-offer .block_item.popup {
		max-height: calc(100vh - 24px);
		padding: 24px 20px;
	}
}

/* Delete-account confirm: Messia floats «Нет» and gives .btn_red a min-width */
.popup-delete-my-account {
	border-radius: 16px;
	box-sizing: border-box;
	width: 100%;
	max-width: 400px;
}

.popup-delete-my-account__buttons {
	display: flex;
	gap: 12px;
	padding-top: 24px;
}

.popup-delete-my-account__buttons .accept-delete,
.popup-delete-my-account__buttons .reject-delete {
	float: none;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	margin: 0;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 14px;
	font-weight: 600;
	cursor: pointer;
}

.popup-delete-my-account__buttons .reject-delete {
	background: #fff;
	color: var(--accent, #4a72ff);
	border: 1px solid var(--accent, #4a72ff);
}

.popup-delete-my-account__buttons .reject-delete:hover {
	background: #f4f7ff;
	color: var(--accent, #4a72ff);
}
