.wp-block-perron-toggle details {
    margin-bottom: clamp(1rem, 2vw, 2rem);
    padding: clamp(1rem, 2vw, 1.6rem);
    border: 1px solid color-mix(in oklch, var(--foreground), transparent 88%);
    border-radius: clamp(1.4rem, 2vw, 2.4rem);
    background: color-mix(in oklch, var(--paper), transparent 12%);
    box-shadow: var(--ai-shadow, 0 24px 80px rgba(0, 0, 0, 0.12));
    backdrop-filter: blur(16px) saturate(130%);
}

.wp-block-perron-toggle details::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility 1s allow-discrete, opacity 1s, block-size 1s;
}

.wp-block-perron-toggle details[open]::details-content {
    opacity: 1;
    block-size: auto;
}

.wp-block-perron-toggle details summary {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--text);
    line-height: 1;
    padding: 0.85em 3em 0.85em 1.2em;
    font-weight: 600;
    list-style: none;
}

.wp-block-perron-toggle details summary.btn:hover {
    color: var(--background);
}

.wp-block-perron-toggle details summary::-webkit-details-marker {
    display: none;
}

.wp-block-perron-toggle details summary::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: 1s all;
    right: 1em;
    background-color: var(--accentcolor);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1;
    line-height: unset;
    font-size: 1em;
    height: 1.1em;
    width: 1.1em;
    text-align: center;
}

.wp-block-perron-toggle details summary:hover::after {
    color: var(--foreground);
}

.wp-block-perron-toggle details:not([open]) summary:hover::after {
    transform: translateY(-50%) rotate(15deg);
}

.wp-block-perron-toggle details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.wp-block-perron-toggle details summary+div {
    padding: clamp(1.2rem, 2vw, 2.4rem);
    font-size: clamp(1.6rem, 1.2vw, 1.9rem);
    color: color-mix(in oklch, var(--text), transparent 12%);
}