/* 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;
}

.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;
}

/* ---------- 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:hover {
	background: #f3f0fb;
}

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

.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 (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 {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #d8dadd;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 14px;
}

.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;
}
