/**
 * Grad Dent Core — frontend price blocks.
 */

.gd-price {
	--gd-price-border: #E3DDD0;
	--gd-price-bg: #F4F0E6;
	--gd-price-accent: #AE8F3D;
	font-size: 1rem;
	line-height: 1.5;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #3C463A;
}

.gd-price__search {
	margin-bottom: 1.25rem;
}

.gd-price__search-input {
	width: 100%;
	max-width: 420px;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--gd-price-border);
	border-radius: 4px;
	background: #fff;
}

.gd-price__category {
	border: 1px solid var(--gd-price-border);
	border-radius: 6px;
	margin-bottom: 0.75rem;
	background: #fff;
	overflow: hidden;
}

.gd-price__category-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 0;
	background: var(--gd-price-bg);
	cursor: pointer;
	text-align: left;
	font: inherit;
	font-weight: 600;
}

.gd-price__category-toggle:hover {
	color: var(--gd-price-accent);
}

.gd-price__category-count {
	font-weight: 400;
	opacity: 0.65;
	font-size: 0.875rem;
}

.gd-price__category-body {
	padding: 0.25rem 1rem 0.85rem;
}

.gd-price__category-body[hidden] {
	display: none;
}

.gd-price__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gd-price__item {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px dashed var(--gd-price-border);
}

.gd-price__item:last-child {
	border-bottom: 0;
}

.gd-price__item.is-hidden {
	display: none;
}

.gd-price__item-name {
	flex: 1 1 auto;
}

.gd-price__item-price {
	flex: 0 0 auto;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-style: normal;
	white-space: nowrap;
	color: var(--gd-price-accent);
}

.gd-price__title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
}

.gd-price__empty {
	opacity: 0.75;
}

.gd-price__more {
	margin-top: 1rem;
}

.gd-price__more-link {
	color: var(--gd-price-accent);
	font-weight: 600;
}

.gd-price--compact .gd-price__item {
	padding: 0.35rem 0;
	font-size: 0.95rem;
}

@media (max-width: 600px) {
	.gd-price__item {
		flex-direction: column;
		gap: 0.25rem;
	}
}
