/**
 * CDesigns Logo & Branding Packages pricing table
 */

.cpct {
	--cpct-bp-tablet: 1024px;
	--cpct-bp-mobile: 767px;
	--cpct-bg: #141619;
	--cpct-bg-gradient: linear-gradient(180deg, #111214 0%, #17191d 100%);
	--cpct-border-h: #4b555c;
	--cpct-border-v: #4b555c;
	--cpct-feature-bg: #17191d;
	--cpct-text: #ffffff;
	--cpct-muted: #d7dce2;
	--cpct-accent: #2fd3ff;
	--cpct-check: #0fb7f5;
	--cpct-plan-bg: linear-gradient(180deg, #154f8f 0%, #0f3e73 100%);
	--cpct-tier-light-bg: #97daf9;
	--cpct-tier-mid-bg: #214f85;
	--cpct-tier-dark-bg: #13335f;
	--cpct-featured-bg: #97daf9;
	--cpct-featured-text: #111214;
	--cpct-plan-title-size: 1.25rem;
	--cpct-featured-shadow: inset 0 0 28px rgba(255, 255, 255, 0.22), 0 0 18px rgba(159, 221, 246, 0.35);
	--cpct-card-shadow: 0 0 48px rgba(23, 139, 232, 0.22), 0 12px 40px rgba(0, 0, 0, 0.45);
	--cpct-radius: 9px;
	--cpct-transition: 0.2s ease;
	box-sizing: border-box;
	color: var(--cpct-text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	overflow: visible;
}

.cpct-desktop,
.cpct-table-wrap {
	overflow: visible;
}

.cpct *,
.cpct *::before,
.cpct *::after {
	box-sizing: border-box;
}

/* Desktop table */
.cpct-desktop {
	display: block;
}

.cpct--branding .cpct-desktop {
	display: flex;
	justify-content: center;
}

.cpct-mobile {
	display: none;
	max-width: 100%;
	overflow-x: clip;
}

.cpct--branding .cpct-table-wrap {
	width: fit-content;
	max-width: 100%;
}

.cpct-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--cpct-bg);
	background-image: var(--cpct-bg-gradient);
	border: 1px solid #4b555c;
	border-radius: var(--cpct-radius);
	overflow: visible;
	box-shadow: var(--cpct-card-shadow);
}

.cpct-table--branding {
	table-layout: fixed;
	width: auto;
	max-width: 100%;
}

.cpct-table--branding thead th,
.cpct-table--branding tbody th,
.cpct-table--branding tbody td {
	padding: 8px 15px !important;
}

.cpct-table--branding thead th.cpct-col--feature,
.cpct-table--branding tbody th.cpct-col--feature {
	padding-left: 24px !important;
}

.cpct-table thead tr:first-child th:first-child {
	border-top-left-radius: var(--cpct-radius);
}

.cpct-table thead tr:first-child th:last-child {
	border-top-right-radius: var(--cpct-radius);
}

.cpct-table tbody tr:last-child th:first-child {
	border-bottom-left-radius: var(--cpct-radius);
}

.cpct-table tbody tr:last-child td:last-child {
	border-bottom-right-radius: var(--cpct-radius);
}

.cpct-table thead th,
.cpct-table tbody th,
.cpct-table tbody td {
	border-right: 1px solid #4b555c;
	border-bottom: 1px solid #4b555c;
}

.cpct-table thead th:last-child,
.cpct-table tbody th:last-child,
.cpct-table tbody td:last-child {
	border-right: none;
}

.cpct-table thead th {
	background-color: #0f3e73;
	background-image: var(--cpct-plan-bg);
	color: #ffffff;
	font-weight: 700;
	text-align: center;
	vertical-align: bottom;
}

.cpct-table thead th.cpct-col--feature {
	text-align: left;
	background-color: var(--cpct-feature-bg);
	background-image: none;
	color: var(--cpct-accent);
}

.cpct-table thead th.cpct-col--plan .cpct-plan-name {
	color: #ffffff;
}

.cpct-table tbody tr:last-child th,
.cpct-table tbody tr:last-child td {
	border-bottom: none;
}

.cpct-table tbody th,
.cpct-table tbody td {
	vertical-align: middle;
	color: var(--cpct-text);
	overflow: visible;
}

.cpct-table tbody th {
	background-color: var(--cpct-feature-bg);
	background-image: none;
	text-align: left;
	font-weight: 600;
	position: relative;
}

.cpct-table tbody th .cpct-feature-label {
	color: #ffffff;
}

.cpct-table tbody td {
	text-align: center;
	background-color: #0f3e73;
	background-image: var(--cpct-plan-bg);
}

.cpct-table tbody td .cpct-value {
	color: #ffffff;
}

/* Tier column colours */
.cpct-table thead th.cpct-col--tier-light,
.cpct-table tbody td.cpct-col--tier-light {
	background-color: var(--cpct-tier-light-bg) !important;
	background-image: none !important;
	color: var(--cpct-featured-text) !important;
}

.cpct-table thead th.cpct-col--tier-light .cpct-plan-name,
.cpct-table tbody td.cpct-col--tier-light,
.cpct-table tbody td.cpct-col--tier-light .cpct-value,
.cpct-table tbody td.cpct-col--tier-light .cpct-dash {
	color: var(--cpct-featured-text) !important;
}

.cpct-table thead th.cpct-col--tier-mid,
.cpct-table tbody td.cpct-col--tier-mid {
	background-color: var(--cpct-tier-mid-bg) !important;
	background-image: none !important;
	color: #ffffff !important;
}

.cpct-table thead th.cpct-col--tier-dark,
.cpct-table tbody td.cpct-col--tier-dark {
	background-color: var(--cpct-tier-dark-bg) !important;
	background-image: none !important;
	color: #ffffff !important;
}

.cpct-col--featured,
.cpct-table thead th.cpct-col--featured,
.cpct-table tbody td.cpct-col--featured {
	background-color: var(--cpct-featured-bg) !important;
	background-image: none !important;
	box-shadow: var(--cpct-featured-shadow);
	position: relative;
	z-index: 1;
	color: var(--cpct-featured-text) !important;
}

.cpct-table thead th.cpct-col--featured .cpct-plan-name,
.cpct-table tbody td.cpct-col--featured,
.cpct-table tbody td.cpct-col--featured .cpct-value,
.cpct-table tbody td.cpct-col--featured .cpct-dash {
	color: var(--cpct-featured-text) !important;
}

.cpct-plan-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.05rem;
	padding: 0.25rem 0;
	min-height: 3.5rem;
}

.cpct-plan-head .cpct-badge {
	margin-bottom: 0.35rem;
	margin-top: 0;
	order: -1;
}

.cpct-col--featured .cpct-badge {
	background: #000000 !important;
	color: #ffffff !important;
}

.cpct-card__header .cpct-badge {
	display: inline-block;
	margin-bottom: 0.5rem;
}

.cpct-table--branding .cpct-plan-name {
	display: block;
	font-size: var(--cpct-plan-title-size);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
	word-wrap: break-word;
	hyphens: auto;
	max-width: 9rem;
	margin: 0 auto;
}

.cpct-star {
	color: var(--cpct-check);
	margin-left: 0.25rem;
	font-size: 0.95em;
}

.cpct-badge {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	background: #000000;
	color: #ffffff;
}

.cpct-feature-label {
	display: inline;
	line-height: 1.45;
}

/* Price row emphasis */
.cpct-table--branding tbody tr.cpct-row--price td {
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.2;
}

.cpct-table--branding tbody tr.cpct-row--price td.cpct-col--tier-light .cpct-value,
.cpct-table--branding tbody tr.cpct-row--price td.cpct-col--featured .cpct-value {
	color: var(--cpct-featured-text);
}

/* Wrapped description cells */
.cpct-table--branding td.cpct-cell--wrap .cpct-value {
	display: block;
	white-space: normal;
	overflow-wrap: anywhere;
	word-wrap: break-word;
	hyphens: auto;
	line-height: 1.45;
	font-weight: 500;
	font-size: 0.875rem;
	max-width: 11rem;
	margin: 0 auto;
	text-align: center;
}

.cpct-tooltip-wrap {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	margin-left: 0.35rem;
	z-index: 1;
}

.cpct-tooltip-wrap:hover,
.cpct-tooltip-wrap:focus-within,
.cpct-tooltip-wrap.is-active {
	z-index: 100;
}

.cpct-tooltip-trigger {
	appearance: none;
	background: rgba(47, 211, 255, 0.14);
	border: 0;
	padding: 0;
	margin: 0;
	line-height: 1;
	cursor: pointer;
	color: var(--cpct-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 50%;
	transition: color var(--cpct-transition), background-color var(--cpct-transition);
}

.cpct-tooltip-trigger:hover,
.cpct-tooltip-trigger:focus-visible {
	color: #17191d;
	background: var(--cpct-accent);
	outline: none;
}

.cpct-tooltip-trigger svg {
	width: 0.875rem;
	height: 0.875rem;
}

.cpct-tooltip {
	/* Dormant tooltips must not expand page scroll width.
	   Visible tooltips are position:fixed via .cpct-tooltip--floating (JS). */
	position: absolute;
	left: 0;
	top: 0;
	bottom: auto;
	transform: none;
	width: 0;
	height: 0;
	min-width: 0;
	max-width: 0;
	padding: 0;
	margin: 0;
	overflow: hidden;
	border: 0;
	border-radius: 8px;
	background: #17191d;
	color: var(--cpct-text);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	box-shadow: none;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	white-space: normal;
	transition: opacity var(--cpct-transition), visibility var(--cpct-transition);
	z-index: 99999;
}

.cpct-tooltip.cpct-tooltip--floating {
	position: fixed;
	left: auto;
	top: auto;
	bottom: auto;
	transform: none;
	width: max-content;
	height: auto;
	min-width: 12rem;
	max-width: min(18rem, calc(100vw - 1.5rem));
	padding: 0.75rem 0.875rem;
	overflow: visible;
	border: 1px solid #4b555c;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(23, 139, 232, 0.12);
}

.cpct-tooltip.cpct-tooltip--below::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: #4b555c;
}

.cpct-tooltip.cpct-tooltip--floating::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #4b555c;
}

.cpct-tooltip.cpct-tooltip--floating.cpct-tooltip--below::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: #4b555c;
}

.cpct-tooltip.cpct-tooltip--floating.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Cell values */
.cpct .cpct-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0fb7f5 !important;
}

.cpct .cpct-check svg {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
	color: inherit;
}

.cpct-table .cpct-col--tier-light .cpct-check,
.cpct-table .cpct-col--featured .cpct-check,
.cpct-card--tier-light .cpct-check,
.cpct-card--featured .cpct-check {
	color: #76d6f9 !important;
}

.cpct-dash {
	color: var(--cpct-muted);
	font-weight: 400;
}

.cpct-col--tier-light .cpct-dash,
.cpct-col--featured .cpct-dash {
	color: rgba(17, 18, 20, 0.45);
}

.cpct-value {
	font-weight: 500;
}

/* Mobile cards */
.cpct-cards {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cpct-card {
	background-color: #0f3e73;
	background-image: var(--cpct-plan-bg);
	border: 1px solid #4b555c;
	border-radius: var(--cpct-radius);
	box-shadow: var(--cpct-card-shadow);
	padding: 1.5rem;
	color: var(--cpct-text);
	max-width: 100%;
	overflow-x: clip;
	overflow-y: visible;
}

.cpct-card--tier-light {
	background-color: var(--cpct-tier-light-bg) !important;
	background-image: none !important;
	color: var(--cpct-featured-text);
}

.cpct-card--tier-mid {
	background-color: var(--cpct-tier-mid-bg) !important;
	background-image: none !important;
}

.cpct-card--tier-dark {
	background-color: var(--cpct-tier-dark-bg) !important;
	background-image: none !important;
}

.cpct-card--featured {
	box-shadow: var(--cpct-featured-shadow), var(--cpct-card-shadow);
	background-color: var(--cpct-featured-bg) !important;
	background-image: none !important;
	color: var(--cpct-featured-text);
}

.cpct-card__header {
	text-align: center;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #4b555c;
}

.cpct-card--featured .cpct-card__header,
.cpct-card--tier-light .cpct-card__header {
	border-bottom-color: rgba(17, 18, 20, 0.15);
}

.cpct-card__title {
	margin: 0 0 0.5rem;
	font-size: var(--cpct-plan-title-size);
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
}

.cpct-card--featured .cpct-card__title,
.cpct-card--tier-light .cpct-card__title {
	color: var(--cpct-featured-text);
}

.cpct-card__price {
	margin: 0.75rem 0 0;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
	color: #ffffff;
}

.cpct-card--featured .cpct-card__price,
.cpct-card--tier-light .cpct-card__price {
	color: var(--cpct-featured-text);
}

.cpct-card__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.cpct-card__feature {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	line-height: 1.45;
}

.cpct-card__feature-value {
	flex: 0 0 auto;
	min-width: 1.25rem;
	text-align: center;
	padding-top: 0.1rem;
}

.cpct-card__feature-label {
	flex: 1;
	min-width: 0;
	font-weight: 500;
	color: #ffffff;
}

/* Text values: label above description (avoids squeezed/wrapped labels) */
.cpct-card__feature--text {
	flex-direction: column;
	align-items: stretch;
	gap: 0.25rem;
}

.cpct-card__feature--text .cpct-card__feature-label {
	order: -1;
	flex: 0 0 auto;
	font-weight: 600;
}

.cpct-card__feature--text .cpct-card__feature-value {
	flex: 0 0 auto;
	min-width: 0;
	width: 100%;
	text-align: left;
	padding-top: 0;
}

.cpct-card__feature--text .cpct-card__feature-value .cpct-value {
	display: block;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	line-height: 1.45;
	font-weight: 500;
}

.cpct-card--featured .cpct-card__feature-label,
.cpct-card--tier-light .cpct-card__feature-label {
	color: var(--cpct-featured-text);
}

.cpct-card__feature-label .cpct-dash {
	color: var(--cpct-muted);
}

.cpct-card--featured .cpct-card__feature-label .cpct-dash,
.cpct-card--tier-light .cpct-card__feature-label .cpct-dash {
	color: rgba(17, 18, 20, 0.45);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
	.cpct--bp-tablet .cpct-desktop {
		display: none;
	}

	.cpct--bp-tablet .cpct-mobile {
		display: block;
	}
}

@media (max-width: 767px) {
	.cpct--bp-mobile .cpct-desktop {
		display: none;
	}

	.cpct--bp-mobile .cpct-mobile {
		display: block;
	}

	.cpct-card {
		padding: 1.25rem;
	}

	.cpct-card__price {
		font-size: 1.5rem;
	}
}

/* Screen reader */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	.cpct-tooltip,
	.cpct-tooltip-trigger {
		transition: none;
	}
}
