/* Download folder dialogs and the "Saved to" toast - see scripts/downloadfolder.js. */

.dlf-shade {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .45);
}

.dlf-box {
    width: min(440px, 100%);
    padding: 20px 22px 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .25);
    font-size: 14px;
    color: #1f2937;
}

.dlf-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
}

.dlf-msg {
    line-height: 1.5;
    word-break: break-word;
}

.dlf-note {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}

.dlf-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.dlf-btn:not(.btn-primary) {
    padding: 7px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
}

    .dlf-btn:not(.btn-primary):hover {
        background: #f3f4f6;
    }

    /* Colour, hover and the ambient shine come from app.css's .btn-primary. Only its sizing is
       undone - it is width:100%/height:30px for a modal footer, and this sits beside other buttons. */
    .dlf-btn.btn-primary {
        flex: 0 0 auto;
        width: auto;
        height: auto;
        padding: 7px 14px;
        font-size: 13px;
        line-height: normal;
        border-radius: 8px;
    }

    .dlf-btn.danger {
        color: #dc2626;
    }

.dlf-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 20001;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    transform: translateX(-50%);
    border-radius: 8px;
    background: #1f2937;
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
    transition: opacity .4s;
}

    .dlf-toast.hide {
        opacity: 0;
    }
