/* Bootstrap alert-warning tokens, scoped for both standard and campaign layouts. */
.credit-cost-warning.alert.alert-warning {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 0 16px;
    padding: 10px 16px;
    border: 1px solid var(--bs-warning-border-subtle, #ffe69c);
    border-radius: 6px;
    color: var(--bs-warning-text-emphasis, #664d03);
    background-color: var(--bs-warning-bg-subtle, #fff3cd);
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.antrag-intro .credit-cost-warning {
    margin-top: 16px;
    margin-bottom: 0;
}

.credit-cost-warning > .credit-cost-warning__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 0;
    color: inherit;
    cursor: pointer;
    list-style: none;
}

.credit-cost-warning__summary::-webkit-details-marker {
    display: none;
}

.credit-cost-warning__summary > strong {
    color: inherit;
    font-size: 16px;
    font-weight: 700;
}

.credit-cost-warning__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.credit-cost-warning__toggle svg {
    flex: 0 0 auto;
}

.credit-cost-warning__open-label,
.credit-cost-warning[open] .credit-cost-warning__closed-label {
    display: none;
}

.credit-cost-warning[open] .credit-cost-warning__open-label {
    display: inline;
}

.credit-cost-warning[open] .credit-cost-warning__toggle svg {
    transform: rotate(180deg);
}

.credit-cost-warning__content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bs-warning-border-subtle, #ffe69c);
}

.credit-cost-warning .credit-cost-warning__content p {
    margin: 0 0 12px;
    color: inherit;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.credit-cost-warning__content strong {
    color: inherit;
    font-size: inherit;
}

.credit-cost-warning .credit-cost-warning__content p:last-child {
    margin-bottom: 0;
    font-size: 14px;
}

.credit-cost-warning__content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.credit-cost-warning__summary:focus-visible,
.credit-cost-warning__content a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}
