/* Font Awesome integration for the admin, seller and customer dashboards.
 * Font Awesome Free is self-hosted in /public/vendor/fontawesome (the CSP
 * only allows same-origin fonts and styles, so a CDN would be blocked). */

/* Keep page typography from overriding the icon font. */
.fa-solid, .fa-regular, .fa-brands {
  font-family: var(--_fa-family) !important;
  font-style: normal !important;
  font-weight: var(--fa-style, 900) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* The old icons were CSS masks painted with currentColor; clear that styling
 * so the glyph shows instead of a filled square. */
.ad-ico.fa-solid, .ad-chev.fa-solid,
.sp-ico.fa-solid, .sp-chev.fa-solid,
.cu-cart-ico.fa-solid {
  -webkit-mask: none !important;
  mask: none !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: inline-grid;
  place-items: center;
  width: auto;
  height: auto;
  line-height: 1;
}

/* Sidebar group icons */
.ad-ico.fa-solid { flex: 0 0 20px; width: 20px; height: 20px; font-size: 15px; opacity: .92; align-self: center; }
.sp-ico.fa-solid { flex: 0 0 20px; width: 20px; height: 20px; font-size: 16px; opacity: .92; align-self: center; }
.ad-chev.fa-solid { flex: 0 0 14px; width: 14px; font-size: 10px; }
.sp-chev.fa-solid { flex: 0 0 15px; width: 15px; font-size: 11px; }

/* Customer header */
.cu-cart-ico.fa-solid { width: 18px; font-size: 16px; color: inherit; }
.cu-nav-link { display: inline-flex; align-items: center; gap: 7px; }
.cu-nav-link > .fa-solid { width: 1.1em; font-size: .95em; opacity: .8; }
.cu-nav-link.is-active > .fa-solid { opacity: 1; }

/* Customer stats */
.cu-stat > .cu-stat-ico {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 4px; border-radius: 10px;
  background: var(--cu-brand-soft, #e4f5ee); color: var(--cu-brand, #0f7b5a) !important;
  font-size: 15px !important;
}

/* Icon badges that used to hold a text glyph */
.ad-metric-symbol.fa-solid, .ad-activity-icon.fa-solid,
.sp-metric-icon.fa-solid, .sp-quick-icon.fa-solid,
.ad-panel-icon.fa-solid {
  display: grid; place-items: center; font-size: 15px;
}
.ad-activity-icon.fa-solid { font-size: 12px; }
.ad-panel-icon.fa-solid { font-size: 14px; }
.ad-switch-chev.fa-solid, .ad-profile-menu.fa-solid { width: auto; font-size: 11px; }
.sp-action-arrow.fa-solid { width: auto; font-size: 12px; }

/* Links and buttons that combine a label with an arrow/chevron */
a > span + .fa-solid,
button > span + .fa-solid { margin-left: .45em; width: auto; font-size: .85em; }
a:not(.cu-nav-link) > .fa-solid + span { margin-left: .45em; }
.ad-nav-search > .fa-solid { width: auto; font-size: 12px; opacity: .7; }
.sp-checklist .fa-solid { width: auto; font-size: 11px; }
