.brew-fixed-plan .plan-desc,
.brew-custom-plan .plan-desc {
    margin: 6px 0 0;
}

.plan-card.brew-custom-plan {
    padding: 6px 16px;
}

.plan-card.brew-custom-plan[open] {
    padding-bottom: 16px;
}

.brew-custom-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    min-height: 44px;
}

.brew-custom-summary::-webkit-details-marker { display: none; }

.brew-custom-summary .plan-name {
    font-size: 18px;
}

.brew-custom-action {
    padding: 6px 8px;
    border-radius: 9px;
    background: var(--bp-pistachio-xxl);
    color: var(--bp-pistachio-d);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
}

.brew-custom-action span:last-child,
.brew-custom-plan[open] .brew-custom-action span:first-child { display: none; }
.brew-custom-plan[open] .brew-custom-action span:last-child { display: inline; }

.brew-custom-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bp-border);
}

.brew-custom-label,
.brew-custom-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.brew-custom-label strong {
    font: 600 12px var(--bp-font-mono);
    color: var(--bp-pistachio-d);
    white-space: nowrap;
}

.brew-custom-form input[type="range"] {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0 0 4px;
    accent-color: var(--bp-pistachio-d);
    cursor: pointer;
}

.brew-custom-summary:focus-visible,
.brew-custom-form input:focus-visible {
    outline: 2px solid var(--bp-pistachio-d);
    outline-offset: 3px;
    border-radius: 6px;
}

.brew-custom-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--bp-border);
}

@media (max-width: 359px) {
    .plan-card.brew-custom-plan {
        padding-inline: 12px;
    }

    .brew-custom-summary {
        gap: 8px;
    }
}
