/*
 * IE-1006: styles for the in-page delete confirmation bar (Scripts/app/confirm-bar.js).
 *
 * Kept in its own file on purpose. Content/css/style.css has a parallel Content/scss/ tree with
 * overlapping rules, so it looks generated and a hand-edit there could be regenerated away.
 *
 * The bar is fixed to the top of the viewport and slides down, so it appears at the top of
 * wherever the user currently is without them having to scroll.
 */

.confirm-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2050; /* above Bootstrap 3 modals (1050) so it works over an open Add Row popup */

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 24px;
    background-color: #ce1126; /* the red already used for the file-delete affordance */
    border-bottom: 3px solid #96000f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.4;

    transform: translateY(-100%);
    transition: transform 0.25s ease-out;
}

.confirm-bar.is-open {
    transform: translateY(0);
}

.confirm-bar-message {
    flex: 1 1 auto;
    font-weight: 600;
    /* The row label is inserted as text, but it is user data, so never let it break the layout. */
    word-break: break-word;
}

.confirm-bar-actions {
    flex: 0 0 auto;
    white-space: nowrap;
}

.confirm-bar-button {
    min-width: 110px;
    margin-left: 8px;
    padding: 7px 18px;

    border: 2px solid #FFFFFF;
    border-radius: 3px;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/*
 * style.css sets ".btn i { color: #FFFFFF }" globally, which is what made the icon-only row
 * controls invisible. These buttons carry real text and are deliberately not .btn, so they are
 * unaffected by that rule.
 */
.confirm-bar-yes {
    background-color: #FFFFFF;
    color: #ce1126;
}

.confirm-bar-yes:hover,
.confirm-bar-yes:focus {
    background-color: #ffe9eb;
    color: #96000f;
}

.confirm-bar-no {
    background-color: transparent;
    color: #FFFFFF;
}

.confirm-bar-no:hover,
.confirm-bar-no:focus {
    background-color: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

.confirm-bar-button:focus {
    outline: 3px solid #ffd54a;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .confirm-bar {
        padding: 12px 14px;
        font-size: 14px;
    }

    .confirm-bar-actions {
        width: 100%;
        white-space: normal;
    }

    .confirm-bar-button {
        margin: 6px 6px 0 0;
    }
}
