.faq {
width: 100%;
interpolate-size: allow-keywords;
}
.faq__list {
display: grid;
gap: 0;
}
.faq__item {
border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.faq__item:first-child {
border-top: 1px solid rgba(0, 0, 0, 0.18);
}
.faq__question {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1.15rem 0;
cursor: pointer;
list-style: none;
font-family: var(--wp--preset--font-family--outfit);
font-size: var(--wp--preset--font-size--4);
font-weight: 500;
line-height: 1.35;
color: var(--wp--preset--color--custom-default);
transition: color 0.25s ease;
}
.faq__question:hover,
.faq__question:focus-visible,
.faq__item[open] > .faq__question {
color: var(--wp--preset--color--custom-primary);
}
.faq__question::-webkit-details-marker {
display: none;
}
.faq__question::marker {
content: '';
}
.faq__question::after {
content: '';
width: 22px;
height: 22px;
flex-shrink: 0;
background:
linear-gradient(var(--wp--preset--color--custom-primary), var(--wp--preset--color--custom-primary)) center / 22px 2.5px no-repeat,
linear-gradient(var(--wp--preset--color--custom-primary), var(--wp--preset--color--custom-primary)) center / 2.5px 22px no-repeat;
transition: transform 0.3s ease;
}
.faq__item[open] > .faq__question::after {
transform: rotate(45deg);
}
.faq__answer {
padding: 0 2rem 1.25rem 0;
font-size: var(--wp--preset--font-size--3);
line-height: 1.55;
}
.faq__answer > :first-child {
margin-top: 0;
}
.faq__answer > :last-child {
margin-bottom: 0;
}
.faq__item::details-content {
height: 0;
overflow: clip;
transition: height 0.35s ease, content-visibility 0.35s allow-discrete;
}
.faq__item[open]::details-content {
height: auto;
}
@starting-style {
.faq__item[open]::details-content {
height: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.faq__question,
.faq__question::after,
.faq__item::details-content {
transition: none;
}
}