.rpc-modal-root[hidden] {
	display: none !important;
}

.rpc-modal-root {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
}

@media (min-width: 700px) {
	.rpc-modal-root {
		align-items: center;
	}
}

.rpc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(29, 29, 31, 0.42);
}

.rpc-modal {
	position: relative;
	width: min(560px, 100%);
	max-height: min(92vh, 760px);
	overflow: auto;
	background: #fff;
	color: #1d1d1f;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(29, 29, 31, 0.28);
	font-family: inherit;
}

.rpc-modal-hd {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px 12px;
	border-bottom: 1px solid #e8e8ed;
}

.rpc-modal-hd h2 {
	margin: 0;
	flex: 1;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 650;
}

.rpc-close {
	width: 36px;
	height: 36px;
	border: none !important;
	border-radius: 980px !important;
	background: #f5f5f7 !important;
	color: #1d1d1f !important;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.rpc-body {
	padding: 16px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rpc-lede {
	margin: 0;
	color: #6e6e73;
	font-size: 14px;
	line-height: 1.45;
}

.rpc-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 560px) {
	.rpc-cols {
		grid-template-columns: 1fr 1fr;
	}
}

.rpc-col {
	border: 1px solid #e8e8ed;
	border-radius: 12px;
	padding: 12px 14px;
}

.rpc-col h3 {
	margin: 0 0 8px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6e6e73;
	font-weight: 650;
}

.rpc-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 4px 0;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.rpc-row span:first-child {
	color: #6e6e73;
}

.rpc-tot {
	border-top: 1px solid #e8e8ed;
	margin-top: 6px;
	padding-top: 8px;
	font-weight: 700;
}

.rpc-offer {
	background: #f5f5f7;
	border-radius: 12px;
	padding: 14px;
}

.rpc-offer strong {
	display: block;
	font-size: 22px;
	letter-spacing: -0.02em;
}

.rpc-offer p {
	margin: 6px 0 0;
	color: #6e6e73;
	font-size: 13px;
}

.rpc-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rpc-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #6e6e73;
}

.rpc-form input {
	border: 1px solid #d2d2d7 !important;
	border-radius: 10px !important;
	padding: 10px 12px !important;
	font-size: 16px !important;
	background: #fff !important;
	color: #1d1d1f !important;
}

.rpc-submit {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 14px 24px !important;
	border: none !important;
	border-radius: 980px !important;
	background: #0071e3 !important;
	color: #fff !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	cursor: pointer;
}

.rpc-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.rpc-err {
	color: #b3261e;
	font-size: 13px;
	margin: 0;
}

.rpc-wait {
	margin: 12px 0 4px;
	color: #6e6e73;
}

.rpc-skip {
	font-size: 12px;
	color: #6e6e73;
	margin: 0;
}
