/**
 * GBP Product Details Widget Styles
 *
 * Two-column specifications layout with collapsible "More specifications" section.
 * All classes are prefixed with gbp-pd- for namespacing.
 */

/* ==========================================================================
   Container
   ========================================================================== */

.gbp-pd {
	width: 100%;
}

.gbp-pd__placeholder {
	padding: 40px;
	text-align: center;
	background-color: #f5f5f5;
	border: 2px dashed #ddd;
	border-radius: 8px;
}

.gbp-pd__placeholder p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

/* ==========================================================================
   Title
   ========================================================================== */

.gbp-pd__title {
	margin: 0 0 30px 0;
	padding: 0;
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

/* ==========================================================================
   Specification Rows
   ========================================================================== */

.gbp-pd__primary,
.gbp-pd__more {
	width: 100%;
}

.gbp-pd__row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 0 solid transparent;
}

.gbp-pd__row:last-child {
	border-bottom: none;
}

/* ==========================================================================
   Label
   ========================================================================== */

.gbp-pd__label {
	width: 200px;
	min-width: 200px;
	flex-shrink: 0;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.5;
}

/* ==========================================================================
   Value
   ========================================================================== */

.gbp-pd__value {
	flex: 1;
	font-weight: 400;
	color: #4a4a4a;
	line-height: 1.5;
	word-break: break-word;
}

.gbp-pd__value p {
	margin: 0;
}

.gbp-pd__value p + p {
	margin-top: 8px;
}

/* ==========================================================================
   Toggle Button
   ========================================================================== */

.gbp-pd__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.5;
	transition: opacity 0.2s ease;
}

.gbp-pd__toggle:hover {
	opacity: 0.7;
}

.gbp-pd__toggle:focus {
	outline: 0;
}

.gbp-pd__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.gbp-pd__toggle-text {
	display: inline;
}

.gbp-pd__toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.gbp-pd__toggle-icon svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

.gbp-pd__toggle--expanded .gbp-pd__toggle-icon {
	transform: rotate(90deg);
}

/* ==========================================================================
   More Specifications Section
   ========================================================================== */

.gbp-pd__more {
	overflow: hidden;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
	max-height: 0;
	opacity: 0;
}

.gbp-pd__more[hidden] {
	display: block !important;
	visibility: hidden;
	max-height: 0;
	opacity: 0;
}

.gbp-pd__more--expanded,
.gbp-pd__more:not([hidden]) {
	max-height: 5000px;
	opacity: 1;
	visibility: visible;
	margin-top: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
	.gbp-pd__title {
		font-size: 24px;
		margin-bottom: 24px;
	}

	.gbp-pd__row {
		flex-direction: column;
		gap: 4px;
		padding: 12px 0;
	}

	.gbp-pd__label {
		width: 100%;
		min-width: unset;
	}

	.gbp-pd__toggle {
		font-size: 15px;
		margin-top: 20px;
	}
}

/* ==========================================================================
   Elementor Editor
   ========================================================================== */

.elementor-editor-active .gbp-pd__placeholder {
	min-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
}
