#demand_modal:has(.demand-confirmation:not(.hidden)) .modal-dialog {
    display: flex;
    align-items: center;
    max-width: 560px;
    min-height: calc(100% - 48px);
}

#demand_modal:has(.demand-confirmation:not(.hidden)) .modal-content {
    width: 100%;
}

#demand_modal:has(.demand-confirmation:not(.hidden)) .demand-modal__heading {
    margin-bottom: 32px;
}

#demand_modal:has(.demand-confirmation:not(.hidden)) :is(#demandModalLabel, #demandModalDescription) {
    display: none;
}

#demand_modal .demand-confirmation {
    padding: 0;
    text-align: center;
}

#demand_modal .demand-confirmation__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border: 1px solid #c9e7da;
    border-radius: 50%;
    background: #edf7f1;
    color: #22734e;
}

#demand_modal .demand-confirmation__label {
    margin: 0 0 12px;
    color: var(--demand-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

#demand_modal .demand-confirmation__title {
    margin: 0 0 16px;
    color: var(--demand-ink);
    font-family: inherit;
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

#demand_modal .demand-confirmation__description {
    max-width: 360px;
    margin: 0 auto;
    color: var(--demand-muted);
    font-size: 15px;
    line-height: 1.75;
}

#demand_modal .demand-confirmation__close {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 32px 0 16px;
    padding: 12px 24px;
    border: 1px solid var(--demand-ink);
    border-radius: 12px;
    background: var(--demand-ink);
    color: var(--demand-surface);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color .18s, color .18s;
}

#demand_modal .demand-confirmation__close:hover {
    background: var(--demand-surface);
    color: var(--demand-ink);
}

#demand_modal .demand-confirmation__close:focus-visible {
    outline: 2px solid var(--demand-ink);
    outline-offset: 4px;
}

#demand_modal .demand-confirmation__note {
    margin: 0;
    color: var(--demand-muted);
    font-size: 12px;
    line-height: 1.65;
}

.dark #demand_modal .demand-confirmation__icon {
    border-color: #334e43;
    background: #202f29;
    color: #8cd3ad;
}

@media (max-width: 575px) {
    #demand_modal:has(.demand-confirmation:not(.hidden)) .modal-dialog {
        min-height: calc(100% - 16px);
    }

    #demand_modal:has(.demand-confirmation:not(.hidden)) .demand-modal__heading {
        margin-bottom: 28px;
    }
}
