/* Beacon presentation for WordPress widgets rendered in parent-defined areas. */
.bc-sidebar {
  display: grid;
  align-content: start;
  gap: var(--bc-space-lg, 24px);
}

.bc-sidebar > * {
  min-width: 0;
}

.bc-sidebar .card,
.bc-sidebar .widget,
.bc-sidebar .widget_text,
.bc-sidebar .bk {
  overflow: hidden;
  border: 1px solid var(--bc-hairline);
  border-radius: var(--bc-rounded-sm);
  background: var(--bc-surface, var(--bc-canvas));
  box-shadow: none;
}

.bc-sidebar .card-header,
.bc-sidebar .widget-title,
.bc-sidebar .widgettitle {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bc-hairline);
  color: var(--bc-ink);
  font-size: 14px;
  font-weight: 600;
}

.bc-sidebar .card-body,
.bc-sidebar .widget-content {
  padding: 16px;
  color: var(--bc-body);
  font-size: 13px;
  line-height: 1.65;
}

.bc-widget--empty p {
  margin: 0 0 12px;
  color: var(--bc-body);
}

.bc-sidebar a {
  color: var(--bc-link, var(--bc-ink));
}

.bc-sidebar a:focus-visible {
  outline: 2px solid var(--bc-semantic-color-border-focus, var(--bc-accent-orange));
  outline-offset: 3px;
}

html.io-black-mode .bc-sidebar .card,
html.io-black-mode .bc-sidebar .widget,
html.io-black-mode .bc-sidebar .widget_text,
html.io-black-mode .bc-sidebar .bk {
  border-color: var(--bc-surface-dark-soft);
  background: var(--bc-surface-dark, var(--bc-canvas-dark));
}

html.io-black-mode .bc-sidebar .card-header,
html.io-black-mode .bc-sidebar .widget-title,
html.io-black-mode .bc-sidebar .widgettitle {
  border-color: var(--bc-surface-dark-soft);
  color: var(--bc-on-dark);
}

html.io-black-mode .bc-sidebar .card-body,
html.io-black-mode .bc-sidebar .widget-content,
html.io-black-mode .bc-widget--empty p {
  color: var(--bc-body-on-dark);
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  #footer-tools.io-footer-tools {
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    left: auto !important;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 4px;
    width: max-content;
    padding: 4px;
    border: 1px solid var(--bc-hairline);
    border-radius: var(--bc-rounded-sm);
    background: var(--bc-canvas);
  }

  #footer-tools.io-footer-tools .btn-tools {
    flex: 0 0 40px;
    margin: 0 !important;
  }

  html.io-black-mode #footer-tools.io-footer-tools {
    border-color: var(--bc-surface-dark-soft);
    background: var(--bc-canvas-dark);
  }
}
