/* Shared Forms footer, formerly in auto_200_new_jbcore.css.
 * Outside JBCore dialogs preserve the legacy fixed toolbar contract.
 * Redmine #3672. */
.jbform_send {
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.18+0,0.36+51,0.19+100 */
	background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.36) 51%, rgba(0, 0, 0, 0.19) 100%);
	/* FF3.6-15 */
	background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.36) 51%, rgba(0, 0, 0, 0.19) 100%);
	/* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.36) 51%, rgba(0, 0, 0, 0.19) 100%);
	/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

	text-align: center;
	border-radius: 5px;
	margin: 0.5rem;
	padding: 0.5rem;

	position: fixed;
	width: calc(100% - 1rem);
	bottom: 0;
	left: 0;
}

.jbform_send_whitespace {
	width: 100%;
	margin: 0px;
	height: 60px;
}

.jbform_send .btn {
	-webkit-box-shadow: 2px 2px 15px 0px rgba(255, 255, 255, 0.75);
	-moz-box-shadow: 2px 2px 15px 0px rgba(255, 255, 255, 0.75);
	box-shadow: 2px 2px 15px 0px rgba(255, 255, 255, 0.75);
}

.jbform_send .btn[type="send"] {
	width: 12rem;
}


/* Forms::getHTML_of_submit_bar() in core.dlg / newEdit:
 * Keep the action buttons visible within the dialog and visually separate
 * them from the validator error area. No change to submit/cancel handlers.
 */
html .ui-dialog.jbcore-dlg-skin {
    --jb-form-footer-bg: #f2f6fa;
    --jb-form-footer-border: rgba(43, 67, 91, .34);
    --jb-form-footer-shadow: 0 -.45rem 1.1rem rgba(19, 38, 56, .15);
}
html[data-theme="dark"] .ui-dialog.jbcore-dlg-skin {
    --jb-form-footer-bg: #303940;
    --jb-form-footer-border: rgba(232, 242, 250, .35);
    --jb-form-footer-shadow: 0 -.45rem 1.1rem rgba(0, 0, 0, .43);
}
html .ui-dialog.jbcore-dlg-skin .jbform_send {
    position: sticky;
    bottom: 0;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin: .9rem 0 0;
    padding: .8rem 1rem;
    background: var(--jb-form-footer-bg);
    border: 1px solid var(--jb-form-footer-border);
    border-bottom: 3px solid var(--jb-form-footer-border);
    border-radius: .65rem;
    box-shadow: var(--jb-form-footer-shadow);
    z-index: 5;
}
html .ui-dialog.jbcore-dlg-skin .jbform_send .btn {
    min-height: 44px;
    box-shadow: none;
    font-weight: 600;
}
html .ui-dialog.jbcore-dlg-skin .jbform_send .btn[type="send"] {
    min-width: 12rem;
}
html .ui-dialog.jbcore-dlg-skin .jbform_send_whitespace {
    height: .65rem;
}
@media (max-width: 650px) {
    html .ui-dialog.jbcore-dlg-skin .jbform_send {
        padding: .55rem .6rem;
    }
    html .ui-dialog.jbcore-dlg-skin .jbform_send .btn[type="send"] {
        min-width: 0;
        width: auto;
        max-width: 100%;
    }
}
