/* Reseller pricing calculator */
.rpc, .rpc-teaser {
	--rpc-red: #f24b59;
	--rpc-red-soft: #fde8ea;
	--rpc-ink: #222;
	--rpc-muted: #666;
	--rpc-line: #e3e3e3;
	--rpc-bg: #f4f4f4;
	--rpc-dark: #241f1c;
	--rpc-dark-2: #1b1714;
	--rpc-dark-line: #3a3431;
	--rpc-green: #6ee7a0;
}
.rpc *, .rpc *::before, .rpc *::after { box-sizing: border-box; }
/* Neutralise the site's global h2 / h3 / p / sup spacing inside the calculator */
.rpc :where(h2, h3, p) { padding: 0; letter-spacing: normal; }
.rpc :where(p) { font-weight: 400; }

.rpc-teaser {
	margin: 0;
	padding: 18px 16px;
	border-top: 1px solid var(--rpc-line);
	background: #fff;
	color: var(--rpc-muted);
	font-size: 15px;
	text-align: center;
}
.rpc-teaser a { color: var(--rpc-red); font-weight: 700; text-decoration: none; }
.rpc-teaser a:hover { text-decoration: underline; }

.rpc {
	padding: 64px 16px 56px;
	background: var(--rpc-bg);
	color: var(--rpc-ink);
	scroll-margin-top: 80px;
}
.rpc-wrap { max-width: 1200px; margin: 0 auto; }

/* Heading */
.rpc-head { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.rpc-eyebrow {
	margin: 0 0 12px;
	color: var(--rpc-red);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.rpc-head h2 {
	margin: 0 0 16px;
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 400;
	line-height: 1.2;
}
.rpc-head h2 strong { font-weight: 700; }
.rpc-lead { margin: 0; color: var(--rpc-muted); font-size: 18px; line-height: 1.5; }

/* Main box */
.rpc-box {
	display: grid;
	grid-template-columns: 1fr .8fr;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

/* Left: form */
.rpc-form { padding: 34px 36px 38px; }
.rpc-step { position: relative; margin: 0 0 34px; padding: 0; border: 0; min-width: 0; }
.rpc-step:last-child { margin-bottom: 0; }
.rpc-step legend {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 0;
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 700;
}
.rpc-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--rpc-red);
	color: #fff;
	font-size: 13px;
}
.rpc-step legend:has(.rpc-hint) { flex-wrap: wrap; }
.rpc-hint { margin-left: auto; color: var(--rpc-muted); font-size: 13px; font-weight: 400; }

/* Plan cards */
.rpc-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rpc-plan { position: relative; display: block; cursor: pointer; margin: 0; }
.rpc-plan input { position: absolute; opacity: 0; pointer-events: none; }
.rpc-plan-card {
	display: block;
	height: 100%;
	padding: 12px 12px 11px;
	border: 1px solid var(--rpc-line);
	border-radius: 3px;
	background: #fff;
	font-size: 14px;
	line-height: 1.3;
	transition: border-color .15s, background-color .15s;
}
.rpc-plan:hover .rpc-plan-card { border-color: #bbb; }
.rpc-plan input:checked + .rpc-plan-card { border: 2px solid var(--rpc-red); padding: 11px 11px 10px; background: var(--rpc-red-soft); }
.rpc-plan input:focus-visible + .rpc-plan-card { outline: 2px solid var(--rpc-red); outline-offset: 2px; }
.rpc-plan-name { display: block; font-weight: 700; color: var(--rpc-ink); }
.rpc-plan-price { display: block; margin: 2px 0; font-size: 22px; font-weight: 700; }
.rpc-plan-price small { font-size: 13px; font-weight: 400; color: var(--rpc-muted); }
.rpc-plan-acc { display: block; color: var(--rpc-muted); font-size: 12px; }

/* Slider + number field */
.rpc-range { display: flex; align-items: flex-start; gap: 16px; }
.rpc-slider { flex: 1; padding-top: 12px; }
.rpc-scale { display: flex; justify-content: space-between; margin-top: 12px; color: #888; font-size: 12px; }

.rpc input[type=range] {
	--p: 50%;
	width: 100%;
	height: 20px;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.rpc input[type=range]:focus { outline: none; }
.rpc input[type=range]::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--rpc-red) var(--p), var(--rpc-line) var(--p));
}
.rpc input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--rpc-line); }
.rpc input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--rpc-red); }
.rpc input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -9px;
	border: 3px solid var(--rpc-red);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.rpc input[type=range]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 3px solid var(--rpc-red);
	border-radius: 50%;
	background: #fff;
}
.rpc input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(242, 75, 89, .25); }

.rpc-field {
	display: flex;
	align-items: baseline;
	flex: none;
	width: 132px;
	margin: 0;
	padding: 10px 10px;
	border: 1px solid var(--rpc-line);
	border-radius: 3px;
	background: #fff;
	color: var(--rpc-muted);
	font-size: 14px;
	cursor: text;
}
.rpc-field:focus-within { border-color: var(--rpc-red); }
.rpc-field input {
	width: 100%;
	min-width: 0;
	padding: 0 4px 0 0;
	border: 0;
	background: transparent;
	color: var(--rpc-ink);
	font: inherit;
	font-size: 19px;
	font-weight: 700;
	text-align: right;
	-moz-appearance: textfield;
}
.rpc-field input:focus { outline: none; }
.rpc-field input::-webkit-outer-spin-button,
.rpc-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rpc-cur { margin-right: 4px; }
.rpc-unit { white-space: nowrap; }

/* Right: results */
.rpc-result { padding: 34px 36px 36px; background: var(--rpc-dark); color: #ddd; }
.rpc-label, .rpc-stats dt {
	margin: 0;
	color: #b9b2ad;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.rpc-big { margin: 6px 0 10px; color: #fff; font-size: 64px; font-weight: 700; line-height: 1; }
.rpc-big sup { font-size: 26px; vertical-align: 26px; margin-right: 4px; }
.rpc-big small { color: #ddd; font-size: 18px; font-weight: 400; }
.rpc-text { margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.rpc-text b { color: #fff; }

.rpc-bar { position: relative; height: 12px; margin-top: 38px; border-radius: 6px; background: var(--rpc-dark-line); }
.rpc-fill {
	display: block;
	height: 100%;
	border-radius: 6px;
	background: var(--rpc-red);
	transition: width .2s;
}
.rpc-marker {
	position: absolute;
	top: -6px;
	bottom: -6px;
	z-index: 1;
	width: 2px;
	background: #fff;
	transition: left .2s;
}
.rpc-marker em {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 11px;
	font-style: normal;
	white-space: nowrap;
}
.rpc-marker.is-off { display: none; }
.rpc-result .rpc-scale { color: #b9b2ad; margin-top: 8px; }

.rpc-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	margin: 22px 0;
	background: var(--rpc-dark-line);
}
.rpc-stats div { padding: 14px 16px; background: var(--rpc-dark-2); }
.rpc-stats dt { font-size: 12px; }
.rpc-stats dd { margin: 2px 0 0; color: #fff; font-size: 25px; font-weight: 700; }
.rpc-stats div:nth-child(n+3) dd { color: var(--rpc-green); }
.rpc-stats dd.is-loss { color: var(--rpc-red) !important; }

.rpc-order {
	display: block;
	padding: 15px 16px;
	border-radius: 2px;
	background: var(--rpc-red);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .15s;
}
.rpc-order::after { content: "\203A"; margin-left: 10px; }
.rpc-order:hover, .rpc-order:focus { background: #d93a48; color: #fff; text-decoration: none; }
.rpc-note { margin: 12px 0 0; color: #9c948f; font-size: 12px; line-height: 1.5; }

/* Modal button */
.rpc-more { margin: 32px 0 0; text-align: center; }
.rpc-more-btn {
	padding: 13px 26px;
	border: 2px solid var(--rpc-red);
	border-radius: 2px;
	background: transparent;
	color: var(--rpc-red);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.rpc-more-btn:hover, .rpc-more-btn:focus-visible { background: var(--rpc-red); color: #fff; outline: none; }

/* Modal */
.rpc-modal {
	width: min(1100px, calc(100% - 32px));
	max-height: calc(100% - 48px);
	padding: 28px 28px 22px;
	border: 0;
	border-radius: 6px;
	background: var(--rpc-bg);
	color: var(--rpc-ink);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	overflow: auto;
	overscroll-behavior: contain; /* scrolling inside the modal doesn't scroll the page */
}
.rpc-modal::backdrop { background: rgba(20, 16, 14, .6); }
.rpc-modal[open] { animation: rpc-pop .2s ease-out; }
@keyframes rpc-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.rpc-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #555;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.rpc-modal-close:hover, .rpc-modal-close:focus-visible { background: #e6e6e6; color: var(--rpc-ink); outline: none; }

/* Table */
.rpc-table-title { margin: 0 40px 18px; font-size: 21px; font-weight: 400; text-align: center; }
.rpc-table-wrap { overflow-x: auto; border-radius: 4px; background: #fff; }
.rpc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.rpc-table th, .rpc-table td { padding: 13px 18px; border-bottom: 1px solid #ececec; text-align: left; }
.rpc-table th {
	background: #fafafa;
	color: #555;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.rpc-table tbody tr:last-child td { border-bottom: 0; }
.rpc-table td:first-child { font-weight: 700; }
.rpc-table td:nth-child(4) { color: var(--rpc-red); font-weight: 700; }
.rpc-table tr.is-active td { background: var(--rpc-red-soft); }
.rpc-foot { margin: 10px 0 0; color: var(--rpc-muted); font-size: 13px; text-align: center; }

/* Responsive */
@media (max-width: 991px) {
	.rpc-box { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.rpc { padding: 44px 16px; }
	.rpc-lead { font-size: 16px; }
	.rpc-form, .rpc-result { padding: 26px 18px; }
	.rpc-plans { grid-template-columns: repeat(2, 1fr); }
	.rpc-hint { width: 100%; margin: -6px 0 0 38px; }
	.rpc-field { width: 120px; }
	.rpc-big { font-size: 52px; }
	.rpc-stats dd { font-size: 21px; }
	.rpc-order { font-size: 15px; }
	.rpc-modal { padding: 22px 16px 16px; }
	.rpc-table-title { font-size: 18px; }
}
