/* floating status bar */
.floating-bar {
  background: var(--popover-bg-color);
  color: var(--popover-fg-color);
  padding: 4px 12px;
  margin: 4px;
  border-radius: 8px;
}

/* incognito mode */
.incognito-mode .top-bar.raised,
.incognito-mode .bottom-bar.raised {
  background-color: #eaf2fc;
}

.incognito-mode .top-bar.raised:backdrop,
.incognito-mode .bottom-bar.raised:backdrop {
  background-color: #eaf0f7;
}

.incognito-mode .top-bar.raised {
  background-image: cross-fade(10% -gtk-icontheme('user-not-tracked-symbolic'), image(transparent));
  background-position: 168px calc((46px - 64px) / 2);
  background-size: 64px 64px;
  background-repeat: no-repeat;
}

.incognito-mode .top-bar.raised:backdrop {
  background-image: cross-fade(5% -gtk-icontheme('user-not-tracked-symbolic'), image(transparent));
  transition: background 200ms ease-out;
}

.incognito-mode.narrow .top-bar.raised {
  background-position: 16px calc((46px - 64px) / 2);
}

/* automation mode */
.automation-mode .top-bar.raised,
.automation-mode .bottom-bar.raised {
  background-color: #ffa348;
}

.automation-mode .top-bar.raised:backdrop,
.automation-mode .bottom-bar.raised:backdrop {
  background-color: #ffbe6f;
}

/* Fix awkward padding on the tabs dropdown arrow */
tabbar .end-action {
  padding: 0;
}

tabbar .end-action > revealer > menubutton {
  margin-top: 3px;
  margin-bottom: 3px;
}

tabbar .end-action > revealer > menubutton:dir(ltr) {
  margin-right: 5px;
}

tabbar .end-action > revealer > menubutton:dir(rtl) {
  margin-left: 5px;
}

/* location entry */
.narrow .location-entry {
  font-size: small;
}

.entry-icon,
.entry-icon > button {
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  background: none;
}

.entry-icon {
  /* FIXME hc .85 */
  opacity: .7;
}

.entry-icon:hover {
  opacity: 1;
}

.entry-icon:active {
  /* FIXME hc .9 */
  opacity: .8;
}

.entry-icon.start:dir(ltr),
.entry-icon.end:dir(rtl) {
  margin-right: 6px;
}

.entry-icon.start:dir(rtl),
.entry-icon.end:dir(ltr) {
  margin-left: 6px;
}

.entry-icon:checked {
  color: @accent_color;
}

.entry-icon.starred {
  color: @yellow_5;
}

popover.suggestions {
  padding-top: 6px;

  /* Match entries */
  padding-left: 9px;
  padding-right: 9px;
}

popover.suggestions listview > row {
  padding: 0;
}

popover.suggestions listview > row > grid {
  padding: 9px 12px;
}

popover.suggestions listview > row:hover {
  background-color: alpha(currentColor, .04);
}

popover.suggestions listview > row:active {
  background-color: alpha(currentColor, .08);
}

popover.suggestions listview > row:selected {
  background-color: alpha(currentColor, .1);
}

popover.suggestions listview > row:selected:hover {
  background-color: alpha(currentColor, .13);
}

popover.suggestions listview > row:selected:active {
  background-color: alpha(currentColor, .19);
}

/* bookmarks */

.bookmark-tag-widget {
  padding-left: 8px;
  background-color: alpha(currentColor, .1);
  border-radius: 6px;
}

.bookmark-tag-widget label {
  padding-left: 8px;
  padding-right: 8px;
}

.bookmark-tag-widget-selected {
  background-color: @accent_bg_color;
  color: @accent_fg_color;
}

.bookmark-tag-widget button {
  border-radius: 100%;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  margin: 2px;
}


/* "Press $KEY to exit fullscreen" overlay text */
#fullscreen-popup {
  padding: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
}

dnd > .boxed-list {
  margin: 6px;
  background-color: @window_bg_color;
  background-image: image(@card_bg_color);
}

.message-popover > contents {
  padding: 0;
  margin: 0;
}

.message-popover .response-area > button {
  padding: 10px 14px;
  border-radius: 0;
  margin-top: -1px;
  margin-right: -1px;
  margin-left: -1px;
}

.message-popover .response-area > button.suggested {
  color: @accent_color;
}

.message-popover .response-area > button.destructive {
  color: @destructive_color;
}

.message-popover .response-area > button:first-child:dir(ltr),
.message-popover .response-area > button:last-child:dir(rtl) {
  border-bottom-left-radius: 12px;
  margin-left: 0;
}

.message-popover .response-area > button:last-child:dir(ltr),
.message-popover .response-area > button:first-child:dir(rtl) {
  border-bottom-right-radius: 12px;
  margin-right: 0;
}
