/* Optional content only. Native details owns keyboard and expanded state. */
.cotton-disclosure { min-width: 0; }
.cotton-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    list-style: none;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
}
.cotton-disclosure > summary::-webkit-details-marker { display: none; }
.cotton-disclosure > summary::marker { content: ""; }
.cotton-disclosure > summary > :first-child { min-width: 0; overflow-wrap: anywhere; }
.cotton-disclosure > summary:focus-visible { outline: 2px solid var(--p-focus, currentColor); outline-offset: 3px; }
.cotton-disclosure__action {
    flex: 0 0 auto;
    font-size: var(--text-control, .875rem);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cotton-disclosure > summary > .cotton-disclosure__action > .cotton-disclosure__hide,
.cotton-disclosure[open] > summary > .cotton-disclosure__action > .cotton-disclosure__show { display: none; }
.cotton-disclosure[open] > summary > .cotton-disclosure__action > .cotton-disclosure__hide { display: inline; }
.cotton-disclosure[open] > summary { margin-bottom: 12px; }
