/*---------------------------------------------------------------------------------------------
 *  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: flex;
	display: -webkit-flex;
	align-items: center;
}

.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 .replace-input .input {
	font-size: 13px;
}

.monaco-editor .find-widget > .find-part,
.monaco-editor .find-widget > .replace-part {
	margin: 4px 0 0 17px;
	font-size: 12px;
	display: flex;
	display: -webkit-flex;
	align-items: center;
}

.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 {
	width: 100% !important;
	padding-right: 66px;
}
.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 {
	vertical-align: middle;
	display: flex;
	display: -webkit-flex;
	flex:1;
}

.monaco-editor .find-widget .matchesCount {
	display: flex;
	display: -webkit-flex;
	flex: initial;
	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 {
	min-width: 20px;
	width: 20px;
	height: 20px;
	display: flex;
	display: -webkit-flex;
	flex: initial;
	margin-left: 3px;
	background-position: center center;
	background-repeat: no-repeat;
	cursor: pointer;
}

.monaco-editor .find-widget .button:not(.disabled):hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.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: flex;
	display: -webkit-flex;
	vertical-align: middle;
	width: auto !important;
}

/* 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 {
	max-width: 257px !important;
}

/* COLLAPSED (SMALLER THAN NARROW) */
.monaco-editor .find-widget.collapsed-find-widget {
	max-width: 111px !important;
}

.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-inputbox > .wrapper > .input {
	padding-right: 0px;
}

.monaco-editor .findMatch {
	-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 .find-widget .monaco-sash {
	width: 2px !important;
	margin-left: -4px;
}

.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: rgba(255, 255, 255, 0.1);
}

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

.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: rgba(255, 255, 255, 0.1);
}

.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(255, 255, 255, 0.1);
}
