/**
 * Full Page Mode single product: gallery | summary | buy box, then tabs.
 * Markup: templates/product-page.php. Loaded only on full product pages.
 * Sizes and colours follow the approved design reference
 * (paypros-single-product-woocommerce-preview.html).
 */

.ppm-pp {
	--pp-blue: #1463ff;
	--pp-btn-blue: #1162ff;
	--pp-green: #12b85f;
	--pp-text: #10192f;
	--pp-muted: #69738a;
	--pp-line: #e7ebf3;
	--pp-orange: #ff9b00;
	color: var(--pp-text);
}

.ppm-pp__top {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.9fr) 300px;
	gap: 36px;
	align-items: start;
}

/* Gallery — WooCommerce's slider/lightbox, filling the column. */
.ppm-pp .woocommerce-product-gallery {
	position: relative;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.ppm-pp .flex-viewport,
.ppm-pp .woocommerce-product-gallery__wrapper {
	border: 1px solid var(--pp-line);
	border-radius: 7px;
	overflow: hidden;
	background: #0b1736;
}

.ppm-pp .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: 445px;
	object-fit: contain;
}

.ppm-pp .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
}

.ppm-pp .flex-control-thumbs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 4 * 14px) / 5);
	gap: 14px;
	margin: 16px 0 0 !important;
	padding: 2px 2px 6px !important;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
}

.ppm-pp .flex-control-thumbs li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	scroll-snap-align: start;
}

.ppm-pp .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: 82px;
	object-fit: cover;
	border: 1px solid var(--pp-line);
	border-radius: 6px;
	opacity: 0.8;
	cursor: pointer;
}

.ppm-pp .flex-control-thumbs img:hover,
.ppm-pp .flex-control-thumbs img.flex-active {
	outline: 2px solid var(--pp-blue);
	opacity: 1;
}

.ppm-pp .flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppm-pp .flex-direction-nav a {
	position: absolute;
	top: 200px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgb(255 255 255 / 94%);
	box-shadow: 0 2px 10px rgb(16 25 47 / 20%);
	color: transparent;
	font-size: 0;
}

.ppm-pp .flex-direction-nav a::before {
	content: "";
	width: 10px;
	height: 10px;
	margin-left: 4px;
	border: solid var(--pp-text);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(135deg);
}

.ppm-pp .flex-direction-nav .flex-next::before {
	margin: 0 4px 0 0;
	transform: rotate(-45deg);
}

.ppm-pp .flex-direction-nav .flex-prev {
	left: 14px;
}

.ppm-pp .flex-direction-nav .flex-next {
	right: 14px;
}

.ppm-pp .flex-direction-nav .flex-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.ppm-pp .flex-direction-nav a:focus-visible {
	outline: 3px solid var(--ppm-focus, #f59e0b);
	outline-offset: 2px;
}

/* Summary */
.ppm-pp__summary .ppm-badge {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 9px;
	border-radius: 5px;
	background: #1060ff;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.ppm-pp__title {
	margin: 0 0 7px;
	font-size: 31px;
	line-height: 1.2;
	color: var(--pp-text);
}

.ppm-pp__subtitle {
	margin: 0 0 15px;
	font-size: 16px;
	color: #58657b;
}

.ppm-pp__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	font-size: 14px;
}

.ppm-pp__meta .ppm-rating {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	--ppm-star: var(--pp-orange);
	--ppm-star-size: 20px;
}

.ppm-pp__meta a,
.ppm-pp__meta .ppm-muted {
	color: inherit;
}

.ppm-pp__excerpt {
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.65;
	color: #4c5870;
}

.ppm-pp__excerpt p {
	margin: 0 0 0.6em;
}

.ppm-pp__platforms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #68758c;
}

.ppm-pp__platform svg {
	display: block;
	width: 30px;
	height: 30px;
	color: #2462e8;
}

.ppm-pp__details {
	margin: 0 0 18px;
	padding: 15px 18px;
	border: 1px solid var(--pp-line);
	border-radius: 8px;
	background: #f7f9fd;
}

.ppm-pp__details > div {
	display: grid;
	grid-template-columns: 150px 1fr;
	padding: 6px 0;
	font-size: 14px;
}

.ppm-pp__details dt {
	color: #67738b;
}

.ppm-pp__details dd {
	margin: 0;
	font-weight: 700;
}

/* Buttons — the reference's .btn family, applied to the plugin's buttons here only. */
.ppm-pp .ppm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 48px;
	min-height: 0;
	padding: 0 14px;
	border: 1px solid #cdd9ff;
	border-radius: 6px;
	background: #fff;
	color: #0f5dee;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
}

.ppm-pp .ppm-btn .ppm-icon {
	width: 18px;
	height: 18px;
}

.ppm-pp .ppm-btn--primary {
	border-color: var(--pp-btn-blue);
	background: var(--pp-btn-blue);
	color: #fff;
}

.ppm-pp .ppm-btn--primary:hover {
	background: #0a4fd6;
	color: #fff;
}

.ppm-pp .ppm-btn--success {
	border-color: var(--pp-green);
	background: var(--pp-green);
	color: #fff;
}

.ppm-pp .ppm-btn--success:hover {
	background: #0e9a4f;
	color: #fff;
}

.ppm-pp .ppm-btn--outline:hover {
	background: #f3f7ff;
}

.ppm-pp .ppm-btn:focus-visible {
	outline: 3px solid var(--ppm-focus, #f59e0b);
	outline-offset: 2px;
}

.ppm-pp__actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 12px;
}

.ppm-pp__actions--secondary {
	grid-template-columns: 1fr 1fr;
}

.ppm-pp__actions--secondary .ppm-btn {
	height: 46px;
	border-color: #d9e0eb;
	color: #25314a;
	font-weight: 600;
}

.ppm-pp__actions--secondary .ppm-btn:hover {
	background: #f7f9fd;
}

/* Price card + perks */
.ppm-pp__buy,
.ppm-pp__trust {
	padding: 17px;
	border: 1px solid var(--pp-line);
	border-radius: 8px;
	background: #fff;
}

.ppm-pp__price {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.ppm-pp__price-amount {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	font-size: 28px;
	font-weight: 800;
	color: var(--pp-text);
}

.ppm-pp__price-amount ins {
	order: -1;
	text-decoration: none;
}

.ppm-pp__price-amount del {
	font-size: 16px;
	font-weight: 400;
	color: #8590a4;
}

.ppm-pp__off {
	margin-left: auto;
	padding: 7px 9px;
	border-radius: 5px;
	background: #ff3a3a;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

.ppm-pp-ticks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppm-pp-ticks li {
	padding: 6px 0;
	font-size: 13px;
	color: #37425a;
}

.ppm-pp-ticks li::before {
	content: "✓";
	margin-right: 10px;
	color: #10b860;
	font-weight: 800;
}

.ppm-pp__points {
	margin-bottom: 18px;
}

.ppm-pp__buy .ppm-btn--block {
	display: flex;
	width: 100%;
	margin: 6px 0;
}

.ppm-pp__secure {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--pp-line);
	font-size: 13px;
}

.ppm-pp__secure p {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.ppm-pp__secure .ppm-icon {
	width: 15px;
	height: 15px;
}

.ppm-pp__gateways {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.ppm-pp__gateways li {
	display: inline-flex;
	align-items: center;
	padding: 6px 9px;
	border: 1px solid var(--pp-line);
	border-radius: 4px;
	background: #fff;
	font-size: 11px;
	font-weight: 700;
}

.ppm-pp__gateways img {
	width: auto;
	max-height: 20px;
	margin: 0 !important;
}

.ppm-pp__trust {
	margin: 14px 0 0;
	padding: 12px 16px;
	list-style: none;
}

.ppm-pp__trust li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 9px 0;
}

.ppm-pp__trust-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #edf3ff;
	color: var(--pp-blue);
}

.ppm-pp__trust-icon .ppm-icon {
	width: 18px;
	height: 18px;
}

.ppm-pp__trust strong {
	display: block;
	font-size: 13px;
}

.ppm-pp__trust small {
	display: block;
	color: #7b879b;
}

/* Tabs */
.ppm-pp__tabs {
	margin-top: 28px;
	border: 1px solid var(--pp-line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.ppm-pp__tabs .ppm-tabs__list {
	gap: 20px;
	padding: 0 12px;
	border-bottom: 1px solid var(--pp-line);
	background: #f9fbff;
}

.ppm-pp__tabs .ppm-tabs__tab {
	padding: 18px 16px;
	border-bottom: 3px solid transparent;
	color: #58667d;
	font-weight: 600;
}

.ppm-pp__tabs .ppm-tabs__tab[aria-selected="true"] {
	color: #115eff;
	border-bottom-color: #115eff;
}

.ppm-pp__tabs .ppm-tabs__panel {
	padding: 28px 24px;
}

.ppm-pp-about {
	display: grid;
	grid-template-columns: 1.5fr 0.9fr;
	gap: 35px;
}

.ppm-pp-about__main h2 {
	margin-top: 0;
	font-size: 22px;
}

.ppm-pp-about__main p,
.ppm-pp-about__main li {
	line-height: 1.7;
	color: #4e5b72;
}

.ppm-pp-about__cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-content: start;
}

.ppm-pp-about__card {
	padding: 18px;
	border: 1px solid var(--pp-line);
	border-radius: 7px;
	background: #fcfdff;
}

.ppm-pp-about__card h3 {
	margin: 0 0 12px;
	font-size: 16px;
}

.ppm-pp-about__card .ppm-pp-ticks li {
	color: #46536a;
}

.ppm-pp-faq details {
	padding: 14px 0;
	border-bottom: 1px solid var(--pp-line);
}

.ppm-pp-faq summary {
	font-weight: 600;
	cursor: pointer;
}

.ppm-pp-faq details > p {
	margin: 8px 0 0;
	color: #4e5b72;
}

@media (max-width: 1200px) {
	.ppm-pp__top {
		grid-template-columns: 1fr 1fr;
	}

	.ppm-pp__side {
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.ppm-pp__trust {
		margin-top: 0;
	}
}

@media (max-width: 900px) {
	.ppm-pp__top,
	.ppm-pp-about {
		grid-template-columns: 1fr;
	}

	.ppm-pp__side {
		display: block;
		grid-column: auto;
	}

	.ppm-pp__trust {
		margin-top: 14px;
	}

	.ppm-pp .woocommerce-product-gallery__image img {
		height: 360px;
	}

	.ppm-pp .flex-direction-nav a {
		top: 160px;
	}

	.ppm-pp__actions,
	.ppm-pp__actions--secondary {
		grid-template-columns: 1fr;
	}

	.ppm-pp__tabs .ppm-tabs__list {
		overflow-x: auto;
		white-space: nowrap;
	}
}

@media (max-width: 560px) {
	.ppm-pp-about__cards {
		grid-template-columns: 1fr;
	}

	.ppm-pp .woocommerce-product-gallery__image img {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.ppm-pp .flex-control-thumbs {
		grid-auto-columns: calc((100% - 3 * 10px) / 3.5);
		gap: 10px;
	}

	.ppm-pp .flex-control-thumbs img {
		height: 60px;
	}
}
