/**
 * MP ön yüz — ortak Bootstrap modal standardı.
 * Referans: legal-document-modal (beyaz header, border, footer sağda btn-light).
 */
.mp-web-modal .modal-content {
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mp-web-modal .modal-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
    align-items: center;
    flex-shrink: 0;
}

.mp-web-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    color: #212529;
}

.mp-web-modal .modal-body {
    padding: 1rem;
    flex: 1 1 auto;
    min-height: 0;
}

.mp-web-modal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
    flex-shrink: 0;
}

.mp-web-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 100%;
}

.mp-web-modal__actions[hidden] {
    display: none !important;
}

.mp-web-modal .modal-footer .btn-primary {
    background: var(--primary_color, #005450);
    border-color: var(--primary_color, #005450);
}

.mp-web-modal .modal-footer .btn-primary:hover,
.mp-web-modal .modal-footer .btn-primary:focus {
    background: #003d3a;
    border-color: #003d3a;
}

.mp-web-modal--sm .modal-dialog {
    max-width: min(480px, calc(100vw - 2rem));
}

.mp-web-modal--lg .modal-dialog {
    max-width: min(920px, calc(100vw - 2rem));
}

@media (max-width: 575.98px) {
    .mp-web-modal__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .mp-web-modal__actions .btn {
        width: 100%;
    }
}
