/**
 * DPC Dronavia Services Block — Styles
 * Matches the validated preview mockup.
 */

/* ── Container ── */
.dpc-services-block {
	background: #fff;
	border: 2px solid #0057A8;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	font-family: inherit;
}

/* ── Header ── */
.dpc-services-header {
	background: linear-gradient(135deg, #0057A8 0%, #003D75 100%);
	color: #fff;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dpc-services-header-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dpc-services-icon {
	font-size: 18px;
}

.dpc-services-header h3 {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0;
	padding: 0;
	line-height: 1.3;
}

.dpc-services-optional-tag {
	background: rgba(255, 255, 255, 0.2);
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ── Group labels ── */
.dpc-service-group-label {
	font-size: 11px;
	font-weight: 700;
	color: #ADB5BD;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 10px 18px 4px;
	background: #F8F9FA;
	border-bottom: 1px solid #F1F3F5;
	border-top: 1px solid #DEE2E6;
}

.dpc-service-group-label:first-of-type {
	border-top: none;
}

/* ── Service item (label wraps the whole row) ── */
.dpc-service-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #F1F3F5;
	cursor: pointer;
	transition: background 0.15s;
	margin: 0;
	-webkit-user-select: none;
	user-select: none;
}

.dpc-service-item:hover {
	background: #F8F9FA;
}

.dpc-service-item:last-of-type {
	border-bottom: none;
}

/* ── Checkbox (custom) ── */
.dpc-service-checkbox-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.dpc-service-checkbox {
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 2px solid #CED4DA;
	border-radius: 4px;
	margin-top: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	background: #fff;
}

.dpc-service-checkbox-input:checked + .dpc-service-checkbox {
	background: #0057A8;
	border-color: #0057A8;
}

.dpc-service-checkbox-input:checked + .dpc-service-checkbox::after {
	content: '\2713';
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.dpc-service-checkbox-input:focus-visible + .dpc-service-checkbox {
	outline: 2px solid #0057A8;
	outline-offset: 2px;
}

/* ── Service content ── */
.dpc-service-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dpc-service-name {
	font-size: 13.5px;
	font-weight: 600;
	color: #212529;
	line-height: 1.3;
}

.dpc-service-desc {
	font-size: 12px;
	color: #6C757D;
	line-height: 1.45;
}

/* ── Badges ── */
.dpc-service-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.dpc-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 10.5px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 3px;
	white-space: nowrap;
}

.dpc-badge--atelier {
	background: #E8F1FA;
	color: #003D75;
}

.dpc-badge--postal {
	background: #E6F5EB;
	color: #1B8A3D;
}

.dpc-badge--annual {
	background: #FDEAEA;
	color: #D32F2F;
}

/* ── Price ── */
.dpc-service-price {
	font-size: 14px;
	font-weight: 700;
	color: #212529;
	white-space: nowrap;
	text-align: right;
	margin-top: 2px;
	line-height: 1.3;
}

.dpc-service-price small {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: #6C757D;
}

/* ── Total bar ── */
.dpc-services-total {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 18px;
	background: #F8F9FA;
	border-top: 2px solid #DEE2E6;
}

.dpc-services-total-label {
	font-size: 13px;
	font-weight: 600;
	color: #6C757D;
}

.dpc-services-total-amount {
	font-size: 18px;
	font-weight: 700;
	color: #212529;
}

.dpc-services-total-vat {
	font-size: 12px;
	color: #6C757D;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.dpc-services-header {
		padding: 12px 14px;
	}

	.dpc-service-item {
		padding: 12px 14px;
	}

	.dpc-service-name {
		font-size: 13px;
	}

	.dpc-service-price {
		font-size: 13px;
	}

	.dpc-services-total {
		flex-wrap: wrap;
		gap: 4px;
	}
}
