/* MHN Pricing Calculator — layout on top of the explab theme's price blocks. */

.mhn-pc { --mhn-accent: var(--e-global-color-accent, #6c5ce7); max-width: 1180px; margin: 0 auto; }

/* Tier matrix */
.mhn-pc-tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 32px 0 18px;
	align-items: stretch;          /* equal-height columns */
}
.mhn-pc-tier { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; outline: none; display: flex; }
/* inner fills the card height so content distributes + Select pins to bottom */
.mhn-pc-tier .price-block_one-inner { display: flex; flex-direction: column; flex: 1 1 auto; height: 100%; }
.mhn-pc-tier:focus-visible { box-shadow: 0 0 0 3px var(--mhn-accent); }
.mhn-pc-tier:hover { transform: translateY(-4px); }
.mhn-pc-tier.is-selected { box-shadow: 0 18px 40px rgba(0,0,0,.14); } /* no accent ring */
.mhn-pc-tier.is-featured .price-block_one-subtitle::after {
	content: "★"; margin-left: 6px; color: var(--mhn-accent);
}
.mhn-pc-per { font-size: .42em; font-weight: 500; opacity: .7; display: inline-block; margin-left: 2px; }
/* Per-tier helpdesk abilities (secondary list on the card) */
.mhn-pc-helpdesk {
	margin: 14px 0 4px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,.12); text-align: left;
}
.mhn-pc-helpdesk-h {
	display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	opacity: .6; margin-bottom: 6px;
}
.mhn-pc-helpdesk-list { list-style: none; margin: 0; padding: 0; }
.mhn-pc-helpdesk-list li {
	position: relative; padding-left: 18px; margin: 4px 0; font-size: 13px; line-height: 1.4; opacity: .85;
}
.mhn-pc-helpdesk-list li::before {
	content: "✓"; position: absolute; left: 0; top: 0; color: var(--mhn-accent); font-weight: 700;
}

/* The theme fills the card via .price-block_one-inner::before (absolute). Our
   added elements must sit above it or they get covered/hidden. */
.mhn-pc-helpdesk,
.mhn-pc-choose,
.mhn-pc-seatprice,
.mhn-pc-per { position: relative; z-index: 1; }

/* Filled tier state (theme fills the card on hover / .active) — keep every
   MHN-added element legible in white, and invert the Select pill. */
.mhn-pc-tier .price-block_one-inner:hover .mhn-pc-per,
.mhn-pc-tier .price-block_one-inner:hover .mhn-pc-seatprice,
.mhn-pc-tier .price-block_one-inner:hover .mhn-pc-helpdesk-h,
.mhn-pc-tier .price-block_one-inner:hover .mhn-pc-helpdesk-list li,
.mhn-pc-tier.active .mhn-pc-per,
.mhn-pc-tier.active .mhn-pc-seatprice,
.mhn-pc-tier.active .mhn-pc-helpdesk-h,
.mhn-pc-tier.active .mhn-pc-helpdesk-list li {
	color: #fff !important;
	opacity: 1 !important;
}
.mhn-pc-tier .price-block_one-inner:hover .mhn-pc-helpdesk-list li::before,
.mhn-pc-tier.active .mhn-pc-helpdesk-list li::before {
	color: #fff !important;
}
.mhn-pc-tier .price-block_one-inner:hover .mhn-pc-helpdesk,
.mhn-pc-tier.active .mhn-pc-helpdesk,
.mhn-pc-tier.is-selected .mhn-pc-helpdesk {
	border-top-color: rgba(255,255,255,.6) !important;
}
.mhn-pc-tier .price-block_one-inner:hover .mhn-pc-choose,
.mhn-pc-tier.active .mhn-pc-choose {
	background: #fff !important;
	color: var(--mhn-accent) !important;
	border-color: #fff !important;
}

.mhn-pc-choose {
	display: block; margin-top: auto; text-align: center;  /* pin to bottom, full width = aligned across columns */
	padding: 10px 22px; border-radius: 40px;
	border: 1px solid currentColor; font-weight: 600; font-size: 14px; letter-spacing: .02em;
	transition: background .18s ease, color .18s ease;
}

/* Volume band legend */
.mhn-pc-bands {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
	justify-content: center; margin: 6px 0 30px; font-size: 14px;
}
.mhn-pc-bands-label { font-weight: 700; opacity: .8; }
.mhn-pc-band {
	padding: 5px 12px; border-radius: 40px; background: rgba(108,92,231,.08);
	border: 1px solid rgba(108,92,231,.18);
}
.mhn-pc-band em { font-style: normal; font-weight: 700; color: var(--mhn-accent); margin-left: 4px; }

/* Inputs + summary */
.mhn-pc-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
}
.mhn-pc-inputs, .mhn-pc-summary {
	background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 18px;
	padding: 28px 30px; box-shadow: 0 12px 34px rgba(0,0,0,.06);
}
.mhn-pc-h3 { margin: 0 0 18px; font-size: 20px; display: flex; align-items: center; gap: 10px; }

.mhn-pc-field { display: block; margin-bottom: 18px; }
.mhn-pc-field > span { display: block; font-weight: 600; margin-bottom: 7px; }
.mhn-pc-field small { font-weight: 400; opacity: .6; }
.mhn-pc-field input {
	width: 100%; padding: 12px 14px; font-size: 17px; border-radius: 10px;
	border: 1.5px solid rgba(0,0,0,.14); background: #fafafe; transition: border-color .15s ease;
}
.mhn-pc-field input:focus { border-color: var(--mhn-accent); outline: none; }
.mhn-pc-note { font-size: 13px; opacity: .7; margin: 4px 0 0; }

/* Add-on toggle (Remote Helpdesk Support) */
.mhn-pc-addon {
	display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px;
	border: 1.5px solid rgba(0,0,0,.12); border-radius: 12px; cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.mhn-pc-addon:hover { border-color: var(--mhn-accent); background: rgba(108,92,231,.04); }
.mhn-pc-addon input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--mhn-accent); flex: none; }
.mhn-pc-addon-text { display: flex; flex-direction: column; gap: 2px; }
.mhn-pc-addon-text small { opacity: .7; }

/* Summary panel */
.mhn-pc-tierbadge {
	font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 40px;
	background: var(--mhn-accent); color: #fff; letter-spacing: .03em;
}
/* Billing-term toggle */
.mhn-pc-term {
	display: flex; gap: 4px; padding: 4px; margin: 0 0 18px;
	background: rgba(0,0,0,.05); border-radius: 12px;
}
.mhn-pc-term-opt {
	flex: 1; padding: 10px 12px; border: none; cursor: pointer; border-radius: 9px;
	background: transparent; font-size: 15px; font-weight: 600; color: inherit;
	transition: background .15s ease, box-shadow .15s ease;
}
.mhn-pc-term-opt.is-active { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.mhn-pc-term-opt em {
	font-style: normal; font-weight: 700; color: var(--mhn-accent); margin-left: 4px; font-size: 13px;
}
.mhn-pc-termnote { font-size: 13px; color: var(--mhn-accent); margin: -8px 0 14px; min-height: 1em; font-weight: 600; }

.mhn-pc-lines { list-style: none; margin: 0 0 18px; padding: 0; }
.mhn-pc-lines li {
	display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
	border-bottom: 1px dashed rgba(0,0,0,.1); font-size: 15px;
}
.mhn-pc-lines .lbl { opacity: .85; }
.mhn-pc-lines .amt { font-weight: 700; white-space: nowrap; }

.mhn-pc-total {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 16px 0 6px; font-size: 18px; font-weight: 700;
}
.mhn-pc-total-amt { font-size: 34px; line-height: 1; color: var(--mhn-accent); }
.mhn-pc-total-amt small { font-size: 15px; opacity: .6; margin-left: 2px; }
.mhn-pc-onboard {
	display: flex; justify-content: space-between; font-size: 14px; opacity: .8;
	padding-bottom: 18px; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 18px;
}

.mhn-pc-cart { margin: 0; }
.mhn-pc-btn {
	width: 100%; padding: 16px 20px; border: none; border-radius: 12px; cursor: pointer;
	background: var(--mhn-accent); color: #fff; font-size: 17px; font-weight: 700;
	letter-spacing: .02em; transition: filter .15s ease, transform .12s ease;
}
.mhn-pc-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mhn-pc-fineprint { font-size: 12px; opacity: .55; margin: 14px 0 0; text-align: center; }

@media (max-width: 900px) {
	.mhn-pc-tiers { grid-template-columns: 1fr; }
	.mhn-pc-grid { grid-template-columns: 1fr; }
}
