.root {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px 24px;
    position: relative;
    background-color: var(--color-bg-base-light);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    cursor: pointer;
}

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

.closeButton {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 4px;
    transform: rotate(0);
    transition: transform 0.3s ease-in-out;
}

.closeButton.closeButtonActive {
    transform: rotate(45deg);
}

.description {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    width: 100%;
    transition:
        grid-template-rows 0.3s,
        padding-top 0.3s;

    strong,
    b {
        font-weight: var(--font-weight-bold);
    }
}

.descriptionInner {
    min-height: 0;
}

.descriptionShow {
    grid-template-rows: 1fr;
}

.root::before,
.root::after {
    content: '';
    position: absolute;
    height: var(--border-width-sm);
    background-color: var(--border-color-light);
}

.root::before {
    top: 0;
    left: 12px;
    right: 12px;
}

.root::after {
    bottom: 0;
    left: 12px;
    right: 12px;
}

.leftBorder,
.rightBorder {
    position: absolute;
    width: var(--border-width-sm);
    background-color: var(--border-color-light);
}

.leftBorder {
    top: 8px;
    bottom: 8px;
    left: 0;
}

.rightBorder {
    top: 8px;
    bottom: 8px;
    right: 0;
}

@media (width <= 768px) {
    .root {
        /* 1px is for not to hide ::before pseudo element */
        padding: 1px 0 16px;
    }

    .header {
        gap: 12px;
        padding: 28px 12px 12px;
        margin: 0 1px;
        z-index: 1;
    }

    .headerSticky {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .description {
        padding: 0 12px;
    }

    .descriptionShow {
        padding-top: 12px;
    }

    .root::before {
        top: 0;
        left: 8px;
        right: 8px;
    }

    .root::after {
        bottom: 0;
        left: 8px;
        right: 8px;
    }

    .leftBorder {
        top: 4px;
        bottom: 4px;
        left: 0;
    }

    .rightBorder {
        top: 4px;
        bottom: 4px;
        right: 0;
    }
}
