.kpt-accordion {
border-radius: 8px;
margin-right: 10px;
}
.kpt-accordion__item+.kpt-accordion__item {
border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.kpt-accordion--compact .kpt-accordion__item+.kpt-accordion__item {
margin-top: 0;
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.kpt-accordion__title-wrap {
display: flex;
align-items: center;
gap: .5rem;
}
.kpt-accordion__title-icon {
width: 18px;
height: 18px;
color: #000; display: inline-flex;
}
.kpt-accordion__title {
margin: 0;
}
.kpt-accordion__header {
margin: 0;
font-size: 1rem;
line-height: 1rem;
}
.kpt-accordion__trigger {
width: 100%;
text-align: left;
border: 0;
background: none;
padding: 1rem 0;
font-size: 1rem;
line-height: 1.4;
font-weight: 600;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
cursor: pointer;
}
.kpt-accordion__trigger br {
display: none;
}
.kpt-accordion--compact .kpt-accordion__trigger {
padding: 0.45rem 0;
font-size: 0.9rem;
line-height: 1.25;
gap: 0.5rem;
}
.kpt-accordion__trigger:focus-visible {
outline: 2px solid currentColor;
outline-offset: 4px;
}
.kpt-accordion__icon {
position: relative;
flex: 0 0 1.25rem;
height: 1.25rem;
}
.kpt-accordion--compact .kpt-accordion__icon {
flex-basis: 0.9rem;
height: 0.9rem;
}
.kpt-accordion__icon::before,
.kpt-accordion__icon::after {
content: '';
position: absolute;
inset: 0;
margin: auto;
width: 1.25rem;
height: 2px;
background-color: currentColor;
transition: transform 0.2s ease;
}
.kpt-accordion__icon::after {
transform: rotate(90deg);
}
.kpt-accordion__trigger[aria-expanded="true"] .kpt-accordion__icon::after {
transform: rotate(0deg);
}
.kpt-accordion__content {
overflow: hidden;
}
.kpt-accordion__inner {
padding: 0 0 1rem 0;
color: inherit;
}
.kpt-accordion--compact .kpt-accordion__inner {
padding-bottom: 0.35rem;
}
.kpt-accordion--compact .kpt-accordion__inner>*:first-child {
margin-top: 0;
}
.kpt-accordion--compact .kpt-accordion__inner>*:last-child {
margin-bottom: 0;
}
.kpt-accordion__content[hidden] {
display: none;
}