/*---------------------------------------------------------------------------------------------
 *  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;
}

/* 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;
}

.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 .matchesCount {
	color: #A1260D;
}

.monaco-editor.vs-dark .find-widget.no-results .matchesCount,
.monaco-editor.hc-black .find-widget.no-results .matchesCount {
	color: #F48771
}

.monaco-editor .find-widget .matchesCount {
	display: inline-block;
	margin: 0 1px 0 3px;
	padding: 2px 2px 0 2px;
	height: 25px;
	vertical-align: middle;
	box-sizing: border-box;
	text-align: center;
	line-height: 23px;
}

.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 {
	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 .button.toggle.disabled {
	display: none;
}

.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;
	cursor: default;
}

.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%;
}

/* REDUCED */
.monaco-editor .find-widget.reduced-find-widget .matchesCount,
.monaco-editor .find-widget.reduced-find-widget .monaco-checkbox {
	display:none;
}

/* NARROW (SMALLER THAN REDUCED) */
.monaco-editor .find-widget.narrow-find-widget > .find-part .monaco-findInput,
.monaco-editor .find-widget.narrow-find-widget > .replace-part .replace-input {
	width: 171px !important;
}
.monaco-editor .find-widget.narrow-find-widget > .find-part .monaco-inputbox > .wrapper > .input {
	width: 105px !important;
}

/* COLLAPSED (SMALLER THAN NARROW) */
.monaco-editor .find-widget.collapsed-find-widget .button.previous,
.monaco-editor .find-widget.collapsed-find-widget .button.next,
.monaco-editor .find-widget.collapsed-find-widget .button.replace,
.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,
.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {
	display:none;
}
.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput,
.monaco-editor .find-widget.collapsed-find-widget > .replace-part .replace-input,
.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-inputbox > .wrapper > .input {
	width: 71px !important;
}

.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(180, 180, 180, 0.3);
}

/* 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.hc-black .find-widget .previous,
.monaco-editor.vs-dark .find-widget .previous {
	background-image: url('images/previous-inverse.svg');
}

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

.monaco-editor.hc-black .find-widget .monaco-checkbox .label,
.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.hc-black .find-widget .close-fw,
.monaco-editor.vs-dark .find-widget .close-fw {
	background-image: url('images/close-dark.svg');
}

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

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

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

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

.monaco-editor.hc-black .find-widget .button:not(.disabled):hover,
.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:before {
	position: relative;
	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 .findMatch {
	background: none;
	border: 1px dotted #f38518;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

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

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

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