.wp-block-divein-expandable {
    position: relative;
    --expandable-fade-color: var(--color-background, #fff);
    --toggle-bg: transparent;
    --toggle-color: var(--color-primary);
    --toggle-hover-color: var(--color-primary-hover);
}




.wp-block-divein-expandable.is-style-box-beige {
    --expandable-fade-color: var(--beige-50);
    --toggle-bg: var(--beige-700);
    --toggle-color: var(--beige-50);
    --toggle-hover-color: var(--beige-5);
}

.wp-block-divein-expandable.is-style-box-lightblue {
    --expandable-fade-color: var(--lightblue-50);
    --toggle-bg: var(--lightblue-800);
    --toggle-color: var(--lightblue-50);
    --toggle-hover-color: var(--lightblue-5);
}

.wp-block-divein-expandable.is-style-box-green {
    --expandable-fade-color: var(--green-50);
    --toggle-bg: var(--green-700);
    --toggle-color: var(--green-50);
    --toggle-hover-color: var(--green-5);
}

.wp-block-divein-expandable.is-style-box-darkblue {
    --expandable-fade-color: var(--blue-900);
    --toggle-bg: var(--beige-50);
    --toggle-color: var(--blue-900);
    --toggle-hover-color: var(--blue-800);
}

.wp-block-divein-expandable.is-style-box-animated-bg {
    --expandable-fade-color: var(--lightblue-100);
    --toggle-bg: var(--blue-800);
    --toggle-color: var(--lightblue-50);
    --toggle-hover-color: var(--lightblue-5);
}

.wp-block-divein-expandable.is-style-box-animated-border {
    --toggle-bg: var(--blue-800);
    --toggle-color: var(--lightblue-50);
    --toggle-hover-color: var(--lightblue-5);
}

.wp-block-divein-expandable.is-style-box-animated-blue-border {
    --toggle-bg: var(--blue-800);
    --toggle-color: var(--lightblue-50);
    --toggle-hover-color: var(--lightblue-5);
}



.wp-block-divein-expandable .expandable-content {
    overflow: hidden;
    transition: max-height 400ms ease;
}


.wp-block-divein-expandable .expandable-content > * + * {
    margin-block-start: var(--wp--preset--spacing--lg);
}

.wp-block-divein-expandable .expandable-content > *:first-child {
    margin-block-start: 0;
}

.wp-block-divein-expandable .expandable-content > *:last-child {
    margin-block-end: 0;
}


.wp-block-divein-expandable[class*="is-style-box-"] .expandable-content {
    position: relative;
    border-radius: 0 0 var(--radius) var(--radius);
}



.wp-block-divein-expandable .expandable-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--expandable-fade-color));
    pointer-events: none;
    transition: opacity 300ms ease;
    
    z-index: 1;
}


.wp-block-divein-expandable:not(.is-expanded) .expandable-fade {
    bottom: 24px;
}


.wp-block-divein-expandable[class*="is-style-box-"] .expandable-fade {
    display: none;
}


.wp-block-divein-expandable[class*="is-style-box-"]:not(.is-expanded) .expandable-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--expandable-fade-color));
    pointer-events: none;
    z-index: 1;
}


.wp-block-divein-expandable.is-style-box-animated-bg:not(.is-expanded) .expandable-content::after {
    display: none;
}


.wp-block-divein-expandable.is-expanded .expandable-fade {
    opacity: 0;
}



.wp-block-divein-expandable .expandable-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: auto;
    margin: 0 auto;
    padding: var(--space-xs) var(--space-md);
    border: none;
    background: var(--toggle-bg);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--toggle-color);
    border-radius: var(--radius);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    position: relative;
    z-index: 2;
}

.wp-block-divein-expandable .expandable-toggle:hover {
    color: var(--toggle-hover-color);
}

.wp-block-divein-expandable .expandable-toggle:focus-visible {
    outline: 2px solid var(--color-focus, #6BB3D9);
    outline-offset: 2px;
    border-radius: var(--radius);
}


.wp-block-divein-expandable[class*="is-style-box-"] .expandable-toggle {
    font-size: var(--text-xs);
    line-height: 1.8rem;
    padding: 0 20px;
    margin-top: 0;
    margin-bottom: calc(-1 * var(--space-xs));
    transform: translateY(50%);
}



.wp-block-divein-expandable .expandable-toggle-icon {
    flex-shrink: 0;
    transition: transform 300ms ease;
}
