/* PenPal Inmate Profiles — frontend styles */

/* ---------- Submission form ---------- */
.ppip-form-wrap {
	max-width: 680px;
	margin: 0 auto;
}

.ppip-form .ppip-field {
	margin-bottom: 18px;
}

.ppip-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.ppip-form .ppip-req {
	color: #d63638;
}

.ppip-form .ppip-input,
.ppip-form select,
.ppip-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 15px;
}

.ppip-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.ppip-choice {
	font-weight: 400 !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ppip-word-counter {
	font-size: 13px;
	color: #646970;
	margin: 4px 0 0;
}

.ppip-word-counter.ppip-over {
	color: #d63638;
	font-weight: 600;
}

.ppip-extra-cost {
	color: #e8722a;
	font-weight: 700;
	margin-left: 6px;
}

/* Bounded crop stage — Cropper.js sizes its canvas to this container, so a
   fixed height keeps even very large images inside a tidy, fixed-size box
   instead of blowing up to full screen. */
.ppip-photo-field .ppip-cropper-wrap {
	position: relative;
	width: 100%;
	max-width: 520px;
	height: 420px;
	margin: 12px 0;
	background: #10151b;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.04 );
}

.ppip-photo-field .ppip-cropper-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
}

/* Rounded corners for Cropper's own generated container. */
.ppip-photo-field .ppip-cropper-wrap .cropper-container {
	border-radius: 10px;
}

.ppip-photo-field .ppip-crop-apply {
	margin: 4px 0 6px;
}

.ppip-photo-field .ppip-crop-hint {
	margin: 2px 0 0;
	font-size: 12px;
	color: #646970;
}

@media ( max-width: 600px ) {
	.ppip-photo-field .ppip-cropper-wrap {
		height: 300px;
	}
}

.ppip-photo-thumb {
	max-width: 220px;
	border-radius: 6px;
	margin-top: 8px;
	display: block;
}

.ppip-summary {
	margin: 18px 0;
}

.ppip-price-line {
	font-size: 18px;
}

.ppip-btn {
	background: #2271b1;
	color: #fff;
	border: 0;
	padding: 12px 26px;
	font-size: 16px;
	border-radius: 6px;
	cursor: pointer;
}

.ppip-btn:hover {
	background: #135e96;
}

.ppip-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 18px;
}

.ppip-notice.ppip-success {
	background: #edfaef;
	border: 1px solid #00a32a;
}

.ppip-notice.ppip-error {
	background: #fcf0f1;
	border: 1px solid #d63638;
}

.ppip-notice ul {
	margin: 0;
	padding-left: 18px;
}

/* ---------- Payment chooser ---------- */
.ppip-pay-wrap {
	max-width: 480px;
	margin: 0 auto;
	text-align: center;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 28px 24px;
}

.ppip-pay-title {
	margin: 0 0 6px;
}

.ppip-pay-amount {
	font-size: 18px;
	margin: 14px 0 22px;
}

.ppip-notice.ppip-pending {
	background: #fff7e6;
	border: 1px solid #f0b429;
	text-align: left;
}

.ppip-pay-summary {
	list-style: none;
	margin: 0 0 6px;
	padding: 0;
	text-align: left;
	border-top: 1px solid #eee;
}

.ppip-pay-summary li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.ppip-pay-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ppip-pay-buttons .ppip-btn {
	width: 100%;
}

.ppip-btn-stripe {
	background: #635bff;
}

.ppip-btn-stripe:hover {
	background: #4b45c6;
}

.ppip-btn-paypal {
	background: #ffc439;
	color: #003087;
}

.ppip-btn-paypal:hover {
	background: #f0b71f;
}

/* ---------- Add-ons ---------- */
.ppip-addons,
.ppip-extra-images {
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 16px 18px;
	margin: 22px 0;
}

.ppip-addons-title,
.ppip-extra-images-title {
	font-weight: 700;
	margin: 0 0 12px;
}

.ppip-addon {
	display: block;
	font-weight: 400 !important;
	padding: 8px 0;
	border-bottom: 1px dashed #ececec;
}

.ppip-addon:last-child {
	border-bottom: 0;
}

.ppip-addon-price {
	color: #2271b1;
	font-weight: 600;
}

.ppip-addon-desc {
	display: block;
	font-size: 13px;
	color: #6a6f76;
	margin: 2px 0 0 24px;
}

.ppip-addon-qty {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 2px 24px;
	font-size: 13px;
	color: #50575e;
}

.ppip-addon-qty-label {
	font-weight: 600;
}

/* Compact +/− stepper for dashboard quantities. */
.ppip-qty-stepper {
	vertical-align: middle;
}

.ppip-qty-stepper .ppip-step {
	width: 30px;
	height: 32px;
	font-size: 18px;
}

.ppip-qty-input {
	width: 48px;
	height: 32px;
	border: 0;
	border-left: 1px solid #c3c4c7;
	border-right: 1px solid #c3c4c7;
	text-align: center;
	font-size: 15px;
	-moz-appearance: textfield;
	background: #fff;
}

.ppip-qty-input::-webkit-outer-spin-button,
.ppip-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ppip-addon-qty-max {
	color: #8a8f96;
}

.ppip-addon-linetotal {
	margin-left: auto;
	font-size: 15px;
	color: #1d2327;
	white-space: nowrap;
}

.ppip-addon-linetotal s {
	color: #a0a5aa;
	font-weight: 400;
	margin-right: 3px;
}

.ppip-addon-saved {
	display: inline-block;
	background: #edfaef;
	color: #1d7a3e;
	font-size: 12px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 20px;
	margin-left: 4px;
}

/* Attractive "volume discount" offer line. */
.ppip-addon-offers {
	display: inline-block;
	margin: 6px 0 0 24px;
	background: linear-gradient( 90deg, #fff7e6, #fdeccd );
	color: #a8620a;
	font-size: 12.5px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	border: 1px solid #f5d9a8;
}

.ppip-total-line {
	font-size: 20px;
	text-align: right;
}

/* ---------- Featured Profile (paid upgrade) ---------- */
.ppip-featured-box {
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 16px 18px;
	margin: 22px 0;
	background: #fffdf5;
}

.ppip-featured-title {
	font-weight: 700;
	margin: 0 0 4px;
}

.ppip-featured-intro {
	margin: 0 0 6px;
	color: #4b5158;
}

.ppip-featured-discount-hint {
	margin: 0 0 12px;
	font-size: 13px;
	color: #1d7a3e;
	font-weight: 600;
}

.ppip-featured-months {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.ppip-featured-months label {
	font-weight: 600;
	margin: 0;
}

.ppip-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	overflow: hidden;
}

.ppip-step {
	background: #f3f4f5;
	border: 0;
	width: 34px;
	height: 38px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #2271b1;
}

.ppip-step:hover {
	background: #e6e8ea;
}

.ppip-featured-input {
	width: 60px;
	height: 38px;
	border: 0;
	border-left: 1px solid #c3c4c7;
	border-right: 1px solid #c3c4c7;
	text-align: center;
	font-size: 16px;
	-moz-appearance: textfield;
}

.ppip-featured-input::-webkit-outer-spin-button,
.ppip-featured-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ppip-featured-cost {
	color: #2271b1;
	font-weight: 700;
}

/* ---------- Itemised total breakdown ---------- */
.ppip-summary-lines {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	border-top: 1px solid #e2e4e7;
}

.ppip-summary-line {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 7px 0;
	border-bottom: 1px solid #eef0f1;
	font-size: 15px;
}

.ppip-summary-label {
	color: #3c434a;
}

.ppip-summary-amount {
	font-weight: 600;
	white-space: nowrap;
}

.ppip-summary-discount .ppip-summary-label,
.ppip-summary-discount .ppip-summary-amount {
	color: #1d7a3e;
}

/* ---------- Inline payment methods ---------- */
.ppip-pay-methods {
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 16px 18px;
	margin: 22px 0;
	background: #fafbfc;
}

.ppip-pay-methods-title {
	font-weight: 700;
	margin: 0 0 12px;
}

.ppip-pay-method {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #d8dadd;
	border-radius: 8px;
	margin-bottom: 10px;
	cursor: pointer;
	font-weight: 500;
}

.ppip-pay-method:has( input:checked ) {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	background: #fff;
}

.ppip-pay-secure-note {
	font-size: 12px;
	color: #888;
	margin: 6px 0 0;
}

.ppip-check-instructions,
.ppip-check-box {
	background: #fff8e6;
	border: 1px solid #f0d089;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 12px 0 0;
	font-size: 14px;
}

.ppip-check-box h4 {
	margin: 0 0 8px;
}

/* ---------- Gallery field (frontend) ---------- */
.ppip-gallery-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.ppip-gallery-prev {
	position: relative;
	display: inline-block;
}

.ppip-gallery-prev img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #d8dadd;
	display: block;
}

.ppip-gallery-prev .ppip-gallery-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 0;
	background: #d63638;
	color: #fff;
	cursor: pointer;
	line-height: 20px;
	padding: 0;
}

.ppip-gallery-counter {
	font-size: 13px;
	color: #646970;
	margin: 8px 0 0;
}

/* ---------- Modal ---------- */
.ppip-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.ppip-modal.is-open {
	display: flex;
}

.ppip-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.ppip-modal-box {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 28px 26px;
	width: 92%;
	max-width: 420px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	text-align: center;
}

.ppip-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.ppip-modal-title {
	margin: 0 0 14px;
}

.ppip-modal-total {
	font-size: 20px;
	margin: 0 0 20px;
}

.ppip-modal-methods {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ppip-modal-note {
	font-size: 12px;
	color: #888;
	margin: 16px 0 0;
}

/* ---------- Account forms (login / register / reset) ---------- */
.ppip-account {
	max-width: 440px;
	margin: 0 auto;
}

.ppip-account-form {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 12px;
	padding: 26px 28px;
}

.ppip-account-form h3 {
	margin: 0 0 18px;
}

.ppip-account-form p {
	margin: 0 0 14px;
}

.ppip-account-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
}

.ppip-account-form input[type="text"],
.ppip-account-form input[type="email"],
.ppip-account-form input[type="password"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 15px;
}

.ppip-account-form .ppip-btn {
	width: 100%;
}

.ppip-account-remember label {
	font-weight: 400;
}

.ppip-account-links {
	font-size: 14px;
	text-align: center;
	margin-top: 8px !important;
}

.ppip-field-hint {
	display: block;
	font-size: 13px;
	color: #6a6f76;
	margin-top: 4px;
}

.ppip-dash-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ppip-logout {
	font-size: 14px;
	color: #b32d2e;
	text-decoration: none;
	border: 1px solid #e3b3b4;
	padding: 6px 14px;
	border-radius: 6px;
}

/* ---------- User dashboard ---------- */
.ppip-dashboard {
	max-width: 760px;
	margin: 0 auto;
}

.ppip-dash-title {
	margin-bottom: 18px;
}

.ppip-dash-card {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 16px;
	background: #fff;
}

.ppip-dash-body {
	flex: 1 1 auto;
	min-width: 0;
}

.ppip-dash-thumb {
	flex: 0 0 auto;
	width: 84px;
	height: 105px;
}

.ppip-dash-photo {
	width: 84px;
	height: 105px;
	object-fit: cover;
	object-position: top center;
	border-radius: 8px;
	display: block;
	background: #f0f0f1;
}

.ppip-dash-photo--ph {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	color: #c3c7cc;
	overflow: hidden;
}

.ppip-dash-photo--ph svg {
	width: 74px;
	height: 74px;
	margin-bottom: -6px;
}

@media ( max-width: 480px ) {
	.ppip-dash-card {
		flex-direction: column;
	}
	.ppip-dash-thumb,
	.ppip-dash-photo {
		width: 96px;
		height: 120px;
	}
}

.ppip-dash-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ppip-dash-name {
	margin: 0;
	font-size: 18px;
}

.ppip-dash-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 20px;
	white-space: nowrap;
}

.ppip-badge-live { background: #edfaef; color: #1d7a3e; }
.ppip-badge-featured { background: #fff7e6; color: #a86700; }
.ppip-badge-expired { background: #fcf0f1; color: #b32d2e; }
.ppip-badge-pending { background: #eef4fb; color: #2271b1; }
.ppip-badge-review { background: #f0f0f1; color: #50575e; }

.ppip-dash-meta {
	margin: 10px 0 14px;
	font-size: 14px;
	color: #50575e;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.ppip-dash-section {
	border-top: 1px solid #eee;
	padding-top: 12px;
	margin-top: 12px;
}

.ppip-dash-section > summary {
	cursor: pointer;
	font-weight: 600;
	color: #2271b1;
	list-style: revert;
}

.ppip-dash-empty {
	font-size: 13px;
	color: #646970;
}

.ppip-dash-form {
	margin-top: 14px;
}

.ppip-dash-form label {
	font-weight: 600;
}

.ppip-dash-form .ppip-pay-methods {
	margin: 14px 0;
}

/* ---------- Edit profile form ---------- */
.ppip-edit-note {
	background: #eef4fb;
	border: 1px solid #d3e3f5;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	color: #2c3e50;
	margin: 0 0 16px;
}

.ppip-edit-form .ppip-field {
	margin: 0 0 16px;
}

.ppip-edit-form .ppip-field > label {
	display: block;
	margin-bottom: 5px;
}

.ppip-edit-form .ppip-input,
.ppip-edit-form input[type="text"],
.ppip-edit-form input[type="email"],
.ppip-edit-form input[type="number"],
.ppip-edit-form textarea,
.ppip-edit-form select {
	width: 100%;
	max-width: 100%;
}

.ppip-edit-form .ppip-field-hint {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-top: 4px;
}

.ppip-edit-current {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 10px;
}

.ppip-edit-current img {
	border-radius: 6px;
	object-fit: cover;
	object-position: top center;
}

.ppip-edit-current em {
	font-size: 12px;
	color: #646970;
	font-style: normal;
}

/* ---------- Gallery ---------- */
.ppip-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.ppip-gallery-img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

/* ---------- Grid ---------- */
.ppip-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, 1fr);
}

.ppip-cols-1 { grid-template-columns: repeat(1, 1fr); }
.ppip-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ppip-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ppip-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ppip-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ppip-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
	.ppip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.ppip-grid { grid-template-columns: 1fr; }
}

.ppip-card {
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s ease, transform .15s ease;
}

.ppip-card:hover {
	box-shadow: 0 6px 22px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}

.ppip-card-featured {
	border-color: #f0b429;
	box-shadow: 0 0 0 2px rgba(240, 180, 41, .35);
}

.ppip-card-link {
	text-decoration: none;
	color: inherit;
	position: relative;
	display: block;
}

.ppip-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #f0b429;
	color: #1d2327;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	z-index: 2;
}

.ppip-card-thumb {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #f0f0f1;
}

.ppip-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ppip-card-title {
	margin: 12px 14px 6px;
	font-size: 18px;
}

.ppip-card-meta {
	list-style: none;
	margin: 0 14px 12px;
	padding: 0;
	font-size: 14px;
	color: #50575e;
}

.ppip-card-meta .ppip-card-label {
	font-weight: 600;
}

.ppip-card-excerpt {
	margin: 0 14px 14px;
	font-size: 14px;
	color: #50575e;
}

.ppip-pagination {
	margin-top: 26px;
	display: flex;
	gap: 6px;
	justify-content: center;
	flex-wrap: wrap;
}

.ppip-pagination .page-numbers {
	padding: 8px 13px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	text-decoration: none;
}

.ppip-pagination .page-numbers.current {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

/* ---------- Profile card (grid / Elementor) ---------- */
.ppip-pcard {
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 14px;
	padding: 18px;
	text-align: center;
	box-shadow: 0 6px 18px rgba(20, 20, 50, .06);
	display: flex;
	flex-direction: column;
}

.ppip-pcard-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	min-height: 24px;
	margin-bottom: 4px;
}

.ppip-pc-featured {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #1d7a3e;
	background: #eafaef;
	border: 1px dashed #9bd9ad;
	border-radius: 20px;
	padding: 3px 10px;
	text-decoration: none;
	transition: background .15s, border-color .15s, transform .15s;
}
a.ppip-pc-featured { cursor: pointer; }
a.ppip-pc-featured:hover {
	background: #d8f5e1;
	border-color: #6bc98a;
	color: #14602f;
	transform: translateY(-1px);
}

.ppip-pc-age {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #5b1aa0;
	margin-left: auto;
}

.ppip-pc-photo-link {
	display: block;
	margin: 6px auto 14px;
}

.ppip-pc-photo {
	display: inline-block;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	background: #f0f0f4;
	box-shadow: 0 0 0 4px #f4f1fb;
}

.ppip-pc-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ppip-pc-name {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.ppip-pc-name a {
	color: #1b1b2f;
	text-decoration: none;
}

.ppip-pc-location {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	color: #e8722a;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 14px;
}

.ppip-pc-meta {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	font-size: 13px;
	color: #555;
}

.ppip-pc-btn {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #5b1aa0;
	color: #fff;
	text-decoration: none;
	padding: 12px 14px;
	border-radius: 8px;
	font-weight: 600;
	transition: background .15s ease;
}

.ppip-pc-btn:hover {
	background: #4a1483;
	color: #fff;
}

/* ---------- AJAX grid loading state ---------- */
.ppip-grid-wrap {
	position: relative;
	transition: opacity .15s ease;
}

.ppip-grid-wrap.ppip-loading {
	opacity: .45;
	pointer-events: none;
}

/* ---------- Filter widget ---------- */
.ppip-filters {
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 12px;
	padding: 18px;
}

.ppip-filter-search {
	display: flex;
	align-items: center;
	background: #5b1aa0;
	border: 1px solid #5b1aa0;
	border-radius: 30px;
	overflow: hidden;
	margin-bottom: 18px;
}

.ppip-filter-search input {
	flex: 1;
	border: 0;
	background: transparent;
	color: #fff;
	padding: 11px 16px;
	font-size: 14px;
	outline: none;
}

.ppip-filter-search input::placeholder {
	color: rgba(255, 255, 255, .8);
}

.ppip-filter-search button {
	border: 0;
	background: #5b1aa0;
	color: #fff;
	padding: 0 16px;
	font-size: 16px;
	cursor: pointer;
	align-self: stretch;
}

.ppip-filter-group {
	margin-bottom: 16px;
}

.ppip-filter-group > label {
	display: block;
	font-weight: 700;
	color: #2a1a4a;
	margin-bottom: 7px;
	font-size: 15px;
}

.ppip-filter-input,
.ppip-filter-range input {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #d8dadd;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
}

.ppip-filter-range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ppip-filter-range span {
	color: #888;
}

.ppip-filter-choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ppip-filter-choices.ppip-filter-scroll {
	max-height: 160px;
	overflow-y: auto;
	padding-right: 6px;
}

.ppip-filter-choice {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
}

.ppip-filter-apply {
	width: 100%;
	background: #5b1aa0;
	color: #fff;
	border: 0;
	padding: 11px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 6px;
}

.ppip-filter-reset {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	color: #888;
	text-decoration: underline;
}

/* Horizontal filter layout */
.ppip-filters-horizontal {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
}

.ppip-filters-horizontal .ppip-filter-search {
	margin-bottom: 0;
	flex: 1 1 200px;
}

.ppip-filters-horizontal .ppip-filter-group {
	margin-bottom: 0;
	flex: 1 1 160px;
	min-width: 140px;
}

.ppip-filters-horizontal .ppip-filter-choices {
	flex-direction: row;
	flex-wrap: wrap;
}

.ppip-filters-horizontal .ppip-filter-apply,
.ppip-filters-horizontal .ppip-filter-reset {
	margin-top: 0;
	width: auto;
}

/* The widget wrapper must never let its inner scroll rows widen the page. */
.ppip-filters-wrap {
	max-width: 100%;
	min-width: 0;
}

/* Mobile: turn tall filter stacks into clean, swipeable chip rows */
@media (max-width: 767px) {
	/* Containment: making the form a scroll container gives it a 0 min-content
	   size, so the nowrap pill rows below can never stretch the Elementor
	   column (which caused the whole page to scroll horizontally). */
	.ppip-filters-mscroll {
		padding: 14px;
		max-width: 100%;
		overflow: hidden;
	}
	.ppip-filters-mscroll .ppip-filter-group {
		margin-bottom: 14px;
		min-width: 0;
		max-width: 100%;
	}
	.ppip-filters-mscroll .ppip-filter-group > label {
		margin-bottom: 9px;
	}
	/* Options become one horizontally scrollable row of pills. */
	.ppip-filters-mscroll .ppip-filter-choices {
		flex-direction: row;
		flex-wrap: nowrap;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 8px;
		padding: 2px 2px 10px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: #cabfe0 transparent;
	}
	.ppip-filters-mscroll .ppip-filter-choices::-webkit-scrollbar {
		height: 6px;
	}
	.ppip-filters-mscroll .ppip-filter-choices::-webkit-scrollbar-thumb {
		background: #d8d2e6;
		border-radius: 999px;
	}
	.ppip-filters-mscroll .ppip-filter-choice {
		flex: 0 0 auto;
		white-space: nowrap;
		scroll-snap-align: start;
		border: 1px solid #e2ddef;
		background: #f7f5fb;
		color: #3a2a5c;
		border-radius: 999px;
		padding: 8px 15px;
		font-weight: 600;
		transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
	}
	.ppip-filters-mscroll .ppip-filter-choice input {
		accent-color: #5b1aa0;
		margin: 0;
	}
	/* Enhancement (browsers with :has): fill the whole pill when selected and
	   hide the now-redundant native control. Falls back to a normal radio dot. */
	.ppip-filters-mscroll .ppip-filter-choice:has( input:checked ) {
		background: #5b1aa0;
		border-color: #5b1aa0;
		color: #fff;
		box-shadow: 0 4px 12px rgba(91, 26, 160, .25);
	}
	.ppip-filters-mscroll .ppip-filter-choice:has( input ) input {
		position: absolute;
		opacity: 0;
		width: 1px;
		height: 1px;
		pointer-events: none;
	}
	/* Keyword search + range/dropdown stay full width and readable. */
	.ppip-filters-mscroll .ppip-filter-search {
		margin-bottom: 14px;
	}
	.ppip-filters-mscroll.ppip-filters-horizontal {
		flex-direction: column;
		align-items: stretch;
	}
	.ppip-filters-mscroll.ppip-filters-horizontal .ppip-filter-group {
		flex: 1 1 auto;
	}
}

/* Mobile: foldable "Filters" button → small popup that auto-closes on change */
.ppip-filters-toggle {
	display: none;
}

@media (max-width: 767px) {
	.ppip-fmode-toggle {
		position: relative;
	}
	.ppip-fmode-toggle .ppip-filters-toggle {
		display: inline-flex;
		align-items: center;
		gap: 9px;
		width: 100%;
		justify-content: center;
		background: #5b1aa0;
		color: #fff;
		border: 0;
		border-radius: 12px;
		padding: 13px 18px;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
		box-shadow: 0 6px 16px rgba(91, 26, 160, .22);
	}
	.ppip-fmode-toggle .ppip-filters-count {
		background: #fff;
		color: #5b1aa0;
		min-width: 22px;
		height: 22px;
		padding: 0 6px;
		border-radius: 999px;
		font-size: 13px;
		line-height: 22px;
		text-align: center;
		font-weight: 800;
	}
	.ppip-fmode-toggle .ppip-filters-caret {
		font-size: 12px;
		transition: transform .2s ease;
	}
	.ppip-fmode-toggle.ppip-open .ppip-filters-caret {
		transform: rotate(180deg);
	}
	/* The filter form becomes a floating popup anchored under the button. */
	.ppip-fmode-toggle .ppip-filters-panel {
		display: none;
		position: absolute;
		z-index: 60;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		max-height: 72vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		box-shadow: 0 18px 44px rgba(20, 12, 40, .22);
		border: 1px solid #ececf1;
		animation: ppipFilterPop .16s ease;
	}
	.ppip-fmode-toggle.ppip-open .ppip-filters-panel {
		display: block;
	}
}

@keyframes ppipFilterPop {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Search widgets ---------- */
.ppip-search-box {
	background: #fff;
	border-radius: 12px;
	padding: 22px 24px;
	box-shadow: 0 8px 28px rgba(20, 20, 50, .12);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
}

.ppip-search-box .ppip-sb-group {
	display: flex;
	flex-direction: column;
	flex: 1 1 200px;
}

.ppip-search-box label {
	font-weight: 700;
	color: #2a1a4a;
	margin-bottom: 6px;
}

.ppip-search-box select,
.ppip-search-box input {
	padding: 11px 12px;
	border: 1px solid #d8dadd;
	border-radius: 8px;
	font-size: 15px;
}

.ppip-sb-ages {
	display: flex;
	gap: 10px;
}

.ppip-sb-ages input {
	width: 100%;
}

.ppip-search-box .ppip-sb-submit {
	flex: 1 1 100%;
}

.ppip-search-box .ppip-sb-submit button {
	width: 100%;
	background: #5b1aa0;
	color: #fff;
	border: 0;
	padding: 13px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}

.ppip-search-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 40px;
	padding: 8px 8px 8px 18px;
	box-shadow: 0 8px 28px rgba(20, 20, 50, .12);
}

.ppip-search-pill input {
	flex: 1;
	border: 0;
	outline: none;
	padding: 10px 8px;
	font-size: 15px;
	border-right: 1px solid #eee;
}

.ppip-search-pill input:last-of-type {
	border-right: 0;
}

.ppip-search-pill button {
	background: #e8722a;
	color: #fff;
	border: 0;
	padding: 11px 26px;
	border-radius: 30px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

/* ---------- Buy add-ons (standalone) ---------- */
.ppip-buyaddons-wrap {
	max-width: 680px;
	margin: 0 auto;
}

.ppip-ba-field {
	margin-bottom: 16px;
}

.ppip-ba-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
}

.ppip-ba-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	box-sizing: border-box;
}

.ppip-ba-item {
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.ppip-ba-head {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
	cursor: pointer;
}

.ppip-ba-thumb img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.ppip-ba-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ppip-ba-price {
	color: #5b1aa0;
	font-weight: 700;
}

.ppip-ba-inmate,
.ppip-ba-extra {
	margin: 12px 0 0 30px;
	padding-top: 12px;
	border-top: 1px dashed #e6e6ec;
}

.ppip-ba-inmate > label,
.ppip-ba-extra > label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.ppip-ba-extra textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	box-sizing: border-box;
}

.ppip-inmate-search {
	position: relative;
}

.ppip-inmate-input {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	box-sizing: border-box;
}

.ppip-inmate-results {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 20;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 0 0 8px 8px;
	max-height: 220px;
	overflow-y: auto;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.ppip-inmate-opt,
.ppip-inmate-none {
	padding: 9px 12px;
	cursor: pointer;
	font-size: 14px;
}

.ppip-inmate-opt {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}

.ppip-inmate-opt-photo {
	width: 38px;
	height: 38px;
	object-fit: cover;
	object-position: top center;
	border-radius: 50%;
	flex: 0 0 auto;
	border: 1px solid #e2e4e7;
}

.ppip-inmate-opt-info {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
	flex: 1 1 auto;
}

.ppip-inmate-opt-loc {
	font-size: 12px;
	color: #6a6f76;
}

.ppip-inmate-opt:hover {
	background: #f3f0fb;
}

.ppip-inmate-opt-status,
.ppip-inmate-chip-status {
	font-size: 11px;
	font-weight: 700;
	padding: 1px 8px;
	border-radius: 20px;
	white-space: nowrap;
}

.ppip-inmate-opt-status.is-active,
.ppip-inmate-chip-status.is-active {
	background: #edfaef;
	color: #1d7a3e;
}

.ppip-inmate-opt-status.is-expired,
.ppip-inmate-chip-status.is-expired {
	background: #fcf0f1;
	color: #b32d2e;
}

/* Renewal-required notice for expired profiles. */
.ppip-ba-renewreq {
	margin: 10px 0 4px;
	background: #fff7e6;
	border: 1px solid #f5d9a8;
	border-radius: 8px;
	padding: 10px 12px;
}

.ppip-ba-renewnote {
	margin: 0 0 8px;
	font-size: 13px;
	color: #a8620a;
	font-weight: 600;
}

.ppip-ba-renewsel {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d8dadd;
	border-radius: 6px;
	font-size: 14px;
}

.ppip-inmate-none {
	color: #888;
	cursor: default;
}

.ppip-inmate-chip-photo {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
	margin: -2px 0 -2px -6px;
	flex: 0 0 auto;
	background: #fff;
}

.ppip-inmate-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	background: #eafaef;
	border: 1px solid #9bd9ad;
	color: #1d7a3e;
	border-radius: 20px;
	padding: 4px 12px;
	font-weight: 600;
}

.ppip-inmate-chip a {
	color: #1d7a3e;
	text-decoration: none;
	font-size: 16px;
	line-height: 1;
}

.ppip-ba-totalline {
	font-size: 20px;
	text-align: right;
	margin: 16px 0;
}

.ppip-ba-submit .ppip-btn {
	width: 100%;
}

/* ---------- Add-on cart: quantity, order preview, actions ---------- */
.ppip-ba-item .ppip-addon-offers {
	margin: 6px 0 0;
}

.ppip-ba-linetotal {
	margin-top: 8px;
	font-size: 15px;
	text-align: right;
	color: #1d2327;
}

.ppip-ba-linetotal s {
	color: #a0a5aa;
	font-weight: 400;
	margin-right: 4px;
}

.ppip-ba-qty {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 4px 24px;
	font-size: 13px;
	color: #50575e;
}

.ppip-ba-qty-label {
	font-weight: 600;
}

.ppip-ba-review-area {
	margin-top: 14px;
	border-top: 1px solid #ececec;
	padding-top: 14px;
}

.ppip-ba-review-title {
	margin: 0 0 10px;
	font-size: 15px;
}

.ppip-ba-preview {
	margin-bottom: 12px;
}

.ppip-ba-prow {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed #ececec;
	font-size: 14px;
}

.ppip-ba-prow:last-child {
	border-bottom: 0;
}

.ppip-ba-prow-sub {
	padding-left: 14px;
	font-size: 13px;
	color: #6a6f76;
}

.ppip-ba-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 14px;
}

.ppip-ba-actions .ppip-ba-pay,
.ppip-ba-actions .ppip-ba-review {
	flex: 1 1 auto;
}

.ppip-btn-secondary {
	background: #f0f0f1;
	color: #2c3338;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 11px 16px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.ppip-btn-secondary:hover {
	background: #e6e8ea;
}

/* ---------- Add-on cart (grid buy mode) ---------- */
.ppip-addon-add {
	margin-top: auto;
	background: #5b1aa0;
	color: #fff;
	border: 0;
	padding: 11px 14px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
}

.ppip-addon-add:hover {
	background: #4a1483;
}

.ppip-addon-add.is-added {
	background: #1d7a3e;
}

.ppip-ba-hidden {
	display: none !important;
}

.ppip-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
}

.ppip-cart-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.ppip-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 400px;
	max-width: 92vw;
	background: #fff;
	z-index: 99999;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
	transform: translateX(100%);
	transition: transform .25s ease;
	display: flex;
	flex-direction: column;
}

.ppip-cart-drawer.is-open {
	transform: translateX(0);
}

.ppip-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #eee;
}

.ppip-cart-head h3 {
	margin: 0;
	font-size: 19px;
}

.ppip-cart-close {
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.ppip-cart-body {
	padding: 18px 20px;
	overflow-y: auto;
	flex: 1;
}

.ppip-cart-empty {
	color: #888;
	text-align: center;
	margin-top: 30px;
}

.ppip-cart-toggle {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99990;
	background: #5b1aa0;
	color: #fff;
	border: 0;
	border-radius: 30px;
	padding: 12px 20px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(91, 26, 160, .4);
	display: flex;
	align-items: center;
	gap: 8px;
}

.ppip-cart-toggle .ppip-cart-count {
	background: #fff;
	color: #5b1aa0;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
}

/* In the drawer the buy form is compact */
.ppip-cart-form .ppip-ba-totalline {
	font-size: 18px;
}

/* ---------- Add-on packages grid ---------- */
.ppip-addons-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
	.ppip-addons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.ppip-addons-grid { grid-template-columns: 1fr; }
}

.ppip-addon-card {
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(20, 20, 50, .06);
	display: flex;
	flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease;
}

.ppip-addon-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(20, 20, 50, .12);
}

.ppip-addon-img {
	aspect-ratio: 16 / 10;
	background: #f3f0fb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ppip-addon-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ppip-addon-noimg.dashicons {
	font-size: 46px;
	width: 46px;
	height: 46px;
	color: #c9b8ec;
}

.ppip-addon-body {
	padding: 18px 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.ppip-addon-name {
	margin: 0;
	font-size: 19px;
	color: #1b1b2f;
}

.ppip-addon-cardprice {
	font-size: 22px;
	font-weight: 800;
	color: #5b1aa0;
}

.ppip-addon-badge {
	align-self: flex-start;
	background: #eafaef;
	color: #1d7a3e;
	border: 1px dashed #9bd9ad;
	border-radius: 20px;
	padding: 3px 12px;
	font-size: 13px;
	font-weight: 600;
}

.ppip-addon-carddesc {
	margin: 4px 0 0;
	color: #555;
	font-size: 14px;
	line-height: 1.6;
}

/* ---------- Single profile (full layout) ---------- */
.ppip-profile {
	max-width: 1140px;
	margin: 0 auto;
	color: #2a2a3a;
}

.ppip-pp-header {
	display: flex;
	align-items: center;
	gap: 22px;
	background: #eef0f4;
	border-radius: 14px;
	padding: 20px 26px;
	margin-bottom: 26px;
}

.ppip-pp-photo img {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px #fff;
}

.ppip-pp-namerow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border-bottom: 1px solid #d5d8e0;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.ppip-pp-headinfo {
	flex: 1;
}

.ppip-pp-name {
	margin: 0;
	font-size: 26px;
	color: #2271b1;
}

.ppip-pp-metarow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font-size: 15px;
}

.ppip-pp-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ppip-pp-meta strong {
	color: #1b1b2f;
}

.ppip-pp-meta > span {
	color: #5b1aa0;
}

.ppip-pp-meta .dashicons,
.ppip-ov-icon .dashicons,
.ppip-pp-meta .ppip-fa-icon,
.ppip-ov-icon .ppip-fa-icon {
	color: #e8722a;
}

.ppip-ov-icon .ppip-fa-icon,
.ppip-pp-meta .ppip-fa-icon {
	font-size: 18px;
	width: 20px;
	text-align: center;
}

.ppip-pp-body {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 30px;
	align-items: start;
}

@media (max-width: 860px) {
	.ppip-pp-body { grid-template-columns: 1fr; }
	.ppip-pp-header { flex-direction: column; text-align: center; }
}

.ppip-pp-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 22px;
}

.ppip-pp-gallery img {
	width: 160px;
	height: 160px;
	object-fit: cover;
	object-position: top center;
	border-radius: 6px;
}

.ppip-pp-bio {
	font-size: 16px;
	line-height: 1.7;
	color: #3a3f6b;
}

/* ---------- Display-only field blocks (heading / button / shortcode) ---------- */
.ppip-pp-heading {
	margin: 18px 0 10px;
	font-size: 20px;
	color: #1b1b2f;
}

.ppip-pp-main .ppip-pp-heading:first-child {
	margin-top: 0;
}

.ppip-pp-button {
	display: inline-block;
	margin: 6px 0;
	padding: 11px 22px;
	background: #2271b1;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}

.ppip-pp-button:hover {
	background: #135e96;
	color: #fff;
}

.ppip-pp-shortcode {
	margin: 12px 0;
}

.ppip-pp-line {
	font-size: 16px;
	line-height: 1.7;
	color: #3a3f6b;
	margin: 6px 0;
}

.ppip-pp-topblock {
	margin-top: 12px;
}

.ppip-ov-static {
	padding: 10px 0;
	border-bottom: 1px solid #dfe2ea;
}

.ppip-ov-static .ppip-pp-heading {
	margin: 0;
	font-size: 17px;
}

.ppip-overview {
	background: #eef0f4;
	border-radius: 14px;
	padding: 22px;
}

.ppip-overview-title {
	margin: 0 0 16px;
	font-size: 20px;
	color: #1b1b2f;
}

.ppip-ov-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #dfe2ea;
}

.ppip-ov-item:last-child {
	border-bottom: 0;
}

.ppip-ov-icon {
	font-size: 18px;
	line-height: 1;
	margin-top: 2px;
}

.ppip-ov-body {
	display: flex;
	flex-direction: column;
}

.ppip-ov-label {
	font-weight: 700;
	color: #1b1b2f;
	font-size: 15px;
}

.ppip-ov-value {
	color: #5b1aa0;
	font-size: 15px;
}

.ppip-contact {
	margin-top: 18px;
}

.ppip-contact-btn {
	display: block;
	text-align: center;
	background: #5b1aa0;
	color: #fff;
	text-decoration: none;
	padding: 13px;
	border-radius: 8px;
	font-weight: 600;
}

.ppip-contact-btn:hover {
	background: #4a1483;
	color: #fff;
}

.ppip-emoji-icon {
	font-style: normal;
}

/* ---------- Message form ---------- */
.ppip-msgbox {
	margin-top: 18px;
	border: 1px dashed #e8722a;
	border-radius: 12px;
	padding: 20px;
	background: #fff;
}

.ppip-msg-title {
	margin: 0 0 6px;
	font-size: 20px;
	color: #1b1b2f;
}

.ppip-msg-price {
	color: #e8722a;
	font-weight: 600;
	margin: 0 0 14px;
}

.ppip-msg-field {
	margin-bottom: 12px;
}

.ppip-msg-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}

.ppip-msg-field input,
.ppip-msg-field textarea,
.ppip-msg-field select {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #d8dadd;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 14px;
}

/* Checkbox (agreement) field — inline. */
.ppip-msg-field.ppip-msg-check label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.ppip-msg-field.ppip-msg-check input {
	width: auto;
	margin-top: 3px;
	flex: 0 0 auto;
}

/* Paragraph word counter. */
.ppip-msg-wordcount {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-top: 4px;
}

.ppip-msg-over .ppip-msg-wordcount {
	color: #b32d2e;
	font-weight: 600;
}

.ppip-msg-over textarea {
	border-color: #b32d2e;
}

.ppip-msg-submit {
	margin-top: 8px;
}

.ppip-msg-submit .ppip-btn {
	width: 100%;
}

/* ---------- Single (legacy fields list) ---------- */
.ppip-single-fields {
	margin: 0;
}

.ppip-single-field {
	display: flex;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.ppip-single-field dt {
	font-weight: 700;
	min-width: 160px;
	margin: 0;
}

.ppip-single-field dd {
	margin: 0;
	flex: 1;
}

.ppip-display-photo {
	max-width: 360px;
	height: auto;
	border-radius: 8px;
}

/* ---------- Inline on-page payment ---------- */
.ppip-stripe-box,
.ppip-paypal-box {
	margin: 12px 0 16px 28px;
}

.ppip-stripe-box {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 14px;
}

.ppip-paypal-box {
	max-width: 420px;
}

.ppip-inline-errors {
	margin-top: 12px;
}

.ppip-inline-errors ul {
	margin: 0;
	padding-left: 18px;
}

/* ---------- Thank-you popup ---------- */
.ppip-ty-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba( 0, 0, 0, 0.55 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ppip-ty-box {
	background: #fff;
	border-radius: 14px;
	max-width: 500px;
	width: 100%;
	padding: 36px 32px 28px;
	text-align: center;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.35 );
	animation: ppip-ty-pop 0.25s ease;
}

@keyframes ppip-ty-pop {
	from { transform: scale( 0.92 ); opacity: 0; }
	to   { transform: scale( 1 ); opacity: 1; }
}

.ppip-ty-check {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #1d7a3e;
	color: #fff;
	font-size: 34px;
	line-height: 64px;
	margin: 0 auto 18px;
}

.ppip-ty-content {
	font-size: 16px;
	line-height: 1.65;
	color: #333;
}

.ppip-ty-actions {
	margin: 22px 0 0;
}

/* ---------- WooCommerce checkout popup ---------- */
.ppip-wc-modal {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba( 0, 0, 0, 0.55 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ppip-wc-box {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 860px;
	height: min( 88vh, 900px );
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.35 );
}

.ppip-wc-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 18px;
	border-bottom: 1px solid #e2e4e7;
}

.ppip-wc-note {
	font-size: 12px;
	color: #888;
	flex: 1;
}

.ppip-wc-newtab {
	font-size: 13px;
	white-space: nowrap;
}

.ppip-wc-close {
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #646970;
	padding: 0 4px;
}

.ppip-wc-frame {
	border: 0;
	width: 100%;
	flex: 1;
}

/* ---------- Thank-you Elementor widgets ---------- */
.ppip-ty-widget {
	max-width: 640px;
	margin: 0 auto;
	padding: 8px 0;
}

.ppip-ty-heading {
	margin: 0 0 12px;
}

.ppip-ty-message {
	font-size: 16px;
	line-height: 1.6;
	color: #2c3338;
}

.ppip-ty-items {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: inline-block;
	text-align: left;
}

.ppip-ty-items li {
	padding: 8px 14px;
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	margin-bottom: 8px;
	font-size: 14px;
}

.ppip-ty-details {
	list-style: none;
	margin: 16px auto 0;
	padding: 0;
	max-width: 360px;
	text-align: left;
}

.ppip-ty-details li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 14px;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	margin-bottom: 8px;
	background: #fff;
	font-size: 14px;
}

.ppip-ty-details li span {
	color: #646970;
}

.ppip-ty-total {
	margin-top: 14px;
	font-size: 16px;
}

.ppip-ty-total span {
	color: #646970;
	margin-right: 8px;
}

.ppip-ty-editnote {
	margin-top: 12px;
	font-size: 13px;
	color: #8a8f96;
}

/* ---------- Audio / Video upload fields (form) ---------- */
.ppip-media-field {
	margin-top: 6px;
}
.ppip-media-drop {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 16px;
	border: 1.5px dashed #b8c0c8;
	border-radius: 10px;
	background: #f6f7f8;
	color: #50575e;
	cursor: pointer;
	font-size: 14px;
	transition: border-color .15s, background .15s, color .15s;
}
.ppip-media-drop:hover {
	border-color: #2271b1;
	background: #f0f6fb;
	color: #2271b1;
}
.ppip-media-drop input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.ppip-media-busy .ppip-media-drop {
	opacity: .6;
	pointer-events: none;
}
.ppip-media-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}
.ppip-media-list:empty {
	margin-bottom: 0;
}
.ppip-media-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	background: #fff;
}
.ppip-media-item .ppip-media-el {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	height: 40px;
}
.ppip-media-item video.ppip-media-el {
	height: auto;
	max-height: 120px;
	border-radius: 6px;
	background: #000;
}
.ppip-media-name {
	font-size: 13px;
	color: #646970;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ppip-media-remove {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	line-height: 1;
	border: none;
	border-radius: 50%;
	background: #f0f0f1;
	color: #d63638;
	font-size: 18px;
	cursor: pointer;
	transition: background .15s;
}
.ppip-media-remove:hover {
	background: #fcf0f1;
}
.ppip-media-status {
	margin: 6px 0 0;
	font-size: 13px;
	color: #2271b1;
	min-height: 1em;
}
.ppip-media-status.ppip-media-error {
	color: #d63638;
}

/* ---------- Audio / Video display (single profile) ---------- */
.ppip-pp-media {
	margin: 22px 0;
}
.ppip-pp-media-title {
	font-size: 18px;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ppip-media-display {
	display: grid;
	gap: 16px;
}
.ppip-media-display.ppip-media-video {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.ppip-media-card {
	margin: 0;
	border: 1px solid #e2e4e7;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.ppip-media-video-card .ppip-media-player {
	display: block;
	width: 100%;
	max-height: 420px;
	background: #000;
}
.ppip-media-audio-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
}
.ppip-media-audio-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #2271b1, #135e96);
	color: #fff;
	font-size: 18px;
}
.ppip-media-audio-card .ppip-media-player {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 42px;
}

/* ---------- Addon Packages showcase widget ---------- */
.ppip-addon-showcase .ppip-as-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.ppip-as-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(20, 12, 40, .06);
	transition: transform .18s ease, box-shadow .18s ease;
}

.ppip-as-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(20, 12, 40, .12);
}

.ppip-as-media {
	position: relative;
	height: 170px;
	background: #f4f1fa;
	overflow: hidden;
}

.ppip-as-media .ppip-as-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ppip-as-media-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #efe8fb, #f6f1fd);
}

.ppip-as-media-icon {
	font-size: 40px;
	color: #a98fd6;
}

.ppip-as-benefit {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #5b1aa0;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .2px;
	padding: 5px 11px;
	border-radius: 999px;
	box-shadow: 0 3px 10px rgba(91, 26, 160, .3);
}

.ppip-as-benefit-inline {
	position: static;
	display: inline-block;
	margin-bottom: 10px;
	box-shadow: none;
}

.ppip-as-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
	flex: 1;
}

.ppip-as-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #2a1a4a;
	line-height: 1.3;
}

.ppip-as-price {
	font-size: 22px;
	font-weight: 800;
	color: #5b1aa0;
	line-height: 1.1;
}

.ppip-as-price-unit {
	font-size: 13px;
	font-weight: 600;
	color: #8a8f96;
}

.ppip-as-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #5c6270;
}

.ppip-as-discounts {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.ppip-as-disc-pill {
	display: inline-block;
	background: #edfaef;
	color: #147a32;
	border: 1px solid #bfe6c8;
	border-radius: 8px;
	padding: 4px 9px;
	font-size: 12px;
	font-weight: 600;
}

.ppip-as-btn {
	margin-top: auto;
	display: inline-block;
	text-align: center;
	background: #5b1aa0;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 11px 18px;
	border-radius: 10px;
	transition: background .15s ease, filter .15s ease;
}

.ppip-as-btn:hover {
	filter: brightness(1.08);
}

.ppip-as-btn-static {
	cursor: default;
	opacity: .9;
}

.ppip-as-empty {
	padding: 22px;
	border: 1px dashed #d8d2e6;
	border-radius: 12px;
	color: #8a8f96;
	text-align: center;
}

@media (max-width: 767px) {
	.ppip-addon-showcase .ppip-as-grid {
		grid-template-columns: 1fr;
	}
}

/* ============ Testimonials ============ */
.ppip-t-empty {
	padding: 20px;
	border: 1px dashed #d8d2e6;
	border-radius: 12px;
	color: #8a8f96;
	text-align: center;
}

/* ---- Layouts (carousel / grid / list share the card) ---- */
.ppip-t-carousel {
	position: relative;
}

/* Grid */
.ppip-t-grid {
	display: grid;
	grid-template-columns: repeat( var(--ppip-t-slides, 3), minmax(0, 1fr) );
	gap: var(--ppip-t-gap, 22px);
}

/* List (compact, sidebar-friendly) */
.ppip-t-list {
	display: flex;
	flex-direction: column;
	gap: var(--ppip-t-gap, 16px);
}

.ppip-t-viewport {
	display: flex;
	gap: var(--ppip-t-gap, 22px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 6px 2px 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.ppip-t-viewport::-webkit-scrollbar {
	display: none;
}

.ppip-t-card {
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 16px;
	padding: 26px;
	box-shadow: 0 6px 22px rgba(20, 12, 40, .06);
}

/* Carousel cards become fixed-width, snapping slides. */
.ppip-t-viewport .ppip-t-card {
	flex: 0 0 calc( ( 100% - ( var(--ppip-t-slides, 3) - 1 ) * var(--ppip-t-gap, 22px) ) / var(--ppip-t-slides, 3) );
	scroll-snap-align: start;
}

.ppip-t-quote {
	font-size: 26px;
	line-height: 1;
	color: #5b1aa0;
	opacity: .22;
}

.ppip-t-stars {
	display: inline-flex;
	gap: 3px;
	font-size: 15px;
}
.ppip-t-star-on { color: #f5a623; }
.ppip-t-star-off { color: #dfe1e6; }

.ppip-t-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #2a1a4a;
	line-height: 1.35;
}

.ppip-t-text {
	margin: 0;
	color: #5c6270;
	line-height: 1.6;
	font-size: 15px;
	flex: 1;
}

.ppip-t-person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.ppip-t-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
}
.ppip-t-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ppip-t-photo-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #efe8fb, #f6f1fd);
	color: #7c5bc0;
	font-weight: 800;
	font-size: 18px;
}

.ppip-t-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}
.ppip-t-name { font-weight: 700; color: #2a1a4a; }
.ppip-t-loc { font-size: 13px; color: #8a8f96; }

.ppip-t-arrow {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #5b1aa0;
	color: #fff;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(91, 26, 160, .28);
	transition: filter .15s;
}
.ppip-t-arrow:hover { filter: brightness(1.1); }
.ppip-t-prev { left: -10px; }
.ppip-t-next { right: -10px; }

.ppip-t-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.ppip-t-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d5d3de;
	cursor: pointer;
	transition: width .2s, background .2s, border-radius .2s;
}
.ppip-t-dot.is-active {
	background: #5b1aa0;
	width: 22px;
	border-radius: 6px;
}

@media (max-width: 767px) {
	.ppip-t-prev { left: 0; }
	.ppip-t-next { right: 0; }
	.ppip-t-arrow { width: 36px; height: 36px; }
}

/* ---- Read more / show less ---- */
.ppip-t-clamp .ppip-t-rest {
	display: none;
}
.ppip-t-clamp.is-expanded .ppip-t-rest {
	display: inline;
	animation: ppipTFade .25s ease;
}
.ppip-t-clamp.is-expanded .ppip-t-ellipsis {
	display: none;
}
.ppip-t-more {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	margin: 0 0 0 6px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	color: #5b1aa0;
	font-family: inherit !important;
	font-weight: 700;
	font-size: .92em;
	line-height: inherit;
	text-transform: none !important;
	cursor: pointer !important;
	white-space: nowrap;
	vertical-align: baseline;
	min-height: 0 !important;
}
.ppip-t-more:hover { text-decoration: underline; background: none !important; }
.ppip-t-more i { color: inherit !important; }
.ppip-t-more-icon {
	font-size: .8em;
	transition: transform .15s ease;
}
@keyframes ppipTFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ---- List layout: compact cards for a sidebar ---- */
.ppip-t-list .ppip-t-card {
	padding: 18px 20px;
	gap: 9px;
	border-radius: 14px;
	box-shadow: 0 3px 12px rgba(20, 12, 40, .05);
}
.ppip-t-list .ppip-t-quote { display: none; }
.ppip-t-list .ppip-t-stars { font-size: 13px; }
.ppip-t-list .ppip-t-title { font-size: 15px; }
.ppip-t-list .ppip-t-text { font-size: 14px; line-height: 1.55; }
.ppip-t-list .ppip-t-person { gap: 10px; margin-top: 2px; }
.ppip-t-list .ppip-t-photo { width: 38px; height: 38px; }
.ppip-t-list .ppip-t-photo-ph { font-size: 15px; }
.ppip-t-list .ppip-t-name { font-size: 14px; }
.ppip-t-list .ppip-t-loc { font-size: 12px; }

/* ---- Submit button ----
   Structure is hardened with !important so theme/Elementor button rules can't
   bleed in; background/colour stay control-friendly (Elementor style controls). */
.ppip-t-submit-wrap { display: flex; }
.ppip-t-open-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 9px !important;
	background: #5b1aa0;
	color: #fff;
	border: 0 !important;
	margin: 0 !important;
	padding: 14px 26px;
	border-radius: 12px;
	font-weight: 700 !important;
	font-size: 15px;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: 0 6px 16px rgba(91, 26, 160, .22);
	transition: filter .15s, transform .15s !important;
}
.ppip-t-open-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ppip-t-open-btn i { color: inherit !important; }

/* ---- Popup ----
   Everything below is locked with !important: the modal renders inside the
   Elementor widget, so theme + Elementor input/button styles would otherwise
   override these. */
.ppip-t-modal, .ppip-t-modal * { box-sizing: border-box; }

/* Baseline reset for every control inside the modal (keeps background/colour
   free so the submit button's colour control still applies). */
.ppip-t-modal button,
.ppip-t-modal input,
.ppip-t-modal textarea {
	font-family: inherit !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	margin: 0 !important;
}
.ppip-t-modal button {
	border: 0 !important;
	outline: none !important;
	min-height: 0 !important;
	min-width: 0 !important;
	width: auto;
	text-shadow: none !important;
	cursor: pointer !important;
}

.ppip-t-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483000 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 16px !important;
	opacity: 0;
	transition: opacity .25s ease;
}
.ppip-t-modal[hidden] { display: none !important; }
.ppip-t-modal.is-open { opacity: 1; }

.ppip-t-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 10, 38, .6);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.ppip-t-modal-box {
	position: relative;
	z-index: 1;
	background: #fff !important;
	width: min(540px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	border-radius: 20px;
	padding: 34px 34px 30px !important;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
	transform: translateY(16px) scale(.97);
	transition: transform .28s cubic-bezier(.2, .8, .25, 1);
	text-align: left !important;
}
.ppip-t-modal.is-open .ppip-t-modal-box { transform: none; }

/* Close: clean circular button, subtle grey hover (never a theme colour). */
.ppip-t-modal-close {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	width: 36px !important;
	height: 36px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background: #f3f3f6 !important;
	color: #6a6f7a !important;
	font-size: 22px !important;
	line-height: 1 !important;
	box-shadow: none !important;
	transition: background .15s, color .15s !important;
}
.ppip-t-modal-close:hover { background: #e7e5ee !important; color: #241640 !important; }

.ppip-t-form-heading {
	margin: 0 0 6px !important;
	padding-right: 34px;
	font-size: 24px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	color: #241640;
}
.ppip-t-form-intro {
	margin: 0 0 22px !important;
	color: #6a6f7a !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.ppip-t-field { margin-bottom: 16px !important; }
.ppip-t-flabel {
	display: block !important;
	font-weight: 600 !important;
	margin-bottom: 7px !important;
	color: #241640 !important;
	font-size: 13.5px !important;
	line-height: 1.3 !important;
}
.ppip-t-req { color: #d63638 !important; }

.ppip-t-input {
	width: 100% !important;
	display: block !important;
	padding: 12px 14px !important;
	border: 1.5px solid #e2e0ea !important;
	border-radius: 11px !important;
	font-size: 14.5px !important;
	color: #241640 !important;
	background: #fbfbfd !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	transition: border-color .15s, box-shadow .15s, background .15s !important;
}
.ppip-t-input::placeholder { color: #a7abb5 !important; opacity: 1; }
.ppip-t-input:focus {
	border-color: #5b1aa0 !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgba(91, 26, 160, .12) !important;
	outline: none !important;
}
textarea.ppip-t-input { resize: vertical !important; min-height: 112px !important; }

/* Star rating — pure stars, no button chrome (kills the theme focus/active box). */
.ppip-t-rate { display: inline-flex !important; gap: 8px !important; }
.ppip-t-rate-star {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	padding: 2px !important;
	font-size: 30px !important;
	line-height: 1 !important;
	color: #dcdfe6 !important;
	transition: color .12s, transform .12s !important;
}
.ppip-t-rate-star:hover,
.ppip-t-rate-star:focus,
.ppip-t-rate-star:active { background: none !important; background-color: transparent !important; box-shadow: none !important; }
.ppip-t-rate-star i { color: inherit !important; }
.ppip-t-rate-star.on,
.ppip-t-rate-star.hover { color: #f5a623 !important; transform: scale(1.12); }
.ppip-t-rate-star:focus-visible { outline: 2px solid rgba(91, 26, 160, .4) !important; outline-offset: 2px; border-radius: 6px; }

/* Photo upload */
.ppip-t-photo-field { margin-bottom: 18px !important; }
.ppip-t-photo-drop {
	display: inline-flex !important;
	align-items: center !important;
	gap: 9px !important;
	padding: 11px 16px !important;
	border: 1.5px dashed #c3c0d2 !important;
	border-radius: 11px !important;
	cursor: pointer !important;
	color: #5a5f6b !important;
	font-size: 14px !important;
	background: #fbfbfd !important;
	transition: border-color .15s, color .15s !important;
}
.ppip-t-photo-drop:hover { border-color: #5b1aa0 !important; color: #5b1aa0 !important; }
.ppip-t-photo-drop input[type="file"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	overflow: hidden !important;
}
.ppip-t-photo-preview img {
	width: 56px !important;
	height: 56px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	margin-top: 12px !important;
	border: 1px solid #e2e4e7 !important;
}

.ppip-t-form-msg {
	color: #d63638 !important;
	font-size: 13.5px !important;
	margin: 8px 0 4px !important;
	min-height: 1em;
}

.ppip-t-form-submit {
	width: 100% !important;
	display: block !important;
	background: #5b1aa0;
	color: #fff;
	padding: 14px !important;
	border-radius: 12px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	line-height: 1.2 !important;
	margin-top: 8px !important;
	box-shadow: 0 8px 20px rgba(91, 26, 160, .22) !important;
	transition: filter .15s, transform .15s !important;
}
.ppip-t-form-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ppip-t-form-submit:disabled { opacity: .65 !important; cursor: default !important; transform: none !important; }
.ppip-t-form-submit i { color: inherit !important; }

.ppip-t-form-success { text-align: center !important; padding: 30px 10px 14px !important; }
.ppip-t-success-icon { font-size: 56px !important; color: #1fa363 !important; line-height: 1; }
.ppip-t-form-success p { margin: 16px 0 0 !important; font-size: 16px !important; color: #241640 !important; line-height: 1.5; }

@media (max-width: 767px) {
	.ppip-t-modal { padding: 10px !important; }
	.ppip-t-modal-box { padding: 26px 20px 22px !important; border-radius: 16px; }
	.ppip-t-form-heading { font-size: 21px !important; }
}

/* ---------- Location heading widget ---------- */
.ppip-loc-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ppip-loc-heading-icon {
	display: inline-flex;
	align-items: center;
	color: #5b1aa0;
	font-size: 26px;
	line-height: 1;
}
.ppip-loc-heading-icon svg {
	width: 1em;
	height: 1em;
}
.ppip-loc-heading-text {
	margin: 0;
	line-height: 1.2;
}
.ppip-loc-prefix {
	font-weight: 600;
}
.ppip-loc-value {
	color: #5b1aa0;
	font-weight: 800;
}

/* ============ Add Funds form ============ */
.ppip-fund-wrap {
	max-width: 560px;
}
.ppip-fund-form {
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 16px;
	padding: 26px 26px 24px;
	box-shadow: 0 6px 22px rgba(20, 12, 40, .06);
}
.ppip-fund-heading {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
	color: #241640;
}
.ppip-fund-intro {
	margin: 0 0 18px;
	color: #6a6f7a;
	font-size: 14px;
}
.ppip-fund-field {
	margin-bottom: 16px;
}
.ppip-fund-label {
	display: block;
	font-weight: 600;
	margin-bottom: 7px;
	color: #241640;
	font-size: 14px;
}
.ppip-fund-mode {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}
.ppip-fund-mode-opt {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 1 1 200px;
	padding: 10px 13px;
	border: 1.5px solid #e2e0ea;
	border-radius: 10px;
	background: #fbfbfd;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	color: #241640;
	transition: border-color .15s, background .15s;
}
.ppip-fund-mode-opt:hover {
	border-color: #c9c4dd;
}
.ppip-fund-mode-opt input {
	margin: 0;
	accent-color: #6a3ff0;
}
.ppip-fund-mode-opt:has( input:checked ) {
	border-color: #6a3ff0;
	background: #f3efff;
}
.ppip-fund-existing,
.ppip-fund-new {
	transition: opacity .15s;
}
/* Locked until a mode is chosen. */
.ppip-fund-member[data-mode=""] .ppip-fund-existing {
	opacity: .5;
	pointer-events: none;
}
.ppip-fund-member[data-mode=""] .ppip-fund-new,
.ppip-fund-member[data-mode="existing"] .ppip-fund-new {
	display: none;
}
.ppip-fund-member[data-mode="new"] .ppip-fund-existing {
	display: none;
}
.ppip-fund-form .ppip-input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border: 1.5px solid #e2e0ea;
	border-radius: 10px;
	font-size: 14.5px;
	background: #fbfbfd;
	color: #241640;
	font-family: inherit;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.ppip-fund-form .ppip-input:focus {
	border-color: #5b1aa0;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(91, 26, 160, .12);
	outline: none;
}
.ppip-fund-form textarea.ppip-input {
	resize: vertical;
	min-height: 90px;
}

/* Amount presets */
.ppip-fund-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}
.ppip-fund-amt {
	flex: 0 0 auto;
	min-width: 64px;
	padding: 10px 16px;
	border: 1.5px solid #e2ddef;
	background: #f7f5fb;
	color: #3a2a5c;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.ppip-fund-amt:hover {
	border-color: #b79ee0;
}
.ppip-fund-amt.is-active {
	background: #5b1aa0;
	border-color: #5b1aa0;
	color: #fff;
	box-shadow: 0 4px 12px rgba(91, 26, 160, .22);
}

/* Built-in payment method radios */
.ppip-fund-methods .ppip-fund-method {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	font-size: 14px;
	color: #333;
	cursor: pointer;
}

.ppip-fund-msg {
	color: #d63638;
	font-size: 13.5px;
	margin: 6px 0 4px;
	min-height: 1em;
}
.ppip-fund-msg:not(.ppip-fund-error) {
	color: #5b1aa0;
}

.ppip-fund-submit {
	width: 100%;
	background: #5b1aa0;
	color: #fff;
	border: 0;
	padding: 14px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	margin-top: 6px;
	box-shadow: 0 8px 20px rgba(91, 26, 160, .22);
	transition: filter .15s, transform .15s;
}
.ppip-fund-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ppip-fund-submit:disabled { opacity: .65; cursor: default; transform: none; }

.ppip-fund-success {
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 16px;
	padding: 34px 26px;
	text-align: center;
	box-shadow: 0 6px 22px rgba(20, 12, 40, .06);
}
.ppip-fund-success-icon { font-size: 56px; color: #1fa363; line-height: 1; }
.ppip-fund-success p { margin: 16px 0 0; font-size: 16px; color: #241640; }

.ppip-fund-modal-close {
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #646970;
	padding: 0 4px;
}
.ppip-fund-modal-close:hover { color: #241640; }

/* ---------- Logout box ([ppip_logout]) ---------- */
.ppip-logout-box { max-width: 460px; }
.ppip-logout-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 12px;
}

/* ============ User dashboard — professional redesign ============ */
.ppip-dashboard { max-width: 860px; }

.ppip-dash-bar {
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 14px;
	padding: 20px 24px;
	box-shadow: 0 4px 16px rgba(20, 12, 40, .05);
	margin-bottom: 18px;
}
.ppip-dash-heading { min-width: 0; }
.ppip-dash-title {
	margin: 0 !important;
	font-size: 24px;
	font-weight: 800;
	color: #241640;
	line-height: 1.2;
}
.ppip-dash-welcome {
	margin: 4px 0 0;
	color: #6a6f7a;
	font-size: 14px;
}
.ppip-dash-bar .ppip-logout {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	transition: background .15s, color .15s;
}
.ppip-dash-bar .ppip-logout:hover { background: #fcf0f1; }

/* Tabs */
.ppip-dash-tabs {
	display: flex;
	gap: 6px;
	border-bottom: 2px solid #ececf1;
	margin-bottom: 22px;
	flex-wrap: wrap;
}
.ppip-dash-tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	padding: 11px 18px;
	font-size: 15px;
	font-weight: 700;
	color: #6a6f7a;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color .15s, border-color .15s;
}
.ppip-dash-tab:hover { color: #241640; }
.ppip-dash-tab.is-active {
	color: #5b1aa0;
	border-bottom-color: #5b1aa0;
}
.ppip-dash-tab i { font-size: 14px; }

/* Pane head + add button */
.ppip-dash-pane-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.ppip-dash-pane-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #241640;
	display: flex;
	align-items: center;
	gap: 9px;
}
.ppip-dash-count {
	background: #efe8fb;
	color: #5b1aa0;
	font-size: 13px;
	font-weight: 800;
	min-width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	border-radius: 999px;
	padding: 0 7px;
}
.ppip-dash-add,
.ppip-dash-add-lg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #5b1aa0;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	border-radius: 10px;
	padding: 11px 20px;
	box-shadow: 0 6px 16px rgba(91, 26, 160, .22);
	transition: filter .15s, transform .15s;
}
.ppip-dash-add:hover,
.ppip-dash-add-lg:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.ppip-dash-add-lg { font-size: 16px; padding: 14px 26px; margin-top: 6px; }

/* Empty state */
.ppip-dash-empty {
	background: #fff;
	border: 1px dashed #d8d2e6;
	border-radius: 16px;
	padding: 46px 24px;
	text-align: center;
}
.ppip-dash-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: linear-gradient(135deg, #efe8fb, #f6f1fd);
	color: #7c5bc0;
	font-size: 32px;
	margin-bottom: 16px;
}
.ppip-dash-empty-title {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
	color: #241640;
}
.ppip-dash-empty-text {
	margin: 0 0 18px;
	color: #6a6f7a;
	font-size: 15px;
}

/* Account tab */
.ppip-dash-account {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ppip-acct-card {
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 14px;
	padding: 22px 24px;
	box-shadow: 0 4px 16px rgba(20, 12, 40, .05);
}
.ppip-acct-h {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: #241640;
	display: flex;
	align-items: center;
	gap: 9px;
}
.ppip-acct-h i { color: #5b1aa0; }
.ppip-acct-table {
	width: 100%;
	border-collapse: collapse;
}
.ppip-acct-table th,
.ppip-acct-table td {
	text-align: left;
	padding: 9px 0;
	border-bottom: 1px solid #f1f0f5;
	font-size: 14.5px;
	vertical-align: top;
}
.ppip-acct-table th {
	color: #8a8f96;
	font-weight: 600;
	width: 40%;
	white-space: nowrap;
}
.ppip-acct-table td { color: #241640; word-break: break-word; }
.ppip-acct-table tr:last-child th,
.ppip-acct-table tr:last-child td { border-bottom: 0; }
.ppip-acct-note {
	margin: 0 0 14px;
	color: #6a6f7a;
	font-size: 14px;
}
.ppip-dash-account .ppip-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 560px) {
	.ppip-dash-bar { flex-direction: column; align-items: flex-start; }
	.ppip-dash-pane-head { align-items: stretch; }
	.ppip-dash-add { justify-content: center; }
}

/* ---------- Coupon box on the WooCommerce order-pay (checkout) page ---------- */
.ppip-oc {
	max-width: 520px;
	margin: 0 auto 18px;
	padding: 16px 18px;
	background: #f9f8fc;
	border: 1px solid #ece8f5;
	border-radius: 12px;
	font-family: Arial, Helvetica, sans-serif;
}
.ppip-oc-title {
	font-weight: 700;
	font-size: 15px;
	color: #241640;
	margin-bottom: 10px;
}
.ppip-oc-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ppip-oc-input {
	flex: 1 1 160px;
	min-width: 0;
	padding: 11px 13px;
	border: 1.5px solid #e2e0ea;
	border-radius: 9px;
	font-size: 14px;
	background: #fff;
	text-transform: uppercase;
	box-sizing: border-box;
}
.ppip-oc-apply {
	flex: 0 0 auto;
	border: 0;
	background: #241640;
	color: #fff;
	font-weight: 700;
	padding: 11px 22px;
	border-radius: 9px;
	cursor: pointer;
	transition: filter .15s;
}
.ppip-oc-apply:hover { filter: brightness(1.14); }
.ppip-oc-applied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #edfaef;
	border: 1px solid #bfe6c8;
	border-radius: 9px;
	padding: 10px 14px;
	margin-bottom: 6px;
}
.ppip-oc-code {
	font-weight: 700;
	color: #147a32;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.ppip-oc-remove {
	border: 0;
	background: none;
	color: #b32d2e;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	font-size: 13px;
}
.ppip-oc-msg {
	margin: 0 0 10px;
	font-size: 13.5px;
	color: #6a6f7a;
}
.ppip-oc-msg.ppip-oc-ok { color: #1d7a3e; font-weight: 600; }
.ppip-oc-msg.ppip-oc-err { color: #d63638; font-weight: 600; }

/* Date of Birth: Month / Day / Year dropdowns (mobile-friendly). */
.ppip-dob {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ppip-dob select {
	flex: 1 1 30%;
	min-width: 90px;
}
