.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 34rem;
    margin: 1.75rem auto;
    padding: 0 1rem;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .5rem;
    color: #212529;
    background: #fff;
    background-clip: padding-box;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .25);
    pointer-events: auto;
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.modal-header {
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    justify-content: flex-end;
    gap: .5rem;
    border-top: 1px solid #dee2e6;
}

.btn-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: .25rem;
    color: #212529;
    background: transparent;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    opacity: .65;
}

.btn-close::before {
    content: '\00d7';
    font-size: 1.75rem;
    font-weight: 300;
}

.btn-close:hover {
    opacity: 1;
}

.btn-close:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: #000;
    opacity: .5;
}

body.modal-open {
    overflow: hidden;
}

.btn-secondary {
    border-color: #6c757d;
    color: #fff;
    background-color: #6c757d;
}

.btn-secondary:hover {
    border-color: #565e64;
    color: #fff;
    background-color: #5c636a;
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: .75rem auto;
        padding: 0 .75rem;
    }
}

@media print {
    .modal,
    .modal-backdrop {
        display: none !important;
    }
}
