/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

/* Checkbox */

.monaco-checkbox .label {
	width: 12px;
	height: 12px;
	border: 1px solid black;
	background-color: transparent;
	display: inline-block;
}

.monaco-checkbox .checkbox {
	position: absolute;
	overflow: hidden;
	clip: rect(0 0 0 0);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
}

.monaco-checkbox .checkbox:checked + .label {
	background-color: black;
}

.monaco-checkbox .checkbox:focus + .label {
	outline: auto 5px rgb(229, 151, 0);
}

/* Find widget */
.monaco-editor .find-widget {
	position: absolute;
	z-index: 10;
	top: -44px; /* find input height + shadow (10px) */
	height: 34px; /* find input height */
	overflow: hidden;
	line-height: 19px;

	-webkit-transition: top 200ms linear;
	-o-transition: top 200ms linear;
	-moz-transition: top 200ms linear;
	-ms-transition: top 200ms linear;
	transition: top 200ms linear;

	padding: 0 4px;
}
/* Find widget when replace is toggled on */
.monaco-editor .find-widget.replaceToggled {
	top: -74px; /* find input height + replace input height + shadow (10px) */
	height: 64px; /* find input height + replace input height */
}
.monaco-editor .find-widget.replaceToggled > .replace-part {
	display: inline-block;
}

.monaco-editor .find-widget.visible,
.monaco-editor .find-widget.replaceToggled.visible {
	top: 0;
}

.monaco-editor .find-widget .monaco-inputbox .input {
	background-color: transparent;
	/* Style to compensate for //winjs */
	min-height: 0;
}

.monaco-editor .find-widget .monaco-findInput,
.monaco-editor .find-widget .replace-input {
	background-color: white;
}

.monaco-editor .find-widget .replace-input .input {
	font-size: 13px;
	font-family: "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";
}



.monaco-editor .find-widget.visible.noanimation {
	-webkit-transition: none;
	-o-transition: none;
	-moz-transition: none;
	-ms-transition: none;
	transition: none;
}

.monaco-editor .find-widget > .find-part,
.monaco-editor .find-widget > .replace-part {
	margin: 4px 0 0 17px;
	font-size: 12px;
}

.monaco-editor .find-widget > .find-part .monaco-inputbox,
.monaco-editor .find-widget > .replace-part .monaco-inputbox {
	height: 25px;
}

.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input,
.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input {
	padding-top: 2px;
	padding-bottom: 2px;
}

.monaco-editor .find-widget .monaco-findInput {
	display: inline-block;
	vertical-align: middle;
}

.monaco-editor .find-widget.no-results .monaco-findInput .monaco-inputbox {
	border-color: #E51400;
}

.monaco-editor .find-widget .button {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
	margin-left: 3px;
	background-position: center center;
	background-repeat: no-repeat;
	cursor: pointer;
}

.monaco-editor .find-widget .button:not(.disabled):hover {
	background-color: #DDD;
}

.monaco-editor .find-widget .button.left {
	margin-left: 0;
	margin-right: 3px;
}

.monaco-editor .find-widget .button.wide {
	width: auto;
	padding: 1px 6px;
	top: -1px;
}

.monaco-editor .find-widget .button.toggle {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 18px;
	height: 100%;
	-webkit-box-sizing:	border-box;
	-o-box-sizing:		border-box;
	-moz-box-sizing:	border-box;
	-ms-box-sizing:		border-box;
	box-sizing:			border-box;
}

.monaco-editor .find-widget.can-replace .button.toggle {
	display: inherit;
}

.monaco-editor .find-widget .previous {
	background-image: url('images/previous.svg');
}

.monaco-editor .find-widget .next {
	background-image: url('images/next.svg');
}

.monaco-editor .find-widget .disabled {
	opacity: 0.3;
	cursor: default;
}

.monaco-editor .find-widget .monaco-checkbox {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
	margin-left: 3px;
}

.monaco-editor .find-widget .monaco-checkbox .label {
	content: '';
	display: inline-block;
	background-repeat: no-repeat;
	background-position: 0 0;
	background-image: url('images/cancelSelectionFind.svg');
	width: 20px;
	height: 20px;
	border: none;
}

.monaco-editor .find-widget .monaco-checkbox .checkbox:disabled + .label {
	opacity: 0.3;
}

.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled) + .label {
	cursor: pointer;
}

.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label {
	background-color: #DDD;
}

.monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label {
	background-color: rgba(100, 100, 100, 0.2);
}

.monaco-editor .find-widget .close-fw {
	background-image: url('images/close.svg');
}

.monaco-editor .find-widget .expand {
	background-image: url('images/expando-expanded.svg');
}

.monaco-editor .find-widget .collapse {
	background-image: url('images/expando-collapsed.svg');
}

.monaco-editor .find-widget .replace {
	background-image: url('images/replace.svg');
}

.monaco-editor .find-widget .replace-all {
	background-image: url('images/replace-all.svg');
}

.monaco-editor .find-widget > .replace-part {
	display: none;
}

.monaco-editor .find-widget > .replace-part > .replace-input {
	display: inline-block;
	vertical-align: middle;
}

.monaco-editor .find-widget > .replace-part > .replace-input > .monaco-inputbox {
	width: 100%;
}

.monaco-editor .findMatch {
	background-color: rgba(234, 92, 0, 0.3);
	-webkit-animation-duration: 0;
	-webkit-animation-name: inherit !important;
	-moz-animation-duration: 0;
	-moz-animation-name: inherit !important;
	-ms-animation-duration: 0;
	-ms-animation-name: inherit !important;
	animation-duration: 0;
	animation-name: inherit !important;
}

.monaco-editor .currentFindMatch {
	background-color: #A8AC94;
}

.monaco-editor .findScope {
	background-color: rgba(239, 239, 242, 0.4);
}

/* Theming */
.monaco-editor .find-widget {
	background-color: #EFEFF2;
	box-shadow: 0 2px 8px #A8A8A8;
}

.monaco-editor.vs-dark .find-widget {
	background-color: #2D2D30;
	box-shadow: 0 2px 8px #000;
}

.monaco-editor.vs-dark .find-widget .previous {
	background-image: url('images/previous-inverse.svg');
}

.monaco-editor.vs-dark .find-widget .next {
	background-image: url('images/next-inverse.svg');
}

.monaco-editor.vs-dark .find-widget .monaco-checkbox .label {
	background-image: url('images/cancelSelectionFind-inverse.svg');
}

.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label {
	background-color: #2f3334;
}

.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:checked + .label {
	background-color: rgba(150, 150, 150, 0.3);
}

.monaco-editor.vs-dark .find-widget .close-fw {
	background-image: url('images/close-dark.svg');
}

.monaco-editor.vs-dark .find-widget .replace {
	background-image: url('images/replace-inverse.svg');
}

.monaco-editor.vs-dark .find-widget .replace-all {
	background-image: url('images/replace-all-inverse.svg');
}

.monaco-editor.vs-dark .find-widget .expand {
	background-image: url('images/expando-expanded-dark.svg');
}

.monaco-editor.vs-dark .find-widget .collapse {
	background-image: url('images/expando-collapsed-dark.svg');
}

.monaco-editor.vs-dark .find-widget .button:not(.disabled):hover {
	background-color: #2f3334;
}

.monaco-editor.vs-dark .currentFindMatch {
	background-color: #515C6A;
}

.monaco-editor.vs-dark .findScope {
	background-color: rgba(58, 61, 65, 0.4);
}

.monaco-editor.vs-dark .find-widget .monaco-findInput,
.monaco-editor.vs-dark .find-widget .replace-input {
	background-color: #3C3C3C;
}

/* High Contrast Theming */
.monaco-editor.hc-black .find-widget {
	border: 2px solid #6FC3DF;
	background: #0C141F;
	box-shadow: none;
}

.monaco-editor.hc-black .find-widget .button:not(.disabled):hover {
	background: none;
}

.monaco-editor.hc-black .find-widget .button {
	background: none;
}

.monaco-editor.hc-black .find-widget .button:before {
	position: relative;
	top: 1px;
	left: 2px;
}

.monaco-editor.hc-black .find-widget .previous:before {
	content: url('images/previous-inverse.svg');
}

.monaco-editor.hc-black .find-widget .next:before {
	content: url('images/next-inverse.svg');
}

.monaco-editor.hc-black .find-widget .replace:before {
	content: url('images/replace-inverse.svg');
}

.monaco-editor.hc-black .find-widget .replace-all:before {
	content: url('images/replace-all-inverse.svg');
}

.monaco-editor.hc-black .find-widget .monaco-checkbox .label {
	content: url('images/cancelSelectionFind-inverse.svg');
	top: 1px;
	left: 2px;
}

.monaco-editor.hc-black .find-widget .monaco-checkbox .checkbox:checked + .label {
	background-color: rgba(150, 150, 150, 0.3);
}

.monaco-editor.hc-black .find-widget .close-fw:before {
	content: url('images/close-dark.svg');
	top: 1px;
	left: 0px;
}

.monaco-editor.hc-black .find-widget .expand:before {
	content: url('images/expando-expanded-dark.svg');
	top: 38%;
	left: 40%
}

.monaco-editor.hc-black .find-widget .collapse:before {
	content: url('images/expando-collapsed-dark.svg');
	top: 30%;
	left: 40%;
}

.monaco-editor.hc-black .findMatch {
	background: none;
	border: 1px dotted #DF740C;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.monaco-editor.hc-black .currentFindMatch {
	background: none;
	padding: 1px;
	border: 2px solid #DF740C;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.monaco-editor.hc-black .findScope {
	background: none;
	border: 1px dashed #DF740C;
	opacity: .4;
}

.monaco-editor.hc-black .find-widget .monaco-findInput,
.monaco-editor.hc-black .find-widget .replace-input {
	background-color: #000;
}