/**
 * Product page: Item details, Shipping and return policies, FAQs (inc/product-info.php).
 * Item details: left column, after the reviews and the shop block. Shipping + FAQs: right column, under
 * the Details panel, as compact panels. Builds on product.css (.tp-prose, .tp-h2 come from there / home.css).
 */

/* Left column order: reviews → Meet the shop → Item details */
.tp-pd__desc > .tp-reviews:first-child {
	margin-top: 0;
}

.tp-pd__desc > .tp-pd-desc {
	margin-top: 56px;
	padding-top: 48px;
	border-top: 1px solid var(--tp-hairline);
}

/* "You may also like" right after "More products" */
.tp-related + .tp-related {
	margin-top: 64px;
}

/* Right column panels (same look as the Details panel) */
.tp-pd__side .tp-info {
	padding: 22px 28px 24px;
	background: var(--tp-surface);
	border-radius: var(--tp-r-media);
	box-shadow: inset 0 0 0 1px var(--tp-hairline);
}

.tp-pd__side .tp-info + .tp-info {
	margin-top: 0;
	padding-top: 22px;
	border-top: 0;
}

.tp-pd__side .tp-info .tp-h2 {
	margin-bottom: 16px;
	font-size: 18px;
	font-weight: 600;
}

.tp-pd__side .tp-ship {
	gap: 14px;
}

.tp-pd__side .tp-ship li > .tp-icon {
	width: 20px;
	height: 20px;
}

.tp-pd__side .tp-ship .tp-ship__lead {
	font-size: 15px;
}

.tp-pd__side .tp-ship p {
	font-size: 13px;
}

.tp-pd__side .tp-info__link {
	margin-top: 16px;
	font-size: 14px;
}

.tp-pd__side .tp-faqs__item summary {
	padding: 13px 0;
	font-size: 15px;
}

.tp-pd__side .tp-faqs__item:first-child {
	border-top: 0;
}

.tp-pd__side .tp-faqs__item:last-child {
	border-bottom: 0;
}

.tp-pd__side .tp-faqs__answer {
	padding-right: 8px;
	font-size: 14px;
}

.tp-info + .tp-info {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid var(--tp-hairline);
}

.tp-info .tp-h2 {
	margin-bottom: 20px;
}

.tp-prose h3 {
	margin: 24px 0 10px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tp-ink);
}

/* Highlights */

.tp-info__highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.tp-info__highlights li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 14px;
	color: var(--tp-ink);
	background: var(--tp-surface);
	border-radius: var(--tp-r-pill);
}

.tp-info__highlights .tp-icon {
	width: 14px;
	height: 14px;
	color: var(--tp-primary);
}

.tp-info__highlights strong {
	font-weight: 600;
}

/* style.css gives page-level .tp-prose a centred, padded column; not here. */
.tp-more__body.tp-prose {
	margin: 0;
	padding: 0;
}

/* Show more / Show less: product-info.js clamps the body when it is taller than the limit */

.tp-more.is-clamped:not(.is-open) .tp-more__body {
	overflow: hidden;
	max-height: 360px;
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 96px), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 96px), transparent);
}

.tp-more__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--tp-ink);
	background: none;
	border: 0;
	cursor: pointer;
}

.tp-more__toggle[hidden] {
	display: none;
}

.tp-more__toggle:hover span {
	text-decoration: underline;
}

.tp-more__toggle .tp-icon {
	width: 14px;
	height: 14px;
	transform: rotate(90deg);
	transition: transform 0.2s var(--tp-ease);
}

.tp-more.is-open .tp-more__toggle .tp-icon {
	transform: rotate(-90deg);
}

/* Shipping and return policies */

.tp-ship {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-ship li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.tp-ship li > .tp-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	color: var(--tp-ink);
}

.tp-ship p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--tp-muted);
}

.tp-ship .tp-ship__lead {
	font-size: 16px;
	color: var(--tp-ink);
}

.tp-ship .tp-ship__lead + p {
	margin-top: 2px;
}

.tp-ship a {
	color: var(--tp-ink);
}

.tp-info__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 20px;
	font-size: 15px;
	font-weight: 600;
	color: var(--tp-ink);
	text-decoration: none;
}

.tp-info__link:hover {
	text-decoration: underline;
}

.tp-info__link .tp-icon {
	width: 14px;
	height: 14px;
}

/* FAQs: native <details> accordion */

.tp-faqs__item {
	border-bottom: 1px solid var(--tp-hairline);
}

.tp-faqs__item:first-child {
	border-top: 1px solid var(--tp-hairline);
}

.tp-faqs__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--tp-ink);
	list-style: none;
	cursor: pointer;
}

.tp-faqs__item summary::-webkit-details-marker {
	display: none;
}

.tp-faqs__item summary .tp-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	transition: transform 0.2s var(--tp-ease);
}

.tp-faqs__item[open] summary .tp-icon {
	transform: rotate(45deg);
}

.tp-faqs__answer {
	padding: 0 32px 16px 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--tp-muted);
}

.tp-faqs__answer p {
	margin: 0 0 8px;
}

.tp-faqs__answer p:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.tp-pd__side .tp-info {
		padding: 20px;
	}

	.tp-info + .tp-info {
		margin-top: 36px;
		padding-top: 32px;
	}

	.tp-more.is-clamped:not(.is-open) .tp-more__body {
		max-height: 300px;
	}
}
