.docomo-tech-specs-wrap {
	background-color: #f9f9f9;
}

.docomo-tech-specs-details {
	border-top: none;
}

.docomo-tech-specs-summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 48px 0.75rem;
	font-size: 20px;
	font-weight: 700;
	color: #c61d3a;
	cursor: pointer;
	list-style: none;
}

@media (min-width: 640px) {
	.docomo-tech-specs-summary {
		font-size: 24px;
	}

	.docomo-tech-specs-backtotop-btn {
		font-size: 24px !important;
	}
}

.docomo-tech-specs-summary::-webkit-details-marker {
	display: none;
}

.docomo-tech-specs-chevron {
	font-size: 2rem;
	line-height: 1;
}

.docomo-tech-specs-details[open] .docomo-tech-specs-chevron::before {
	content: "\f077"; /* fa-chevron-up */
}

.docomo-tech-specs-content {
	padding: 0;
}

.docomo-tech-specs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	padding: 0;
}

/* Mobile: horizontal divider between every section except the first */
.docomo-tech-specs-section {
	padding: 1.5rem 0;
}


.docomo-tech-specs-section:not(:first-child) {
	border-top: 1px solid #d3d3d3;
}

.docomo-tech-specs-section-title {
	margin: 0 0 2.5rem;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: #c61d3a;
}

.docomo-tech-specs-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.docomo-tech-specs-backtotop {
	margin-top: 96px;
	margin-bottom: 48px;
	text-align: center;
}

.docomo-tech-specs-backtotop-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	color: #c61d3a !important;
	font-weight: 400;
	font-size: 16px;
	text-decoration: none;
}


.docomo-tech-specs-backtotop-btn span {
	text-decoration: underline;
}

.docomo-tech-specs-backtotop-btn:hover {
	color: #8b0f22 !important;
}

.docomo-tech-specs-backtotop-btn:hover span {
	text-decoration: none;
}

.docomo-tech-specs-backtotop-btn i {
	transition: transform 0.5s ease;
}

.docomo-tech-specs-backtotop-btn:hover i {
	transform: translateY(-8px);
}

.docomo-tech-specs-label,
.docomo-tech-specs-value {
	font-size: 14px;
	color: #333;
}

@media (min-width: 992px) {
	.docomo-tech-specs-grid {
		grid-template-columns: 1fr 1fr;
		gap: 0;
	}

	/* Odd (left col): no left padding, right padding for gap, border-right if next sibling exists */
	.docomo-tech-specs-section:nth-child(odd) {
		padding-left: 0;
		padding-right: 2rem;
		border-top: none;
	}

	.docomo-tech-specs-section:nth-child(odd):has(+ .docomo-tech-specs-section) {
		border-right: 2px solid #b6b6b6;
	}

	/* Even (right col): padding-left, no border-right, clear mobile border-top */
	.docomo-tech-specs-section:nth-child(even) {
		padding-left: 2rem;
		padding-right: 0;
		border-top: none;
	}

	/* Last row has one item only (odd, no even sibling): add border-right */
	.docomo-tech-specs-section:nth-child(odd):last-child {
		border-right: 2px solid #b6b6b6;
	}

	/* Border-bottom between rows: odd section when another odd section follows */
	.docomo-tech-specs-section:nth-child(odd):has(~ .docomo-tech-specs-section:nth-child(odd)) {
		border-bottom: 2px solid #b6b6b6;
	}

	/* Border-bottom on even section when it is not the last child */
	.docomo-tech-specs-section:nth-child(even):not(:last-child) {
		border-bottom: 2px solid #b6b6b6;
	}

	/* Last section must never have border-bottom */
	.docomo-tech-specs-section:last-child {
		border-bottom: none !important;
	}

	/* Odd section paired with an empty even last-child must also have no border-bottom */
	.docomo-tech-specs-section:nth-child(odd):has(+ .docomo-tech-specs-section:last-child) {
		border-bottom: none !important;
	}

	/* First row sections: no padding-top on desktop (2-column) only */
	.docomo-tech-specs-section:nth-child(1),
	.docomo-tech-specs-section:nth-child(2) {
		padding-top: 0 !important;
	}
}
