/* Details / Care accordion — Figma node 97:1077.
   Brand colour is Oxygen's "Global blue" (#001f3d), which is also the chevron
   stroke in the export. */

.ilo-product-accordion {
	/* Sits inside form.cart between the variations and the quantity row, so it
	   also has that form's flex gap above and below it. */
	width: 100%;
	margin: 4px 0 24px;
}

/* "Clear Selection", relocated by product-accordion.js to sit under the
   accordion instead of inside table.variations. */
.ilo-product-accordion + .reset_variations,
.reset_variations.ilo-reset-variations {
	display: inline-block;
	margin: -12px 0 20px;
	padding: 0;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #2c2c2c;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ilo-product-accordion + .reset_variations:hover,
.reset_variations.ilo-reset-variations:hover {
	color: #001f3d;
}

/* Each item is its own card; 12px between them (1249 - 1177 - 60 in the design). */
.ilo-product-accordion .ac {
	margin: 0 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	box-sizing: border-box;
}

.ilo-product-accordion .ac:last-child {
	margin-bottom: 0;
}

.ilo-product-accordion .ac .ac-header {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: inherit;
	line-height: inherit;
}

.ilo-product-accordion .ac .ac-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 60px;
	margin: 0;
	padding: 12px 41px 12px 31px;
	border: 1px solid #f2f2f2;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 31.5px 30.5px 0 rgba(0, 0, 0, 0.02);
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #2c2c2c;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	position: relative;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Chevron: the exported 9x16 path, masked so it can be recoloured. The design
   rotates it 90deg so it points down when collapsed. */
.ilo-product-accordion .ac .ac-trigger::after {
	content: '';
	flex: 0 0 auto;
	position: static;
	top: auto;
	right: auto;
	width: 9px;
	height: 16px;
	background-color: #001f3d;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='16' viewBox='0 0 9 16' fill='none'%3E%3Cpath d='M1 1L8 8L1 15' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='16' viewBox='0 0 9 16' fill='none'%3E%3Cpath d='M1 1L8 8L1 15' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	transform: rotate(90deg);
	transition: transform 0.25s ease, background-color 0.2s ease;
}

/* Hover — brand colour */
.ilo-product-accordion .ac .ac-trigger:hover {
	border-color: #001f3d;
	color: #001f3d;
}

.ilo-product-accordion .ac .ac-trigger:focus-visible {
	outline: 2px solid #001f3d;
	outline-offset: 2px;
}

/* Open — brand colour fill, chevron flips to point up */
.ilo-product-accordion .ac.is-active .ac-trigger {
	background: #001f3d;
	border-color: #001f3d;
	color: #fff;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.ilo-product-accordion .ac.is-active .ac-trigger:hover {
	background: #00294f;
	border-color: #00294f;
	color: #fff;
}

.ilo-product-accordion .ac.is-active .ac-trigger::after {
	background-color: #fff;
	transform: rotate(-90deg);
}

/* Panel continues the card beneath the open header. */
.ilo-product-accordion .ac .ac-panel {
	background: #fff;
	border: 1px solid #f2f2f2;
	border-top: 0;
	border-radius: 0 0 3px 3px;
	box-shadow: 0 31.5px 30.5px 0 rgba(0, 0, 0, 0.02);
}

.ilo-product-accordion .ac-panel .ac-text {
	margin: 0;
	padding: 20px 31px;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #2c2c2c;
}

.ilo-product-accordion .ac-panel .ac-text p {
	margin: 0 0 10px;
}

.ilo-product-accordion .ac-panel .ac-text p:last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.ilo-product-accordion .ac .ac-trigger {
		padding: 12px 24px 12px 20px;
		font-size: 18px;
	}

	.ilo-product-accordion .ac-panel .ac-text {
		padding: 16px 20px;
	}
}
