/* Basic styling for FileBird tag search buttons.  You can override this in your theme. */
/* Base styling for tag container when positioned above the gallery */
.fbtags-container {
  margin-bottom: 1em;
}
.fbtags-button {
  display: inline-block;
  margin: 0 0.25em 0.5em 0;
  padding: 0.4em 0.8em;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
}
.fbtags-button:hover,
.fbtags-button:focus {
  background: #e3e3e3;
}

/* Sidebar placement adjustments
 * When the tag list is rendered inside the FileBird sidebar (data-fbtags-position="sidebar"),
 * switch to a vertical layout so the buttons align with the folder tree.  Each
 * button is displayed as a block with full width and minimal margin.
 */
/* When tags are positioned inside the FileBird sidebar, the container should
 * visually merge with the folder panel.  Remove the outer margins so it
 * sits flush beneath the folder tree and reuse the same background colour.
 * Border‑top is omitted to allow the panel’s border to continue seamlessly,
 * while the bottom corners are rounded to match FileBird’s default theme.
 */
.fbtags-container[data-fbtags-position="sidebar"] {
  margin: 0;
  background: #ffffff;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 0;
}

/* Style the buttons in a vertical list with a light divider between items.  Each
 * button fills the available width of the sidebar and uses uppercase text
 * and increased letter‑spacing to echo FileBird’s folder labels.  On hover,
 * the background subtly highlights the active item.
 */
.fbtags-container[data-fbtags-position="sidebar"] .fbtags-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45em 0.75em;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #f2f2f2;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2d2d2d;
  cursor: pointer;
}
.fbtags-container[data-fbtags-position="sidebar"] .fbtags-button:hover,
.fbtags-container[data-fbtags-position="sidebar"] .fbtags-button:focus {
  background: #f7f7f7;
}

/* Heading for the tag list when placed in the sidebar.  Use uppercase
 * lettering and a bottom border to separate it from the list of buttons.
 */
.fbtags-heading {
  padding: 0.45em 0.75em;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4d4d4d;
  border-bottom: 1px solid #f2f2f2;
  margin: 0;
}
