.kurusha-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

.kurusha-dialog-overlay.kurusha-dialog-visible {
    display: flex;
}

.kurusha-dialog {
    width: min(460px, 94vw);
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
    background: white;
    color: black;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    font-family: inherit;
}

.kurusha-dialog-title {
    padding: 13px 16px;
    background: steelblue;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}

.kurusha-dialog-message {
    padding: 18px 18px 8px 18px;
    white-space: pre-line;
    text-align: left;
    line-height: 1.4;
}

.kurusha-dialog-input {
    display: none;
    width: calc(100% - 36px);
    box-sizing: border-box;
    margin: 8px 18px 4px 18px;
    padding: 8px;
    border: 1px solid #777;
    border-radius: 4px;
    font: inherit;
}

.kurusha-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px 18px 18px;
}

.kurusha-dialog-button {
    min-width: 92px;
    padding: 8px 14px;
    border: 1px solid #777;
    border-radius: 5px;
    background: whitesmoke;
    color: black;
    font: inherit;
    cursor: pointer;
}

.kurusha-dialog-button:hover,
.kurusha-dialog-button:focus {
    outline: 2px solid steelblue;
    outline-offset: 1px;
}

.kurusha-dialog-confirm {
    background: steelblue;
    color: white;
    border-color: steelblue;
}

@media (max-width: 600px) {
    .kurusha-dialog {
        width: 96vw;
    }

    .kurusha-dialog-buttons {
        flex-direction: column-reverse;
    }

    .kurusha-dialog-button {
        width: 100%;
    }
}
