.expand-block {
    width: 100%;
    margin: 16px 0;
    border-radius: 3px;
    background-color: #fff;
    border: 1px solid #000;
    overflow: hidden;
}

.expand-block > summary {
    list-style: none;
}
.expand-block > summary::-webkit-details-marker {
    display: none;
}

.expand-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: medium;
    font-weight: 600;
    line-height: 1.4;
}

.expand-title {
    flex: 1;
    margin-right: 12px;
}

.expand-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.expand-icon::before,
.expand-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background-color: #000;
    border-radius: 999px;
    transform-origin: center;
    transition: transform 0.2s ease;
}

.expand-icon::before {
    transform: translate(-50%, -50%) rotate(90deg);
}
.expand-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.expand-block[open] .expand-icon::before {
    transform: translate(-50%, -50%) rotate(0deg);
}

.expand-content-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.expand-content {
    padding: 0 20px 16px 20px;
    font-size: medium;
}

.expand-content-inner > *:first-child {
    margin-top: 0;
}
.expand-content-inner > *:last-child {
    margin-bottom: 0;
}
.expand-content-inner ul,
.expand-content-inner ol {
    margin: 0.5em 0;
    padding-left: 1.4em;
}
.expand-content-inner table {
    margin: 0.75em 0;
    width: 100%;
}

.expand-block-editor {
    border-style: dashed;
}
.expand-block-editor .expand-block {
    overflow: visible;
}
.expand-block-editor .expand-content {
    max-height: none;
    overflow: visible;
}
.expand-block-editor .block-editor-inner-blocks,
.expand-block-editor .block-editor-block-list__layout {
    min-height: 2.5em;
}

.expand-title-input {
    width: 100%;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .expand-toggle {
        padding: 14px 16px;
    }
    .expand-content {
        padding: 0 16px 14px 16px;
    }
}
