/*!
 * dialogs.css
 * Copyright 2017 - 2020 by ChartIQ, Inc.
 * All rights reserved.
 */

@import url("core/formElements.css");

body.dialog {
	appearance: none;
	overflow: hidden;
	color: var(--dialog-font-color);

	/* Styling for General Typography */

	/* Always Show Number Input Arrows, Give A Bit Of Space */
}

body.dialog html::before,
body.dialog html::after,
body.dialog body::before,
body.dialog body::after {
	content: "";
	background: var(--window-frame-inactive-color);
	position: fixed;
	display: block;
	z-index: 2147483647;
}

body.dialog p {
	margin: 8px 0;
}

body.dialog .dialog {
	background-color: var(--dialog-background-color);
	padding: 32px;
	user-select: none;
}

body.dialog .dialog-title {
	height: 30px;
	font-family: var(--dialog-title-font-family);
	font-weight: var(--dialog-title-font-weight);
	font-size: var(--dialog-title-font-size);
	text-align: left;
	color: var(--dialog-title-font-color);
	padding: 0 4px 4px;
}

body.dialog .dialog-question {
	min-height: 45px;
	height: 100%;
	font-weight: var(--dialog-question-font-weight);
	color: var(--dialog-question-font-color);
	font-size: var(--dialog-question-font-size);
	padding: 0 4px;
	margin-bottom: 10px;
	text-align: left;
	overflow-wrap: break-word;
}

.controls-wrapper .button-wrapper,
body.dialog .button-wrapper {
	display: flex;
	justify-content: flex-end;
}

.controls-wrapper input[type="number"]::-webkit-inner-spin-button,
.controls-wrapper input[type="number"]::-webkit-outer-spin-button,
body.dialog input[type="number"]::-webkit-inner-spin-button,
body.dialog input[type="number"]::-webkit-outer-spin-button {
	opacity: 1;
}

.controls-wrapper input::-webkit-outer-spin-button,
.controls-wrapper input::-webkit-inner-spin-button,
body.dialog input::-webkit-outer-spin-button,
body.dialog input::-webkit-inner-spin-button {
	margin-left: 5px;
}

.controls-wrapper input:focus,
body.dialog input:focus {
	box-shadow: 0 0 5px rgb(81 203 238 / 100%);
	border-bottom: 2px solid var(--dialog-input-border-focus-color);
	outline: none;
}

.controls-wrapper input,
body.dialog input {
	font-family: var(--font-family);
	appearance: none;
	color: var(--dialog-input-font-color);
	text-align: left;
	font-size: var(--dialog-input-font-size);
	font-weight: var(--dialog-input-font-weight);
	vertical-align: middle;
	background-color: var(--dialog-input-background-color);
	width: 100%;
	height: 33px;
	max-width: 100%;
	padding: 3px 10px;
	border: 0;
	border-bottom: 2px solid var(--dialog-input-border-color);
	box-sizing: border-box;
	transition: 0.2s ease-in;
}

.fsbl-button {
	margin: 0 6px;
	width: 124px;
	height: 35px;
	border-radius: 4px;
	text-align: center;
	color: var(--button-solid-text);
	font-weight: var(--button-font-weight);
	font-size: var(--button-font-size);
	transition: 0.2s ease;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: center;
	letter-spacing: 0.4px;
	line-height: 34px;
	user-select: none;
	position: relative;
}

.fsbl-button:hover {
	transition: 0.2s ease-out;
	cursor: pointer;
}

.fsbl-button-affirmative {
	border: 1px solid var(--button-affirmative-border-color);
	background-color: var(--button-affirmative-background-color);
}

.fsbl-button-affirmative:hover {
	border: 1px solid var(--button-affirmative-border-hover-color);
	background-color: var(--button-affirmative-background-hover-color);
}

.fsbl-button-neutral {
	border: 1px solid var(--button-neutral-border-color);
	background-color: var(--button-neutral-background-color);
}

.fsbl-button-neutral:hover {
	text-decoration: underline;
}

.fsbl-button-negative {
	border: 1px solid var(--button-negative-border-color);
	background-color: var(--button-negative-background-color);
}

.fsbl-button-negative:hover {
	border: 1px solid var(--button-negative-border-hover-color);
	background-color: var(--button-negative-background-hover-color);
}
