/* PW Product Extra Info – frontend styles */

/* Accordion */
.product-details-accordion {
	border-top: 1px solid #e5e5e5;
	margin: 24px 0;
}
.accordion-item {
	border-bottom: 1px solid #e5e5e5;
}
.accordion-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 14px 4px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	user-select: none;
}
.accordion-arrow {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
	margin-left: 12px;
	flex-shrink: 0;
}
.accordion-title[aria-expanded="true"] .accordion-arrow {
	transform: rotate(-135deg);
}
.accordion-content {
	display: none;
	padding: 0 4px 18px;
	font-size: 14px;
	line-height: 1.6;
	color: #444;
}
.accordion-content.is-open {
	display: block;
}
.accordion-content p:last-child {
	margin-bottom: 0;
}

/* Size guide trigger button */
#open-size-guide-popup.open-size-guide-popup.open-size-guide-popup {
	background: none !important;
	border: 1px solid #048a83 !important;
	color: #048a83 !important;
	padding: 10px 18px;
	font-size: 13px;
	cursor: pointer;
	margin: 10px 0;
	display: inline-block;
}
#open-size-guide-popup.open-size-guide-popup.open-size-guide-popup:hover {
	background: #048a83 !important;
	color: #fff !important;
}

/* Popup / modal */
body.pw-pei-modal-open {
	overflow: hidden;
}
.size-guide-popup {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
	z-index: 100000;
	padding: 20px;
}
.size-guide-popup.active {
	opacity: 1;
	visibility: visible;
}
.size-guide-popup-content {
	background: #fff;
	max-width: 940px;
	width: 100%;
	max-height: 85vh;
	overflow: auto;
	border-radius: 6px;
	padding: 32px;
	position: relative;
}
.size-guide-popup-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}
.size-guide-popup-title {
	margin: 0 0 20px;
	font-size: 20px;
}

/* Optional tabs / unit switcher (only rendered if the pasted content uses them) */
.size-guide-tabs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 16px;
}
.size-guide-tabs-nav {
	display: flex;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.size-guide-tabs-nav a {
	text-decoration: none;
	color: #777;
	padding-bottom: 10px;
	display: inline-block;
	border-bottom: 2px solid transparent;
	font-size: 14px;
}
.size-guide-tabs-nav a.active {
	color: #111;
	border-color: #111;
	font-weight: 600;
}
.unit-switcher {
	display: flex;
	align-items: center;
	background: #f2f2f2;
	border-radius: 20px;
	padding: 3px;
	position: relative;
}
.unit-button {
	border: 0;
	background: none;
	padding: 5px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	z-index: 2;
	color: #777;
}
.unit-button.active {
	color: #fff;
}
.unit-toggle-slider-container {
	position: absolute;
	inset: 3px;
	width: calc(100% - 6px);
}
.unit-toggle-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	background: #111;
	border-radius: 16px;
	transition: transform 0.2s ease;
}
.size-guide-tab-content {
	display: none;
}
.size-guide-tab-content.active {
	display: block;
}
.size-guide-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.size-guide-table th,
.size-guide-table td {
	border: 1px solid #e5e5e5;
	padding: 8px 10px;
	text-align: center;
}
.size-guide-table thead th {
	background: #f7f7f7;
	font-weight: 600;
}
.measuring-guide-flex {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	align-items: flex-start;
}
.measuring-guide-image img {
	max-width: 220px;
	width: 100%;
	height: auto;
	display: block;
}
.measuring-guide-text ol {
	padding-left: 18px;
	margin: 0;
}
.measuring-guide-text li {
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 480px) {
	.size-guide-popup-content {
		padding: 22px;
	}
	.size-guide-tabs-nav {
		gap: 12px;
	}
}
