/**
 * Stili per il frontend del plugin WooCommerce AutoScout24
 *
 * @link       https://www.lucamainieri.it
 * @since      1.0.0
 */



/*Stle Wrapper Container - Hook After Product*/

.woocommerce-autoscout24-wrapper{
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
	padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

/*Stle Wrapper Container - Hook After Product*/

/* Stile per Acordion */
.accordion-wrapper {
	margin-bottom: 10px;
	border: 1px solid #e0e0e0;
	overflow: hidden;
}

.spec-group.accordion-header {
	background-color: #f7f7f7;
	padding: 0.9em;
	cursor: pointer;
	margin: 0;
	position: relative;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.spec-group.accordion-header:after {
	content: '-';
	font-size: 20px;
	color: #666;
}

.spec-group.accordion-header.active:after {
	content: '+';
}

.as24-vehicle-specs.accordion-content {
	padding: 0;
	margin: 0;
}

.as24-vehicle-specs.accordion-content .row-as24:nth-child(odd) {
	background-color: #fff;
}

.as24-vehicle-specs.accordion-content .row-as24:nth-child(even) {
	background-color: #f9f9f9;
}

.as24-vehicle-specs.accordion-content .row-as24 {
	display: flex;
	padding: 0;
	border-bottom: 1px solid #f0f0f0;
	margin: 0;
}

.row-as24:last-child {
	border-bottom: none;
}

/* Fine Stile Accordion */

dl.row-as24 {
	display: flex;
}

.woocommerce-autoscout24-vehicle-details {
	margin: 2em 0;
}

.woocommerce-autoscout24-vehicle-details h3 {
	margin-top: 0;
	margin-bottom: 1em;
	font-size: 1.5em;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 0.5em;
	font-weight: 700;
}

.vehicle-details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1em;
}

.vehicle-detail {
	display: flex;
	flex-direction: column;
}

.detail-label {
	font-weight: bold;
	font-size: 0.9em;
	margin-bottom: 0.3em;
}

.detail-value {
	font-size: 1em;
}

/* Stile responsive */
@media screen and (max-width: 768px) {
	.vehicle-details-grid {
		grid-template-columns: 1fr;
	}
}

/* Stili per la tabella delle caratteristiche del veicolo */
.as24-vehicle-specs {
	width: 100%;
	margin: 20px 0;
	border-collapse: collapse;
	background-color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.as24-vehicle-specs .row-as24 {
	border-bottom: 1px solid #eee;
}

.as24-vehicle-specs .row-as24:nth-child(odd) {
	background-color: #f9f9f9;
}

.as24-vehicle-specs .row-as24:hover {
	background-color: #f5f5f5;
}

.as24-vehicle-specs .spec-label {
	font-weight: 600;
	color: #555;
	flex: 0 0 50%;
	padding: 0.9em;
}

.as24-vehicle-specs .spec-value {
	border-left: 1px solid #eee;
	flex: 0 1 50%;
	padding: 0.9em;
	margin: 0;
	word-break: break-word;
}

.as24-vehicle-specs .spec-group {
	background-color: #f0f0f0;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.9em;
	padding: 0.9em;
}

/* Responsive design */
@media screen and (max-width: 768px) {
	.as24-vehicle-specs {
		display: block;
		/*overflow-x: auto;*/
	}

	.as24-vehicle-specs th,
	.as24-vehicle-specs td {
		min-width: 150px;
	}
}
