/* The one icon set of the site's navigation and buttons (partials/icon-sprite.html): line icons on a 24px grid,
   one stroke width, drawn in the text colour, so every system renders them alike. An icon is
   <svg class="it4-ico" aria-hidden="true"><use href="#it4i-name"></use></svg>; its accessible name comes from the
   control's text or label, never from the icon. */
.it4-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.it4-ico {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-nav .nav-icon .it4-ico,
.sidebar-contact .it4-ico {
  width: 18px;
  height: 18px;
}

.topbar-icon-btn .it4-ico,
.topbar-menu-btn .it4-ico,
.theme-toggle-btn .it4-ico {
  width: 20px;
  height: 20px;
}

.it4-os-tab .it4-ico {
  width: 17px;
  height: 17px;
  margin-inline-end: 6px;
}

.chat-modal-x .it4-ico,
.chat-proactive-close .it4-ico {
  width: 16px;
  height: 16px;
}

.chat-send-btn .it4-ico {
  width: 18px;
  height: 18px;
}

/* The theme buttons show the icon of the applied theme: the sun in light theme, the moon in dark theme. */
.it4-theme-moon,
[data-theme="dark"] .it4-theme-sun {
  display: none;
}

[data-theme="dark"] .it4-theme-moon {
  display: inline-flex;
}

.it4-theme-sun {
  display: inline-flex;
}

.feat-icon-wrap .it4-ico {
  width: 24px;
  height: 24px;
}

.g-badge-ico .it4-ico,
.it4-win-perk-ico .it4-ico {
  width: 22px;
  height: 22px;
}

.it4-win-perk-ico {
  margin-bottom: 6px;
  color: var(--blue, #3b82f6);
}

.it4-cb-layer-close .it4-ico,
.resolve-yes .it4-ico,
.resolve-no .it4-ico,
#new-chat-btn .it4-ico,
#lc-newchat-esc .it4-ico,
[data-cspact="fb-newchat"] .it4-ico {
  width: 15px;
  height: 15px;
  margin-inline-end: 5px;
}

.it4-cb-layer-close .it4-ico {
  margin-inline-end: 0;
}

/* Icons that point along the reading direction (send) are mirrored on right-to-left pages. */
[dir="rtl"] .it4-ico:has(> use[href="#it4i-send"]) {
  transform: scaleX(-1);
}
