/**
 * PopItOutMedia Pricing — frontend styles.
 * Every rule is scoped under .pim-pricing so nothing leaks into the theme,
 * Astra, Elementor, or other widgets. Colors/sizes are CSS variables that
 * Elementor Style controls override per widget instance.
 *
 * Default palette matched to popitoutmedia.com homepage Elementor styles
 * (inspected 2026-10-13): purple #7900C2, yellow #ECE700, black/white,
 * Inter typeface (inherited — this file loads no webfont itself).
 */

.pim-pricing {

	background: var(--pim-bg, #ffffff);
	color: var(--pim-feature-text, #333333);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	padding: 80px 20px;
	box-sizing: border-box;
}

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

.pim-pricing [hidden] { display: none !important; }

.pim-pricing__inner {
	max-width: var(--pim-max-width, 1180px);
	margin-inline: auto;
}

/* ---------- Introduction ---------- */
.pim-pricing__Header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 34px;
}

.pim-pricing__title {
	color: var(--pim-heading, #000000);
	font-size: 44px;
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
}

.pim-pricing__subtitle,
.pim-pricing__subtitle p {
	color: var(--pim-muted, #4b4b4b);
	font-size: 18px;
	line-height: 1.65;
	margin: 0;
}

/* ---------- Switchers (tabs) ---------- */
.pim-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	background: var(--pim-switch-bg, #f2f2f2);
	border-radius: 999px;
	padding: 6px;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 32px;
}

.pim-switch button {
	appearance: none;
	border: 2px solid transparent;
	background: transparent;
	color: var(--pim-switch-text, #000000);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	padding: 12px 26px;
	min-height: 48px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.pim-switch button:hover { border-color: var(--pim-switch-active-bg, #7900c2); }

.pim-switch button.is-active,
.pim-switch button[aria-selected="true"] {
	background: var(--pim-switch-active-bg, #7900c2);
	color: var(--pim-switch-active-text, #ffffff);
}

.pim-switch button:focus-visible,
.pim-pricing .pim-btn:focus-visible,
.pim-pricing .pim-table-wrap:focus-visible {
	outline: 3px solid var(--pim-switch-active-bg, #7900c2);
	outline-offset: 3px;
}

.pim-switch--type { margin-bottom: 26px; }
.pim-switch--type button { font-size: 15px; padding: 10px 22px; min-height: 44px; }

/* ---------- Motion graphics notice ---------- */
.pim-notice {
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--pim-heading, #000000);
	background: var(--pim-discount-bg, #f3e8ff);
	border-radius: 12px;
	padding: 14px 20px;
	max-width: 820px;
	margin: 0 auto 26px;
}

/* ---------- Package cards ---------- */
.pim-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--pim-gap, 24px);
	align-items: stretch;
}

.pim-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--pim-card-bg, #ffffff);
	border: 1.5px solid var(--pim-card-border, #e5e5e5);
	border-radius: var(--pim-card-radius, 18px);
	padding: 38px 30px 32px;
	min-width: 0;
}

.pim-card--featured {
	background: var(--pim-featured-bg, #ffffff);
	border: 2.5px solid var(--pim-featured-border, #7900c2);
}

.pim-card__badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--pim-badge-bg, #ece700);
	color: var(--pim-badge-text, #000000);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	padding: 7px 16px;
	border-radius: 999px;
}

.pim-card__name {
	color: var(--pim-heading, #000000);
	font-size: 23px;
	font-weight: 800;
	line-height: 1.25;
	margin: 6px 0 8px;
	text-align: center;
}

.pim-card__bestfor {
	color: var(--pim-muted, #4b4b4b);
	font-size: 15px;
	line-height: 1.55;
	text-align: center;
	margin: 0 0 20px;
}

.pim-card__price {
	text-align: center;
	margin: 0;
	line-height: 1.1;
}

.pim-card__amount {
	color: var(--pim-price, #000000);
	font-size: 46px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.pim-card__frequency {
	color: var(--pim-muted, #4b4b4b);
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

.pim-card__discount {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 14px auto 4px;
	background: var(--pim-discount-bg, #f3e8ff);
	color: var(--pim-discount-text, #5b00b6);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	padding: 7px 14px;
	border-radius: 999px;
}

/* ---------- Feature list ---------- */
.pim-features {
	list-style: none;
	margin: 24px 0 28px;
	padding: 22px 0 0;
	border-top: 1px solid var(--pim-card-border, #e5e5e5);
	display: flex;
	flex-direction: column;
	gap: 13px;
	flex: 1 1 auto;
}

.pim-feature {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--pim-feature-text, #333333);
	margin: 0;
	padding: 0;
}

.pim-feature__icon {
	flex: 0 0 21px;
	width: 21px;
	height: 21px;
	margin-top: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pim-check, #7900c2);
	font-weight: 800;
	font-size: 15px;
	line-height: 1;
}

.pim-feature__icon svg { width: 18px; height: 18px; display: block; }

.pim-feature--excluded { color: var(--pim-muted, #4b4b4b); }
.pim-feature--excluded .pim-feature__icon { color: var(--pim-cross, #b0b0b0); }
.pim-feature--info .pim-feature__icon { color: var(--pim-muted, #4b4b4b); }

.pim-feature__detail { color: var(--pim-muted, #4b4b4b); font-size: 13.5px; }
.pim-feature strong { font-weight: 700; color: var(--pim-heading, #000000); }

/* ---------- Buttons ---------- */
.pim-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	padding: 14px 28px;
	min-height: 52px;
	border-radius: var(--pim-btn-radius, 50px);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .15s ease;
	max-width: 100%;
}

.pim-btn--primary {
	background: var(--pim-btn-bg, #7900c2);
	color: var(--pim-btn-text, #ffffff);
	width: 100%;
	margin-top: auto;
}

.pim-btn--primary:hover,
.pim-btn--primary:active {
	background: var(--pim-btn-hover-bg, #000000);
	color: var(--pim-btn-hover-text, #ffffff);
	text-decoration: none;
}

.pim-btn--custom {
	background: var(--pim-custom-btn-bg, #ece700);
	color: var(--pim-custom-btn-text, #000000);
	white-space: normal;
}

.pim-btn--custom:hover,
.pim-btn--custom:active {
	background: var(--pim-btn-hover-bg, #000000);
	color: var(--pim-btn-hover-text, #ffffff);
	text-decoration: none;
}

.pim-btn--disabled {
	background: #e5e7eb;
	color: #6b7280;
	cursor: not-allowed;
	width: 100%;
}

.pim-custom .pim-btn--disabled { width: auto; }

.pim-editor-warning {
	background: #fffbeb;
	border: 1.5px dashed #d97706;
	color: #92400e;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.5;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 12px 0 0;
	width: 100%;
}

/* ---------- Per-video table ---------- */
.pim-table__category {
	color: var(--pim-category, #7900c2);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
	margin: 34px 0 14px;
}

.pim-table__category:first-of-type { margin-top: 4px; }

.pim-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--pim-table-border, #e5e5e5);
	border-radius: 14px;
	background: #fff;
	margin-bottom: 8px;
}

.pim-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 15.5px;
	line-height: 1.5;
}

.pim-table thead th {
	background: var(--pim-table-Header-bg, #000000);
	color: var(--pim-table-Header-text, #ffffff);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: left;
	padding: 15px 20px;
	border: none;
}

.pim-table tbody th,
.pim-table tbody td {
	padding: 14px 20px;
	border-top: 1px solid var(--pim-table-border, #e5e5e5);
	text-align: left;
	vertical-align: top;
	font-weight: 400;
	color: var(--pim-feature-text, #333333);
}

.pim-table tbody tr:nth-child(even) { background: #fafafa; }

.pim-table__service { font-weight: 650; color: var(--pim-heading, #000000); display: block; }
.pim-table__desc { display: block; color: var(--pim-muted, #4b4b4b); font-size: 13.5px; margin-top: 3px; }
.pim-table__price { font-weight: 800; color: var(--pim-heading, #000000); white-space: nowrap; }
.pim-table__unit { color: var(--pim-muted, #4b4b4b); white-space: nowrap; }

.pim-billing-note {
	background: #f8f8f8;
	border: 1px solid var(--pim-table-border, #e5e5e5);
	border-radius: 12px;
	padding: 16px 20px;
	margin-top: 20px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--pim-muted, #4b4b4b);
}

.pim-billing-note p { margin: 0; }

/* ---------- Custom package card ---------- */
.pim-custom {
	margin-top: 44px;
	background: var(--pim-custom-bg, #000000);
	border-radius: var(--pim-card-radius, 18px);
	padding: 40px 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}

.pim-custom__content { flex: 1 1 420px; min-width: min(420px, 100%); }

.pim-custom__title {
	color: var(--pim-custom-heading, #ffffff);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 10px;
}

.pim-custom__text,
.pim-custom__text p {
	color: var(--pim-custom-text, #e5e5e5);
	font-size: 16.5px;
	line-height: 1.6;
	margin: 0;
}

.pim-custom__action { flex: 0 1 auto; text-align: center; }

.pim-custom__support {
	color: var(--pim-custom-text, #e5e5e5);
	font-size: 13.5px;
	margin: 10px 0 0;
}

/* ---------- Small print ---------- */
.pim-notes {
	max-width: 860px;
	margin: 28px auto 0;
	text-align: center;
}

.pim-notes .pim-note,
.pim-notes .pim-note p {
	color: var(--pim-notes, #6b7280);
	font-size: 13.5px;
	line-height: 1.65;
	margin: 0 0 6px;
}

/* ---------- Screen-reader-only & entrance ---------- */
.pim-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@keyframes pim-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.pim-pricing__Header { animation: pim-fade-in .45s ease both; }

/* ---------- Responsive ---------- */

/* Tablet: keep 3-across while there is room, tighten spacing. */
@media (max-width: 1024px) {
	.pim-pricing { padding: 64px 18px; }
	.pim-pricing__title { font-size: 38px; }
	.pim-card { padding: 34px 22px 28px; }
	.pim-card__amount { font-size: 40px; }
}

/* Small tablet / large phone: 2-across with the third card spanning,
   switching to a single column before content feels cramped. */
@media (max-width: 860px) {
	.pim-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pim-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.pim-pricing { padding: 52px 16px; }
	.pim-pricing__title { font-size: 31px; }
	.pim-pricing__subtitle, .pim-pricing__subtitle p { font-size: 16.5px; }
	.pim-cards { grid-template-columns: minmax(0, 1fr); }
	.pim-card:last-child:nth-child(odd) { grid-column: auto; }
	.pim-card { padding: 34px 24px 28px; }

	.pim-switch { width: 100%; }
	.pim-switch button { flex: 1 1 0; padding: 12px 10px; font-size: 15px; }

	.pim-custom { padding: 32px 24px; flex-direction: column; align-items: stretch; text-align: center; }
	.pim-custom__action .pim-btn { width: 100%; }

	/* Card-style table rows: no sideways page scroll, nothing hidden. */
	.pim-table { min-width: 0; font-size: 15px; }
	.pim-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.pim-table, .pim-table tbody, .pim-table tr, .pim-table th, .pim-table td { display: block; width: 100%; }
	.pim-table tbody tr { padding: 14px 18px; border-top: 1px solid var(--pim-table-border, #e5e5e5); }
	.pim-table tbody tr:first-child { border-top: none; }
	.pim-table tbody th, .pim-table tbody td { border-top: none; padding: 2px 0; }
	.pim-table tbody td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
		color: var(--pim-muted, #4b4b4b);
		font-size: 13px;
		text-transform: uppercase;
		letter-spacing: .04em;
	}
	.pim-table__service { font-size: 16px; margin-bottom: 4px; }
}

/* Very small screens */
@media (max-width: 360px) {
	.pim-pricing { padding: 44px 12px; }
	.pim-pricing__title { font-size: 27px; }
	.pim-card__amount { font-size: 38px; }
	.pim-switch button { font-size: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.pim-pricing__Header { animation: none; }
	.pim-pricing *, .pim-pricing *::before, .pim-pricing *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
