+.searchbar-search-button[addengines="true"] {
+ list-style-image: url("chrome://browser/skin/search-indicator-badge-add.png");
+}
+
+.searchbar-search-button:hover,
+.searchbar-search-button:hover:active {
+ -moz-image-region: rect(0, 40px, 20px, 20px);
+ background-color: #FFCF00;
+}
+
+@media (min-resolution: 1.1dppx) {
+ .search-go-button {
+ list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
+ -moz-image-region: rect(0, 84px, 28px, 56px);
+ }
+
+ .search-go-button:hover {
+ -moz-image-region: rect(28px, 84px, 56px, 56px);
+ }
+
+ .search-go-button:hover:active {
+ -moz-image-region: rect(56px, 84px, 84px, 56px);
+ }
+}
+
+.search-panel-current-engine {
+ -moz-box-align: center;
+}
+
+/**
+ * The borders of the various elements are specified as follows.
+ *
+ * The current engine always has a bottom border.
+ * The search results never have a border.
+ *
+ * When the search results are not collapsed:
+ * - The elements underneath the search results all have a top border.
+ *
+ * When the search results are collapsed:
+ * - The elements underneath the search results all have a bottom border, except
+ * the lowest one: search-setting-button.
+ */
+
+.search-panel-current-engine {
+ border-top: none !important;
+ border-bottom: 1px solid var(--panel-separator-color) !important;
+}
+
+.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-header,
+.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
+.search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:first-of-type {
+ border-top: none !important;
+}
+
+.search-panel-tree[collapsed=true] + .search-one-offs > .searchbar-engine-one-off-item,
+.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-current-input,
+.search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
+.search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:last-of-type {
+ border-bottom: 1px solid var(--panel-separator-color) !important;
+}
+
+.search-panel-header {
+ font-weight: normal;
+ background-color: #A09090;
+ border-top: 1px solid #000000;
+ margin: 0;
+ padding: 3px 6px;
+ color: #000000;
+}
+
+.search-panel-current-input > label {
+ margin: 0 0 !important;
+}
+
+.search-panel-input-value {
+ color: #E7ADE7;
+ background-color: #000000;
+ padding: 1px 2px;
+}
+
+.search-panel-one-offs {
+ margin: 0 !important;
+ border-top: 1px solid #000000;
+ line-height: 0;
+}
+
+.searchbar-engine-one-off-item {
+ display: inline-block;
+ border: none;
+ border-radius: 0;
+ min-width: 48px;
+ height: 32px;