/* Header bar's URL bar */

@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

#urlbar {
	--urlbar-height: 30.00px !important;
	--urlbar-min-height: 30.00px !important;
	--urlbar-toolbar-height: 30.00px !important;
	--urlbar-icon-border-radius: 1000px !important;
	--urlbar-icon-padding: 6px !important;
}

/* Center the URL bar */
toolbarspring {
	max-width: 10000px !important;
}

/* Megabar reset  */
#urlbar {
	box-shadow: none !important;
	background: var(--gnome-header-entry-background) !important;
	border: none !important;
	color: var(--gnome-header-entry-color) !important;
	fill: var(--gnome-header-entry-color) !important;
	border-radius: 15px !important;
	padding: 0 0 !important;
	outline: 1px solid var(--gnome-header-entry-border-color) !important;
	outline-offset: -1px;
	transition: none;
}

#urlbar:focus-within {
	outline: none !important;
	border: none !important;
}

#urlbar-background {
	--urlbar-container-height: 30.00px !important;
	box-shadow: none !important;
	border: none !important;
	background: transparent !important;
	border-radius: 15px !important;
}

#urlbar[breakout][breakout-extend] {
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	z-index: 5 !important;
	color: var(--gnome-entry-color) !important;
	background: var(--gnome-entry-background) !important;
	outline: 2px solid var(--gnome-focused-urlbar-border-color) !important;
	outline-offset: -2px;
	padding: 0 1px !important;
	transition: all .1s ease;
}

#urlbar[breakout][breakout-extend][open] {
	height: auto !important;
	max-height: unset !important;
}

#urlbar[breakout][breakout-extend] #urlbar-input-container {
	height: 30px !important;
	max-height: 30px !important;
	padding: 0 !important;
}

/* URL bar results */
.urlbarView {
	background: transparent !important;
	color: var(--gnome-toolbar-color) !important;
	margin: -2px 0 0 0 !important;
	width: 100% !important;
	padding: 1px !important;
}

.urlbarView-body-outer {
	--item-padding-start: 0 !important;
	--item-padding-end: 0 !important;
	max-height: 40vh !important;
	overflow-x: auto;
	padding: 0 6px !important;
}

.urlbarView-body-inner {
	border: 0 !important;
}

.urlbarView-row-inner, .urlbarView-no-wrap  {
	align-items: center !important;
}
.urlbarView-row-inner {
	padding-block: 5px !important;
	border-radius: 5px !important;
}

/* Search engines buttons */
.search-one-offs {
	margin-top: 6px !important;
	margin-bottom: 2px !important;
	padding: 8px !important;
	background: none !important;
	border-top: 1px solid var(--gnome-entry-border-color) !important;
	border-radius: 0 0 15px 15px !important;
}

.searchbar-engine-one-off-item {
	--toolbarbutton-active-background: transparent !important;
	--toolbarbutton-hover-background: transparent !important;
	-moz-appearance: none !important;
	background: var(--gnome-button-background) !important;
	box-shadow: none !important;
	border: 1px solid var(--gnome-button-border-color) !important;
	border-left-width: 0 !important;
	border-bottom-color: var(--gnome-button-border-accent-color) !important;
	padding: 0 2px !important;
	min-height: 34px !important;
	min-width: 34px !important;
	margin: 0 !important;
	border-radius: 0 !important;
}
.searchbar-engine-one-off-item:hover, .searchbar-engine-one-off-item[selected] {
	background: var(--gnome-button-hover-background) !important;
	color: unset !important;
}
.searchbar-engine-one-off-item:first-child {
	border-radius: 3px 0 0 3px !important;
	border-left-width: 1px !important;
}
.searchbar-engine-one-off-item.last-engine, .searchbar-engine-one-off-item:not(.search-setting-button):last-child {
	border-radius: 0 3px 3px 0 !important;
}

#urlbar-anon-search-settings-compact,
.search-setting-button {
	border-left-width: 1px !important;
	border-bottom: 1px solid var(--gnome-button-border-accent-color) !important;
	border-radius: 3px !important;
	margin-left: 6px !important;
}

/* URL bar and Search bar */
#urlbar[focused] .urlbar-textbox-container {
	margin: -1px !important;
}
#searchbar > .searchbar-textbox[focused] .searchbar-search-button {
	margin-left: -1px !important;
}
#searchbar > .searchbar-textbox[focused] .search-go-button {
	margin-right: -1px !important;
}

.urlbar-page-action, #urlbar-go-button, .search-go-button {
	padding: 0 6px !important;
}
