.itemRoot {
    border-top: var(--border-width-sm) solid var(--border-color-alpha-white-10);
    color: var(--color-text-primary-inverted);
    width: 100%;
    box-sizing: border-box;

    &:last-child{
        border-bottom: var(--border-width-sm) solid var(--border-color-alpha-white-10);
    }
}

.itemRoot:last-child {
    border-bottom: none;
}

.itemHeader {
    display: flex;
    align-items: center;
    padding: var(--spacing-20) 0;
    align-self: stretch;
    cursor: pointer;
}

.itemContent {
    display: grid;
    grid-template-rows: 0fr;
    transition:
        grid-template-rows 0.3s,
        padding-bottom 0.3s;
    padding-bottom: 0;
}

.itemContentOpen {
    grid-template-rows: 1fr;
    padding-bottom: var(--spacing-20);
}

.itemContentInner {
    min-height: 0;
    overflow: hidden;
}

.arrow {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.arrowRotated {
    transform: rotate(180deg);
}

.leftIcon {
    display: flex;
    align-items: center;
    margin-right: var(--spacing-12);
}

.closeButtonWrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.linkList {
    list-style: none;
    margin: 0;
    padding: 0;
}

.linkItem {
    margin-bottom: var(--spacing-16);
    cursor: pointer;
}

.linkItem:last-child {
    margin-bottom: 0;
}

.link {
    color: var(--color-text-primary-inverted);
    text-decoration: none;
}

.link:hover {
    color: inherit;
    text-decoration: none;
}

@media (width < 1024px) {
    .itemRoot {
        max-width: 360px;
    }
}
@media (width < 768px) {
    .itemRoot {
        max-width: 100%;
    }
    .itemHeader {
        padding: var(--spacing-24) 0;
    }
    .itemContentOpen {
        padding-bottom: var(--spacing-24);
    }
    .linkItem {
        margin-bottom: var(--spacing-20);
    }
}
