.context-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 50px;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.context-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.context-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    box-sizing: border-box;
    padding: 35px 30px 30px;
    border: 1px solid rgba(255, 165, 0, 0.75);
    border-radius: 8px;
    background: rgba(12, 12, 12, 0.95);
    color: #f5f5f5;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.65);
    transform: translateY(8px) scale(0.98);
    transition: transform 180ms ease;
}

.context-modal.is-open .context-modal__dialog {
    transform: translateY(0) scale(1);
}

.context-modal__message {
    margin: 0;
    color: #f5f5f5;
    line-height: 1.55;
    text-align: left;
}

.context-modal__actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.context-modal__confirm,
.context-modal__close {
    cursor: pointer;
}

.context-modal__confirm {
    min-width: 90px;
    padding: 10px 15px !important;
    border-radius: 4px;
    background: black !important;
    color: orange;
    font-weight: bold;
}

.context-modal__confirm:hover,
.context-modal__confirm:focus-visible {
    background: orange;
    color: black;
}

.context-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 1px solid orange;
    border-radius: 50%;
    background: black;
    color: orange;
    font-size: 24px;
    line-height: 1;
}

.context-modal__close:hover,
.context-modal__close:focus-visible {
    background: orange;
    color: black;
}

@media (max-width: 700px) {
    .context-modal {
        padding: 16px;
    }

    .context-modal__dialog {
        padding: 24px 18px 18px;
    }
}
