/* Open Sans across all three surfaces; honor a device preference when exposed. */
html {
  --butso-readable-weight: 500;
  --butso-accessible-font: "Open Sans", Arial, sans-serif;
}
html,body,button,input,select,textarea { font-family:var(--butso-accessible-font); }
/* Progressive enhancement: browsers that expose this system preference
   apply it automatically, without inspecting device or user-agent strings. */
@media (prefers-bold-text) {
  html { --butso-readable-weight: 700; }
}
html :is(h1,h2,h3,h4,h5,h6,legend,.field>label,
  .desktop-nav a,.mobile-menu nav a,.catalog-select-field>span,
  .catalog-picker-toggle,.catalog-picker-option,.category-pill strong,
  .catalog-select-submit,.product-option-pill,.product-whatsapp-button,
  .producer-card-footer strong,.market-banner-copy a,
  .workspace-nav nav a,.workspace-nav nav a.is-active,
  .workspace-header strong,.fi-body .fi-sidebar .fi-sidebar-item-button,
  .fi-body .fi-sidebar .fi-sidebar-item.fi-active>.fi-sidebar-item-button,
  .fi-body .fi-sidebar-item-label,.fi-body .fi-header-heading,
  .fi-body .fi-section-header-heading,.fi-body .fi-btn-label,
  .fi-body .fi-fo-field-label-content,.fi-body .fi-ta-header-cell-label,
  .portal-form label,.portal-form button,.auth-form label,.auth-form button,
  .panel-overview-actions a,.panel-management-links a,[data-butso-ring]>strong,[data-butso-ring]>span) {
  font-family: var(--butso-accessible-font) !important;
  font-weight: var(--butso-readable-weight) !important;
  overflow-wrap: anywhere;
}
.footer-bottom,.auth-footer { flex-wrap: wrap; }

/* One balanced 16px down-chevron for every real single-select surface.
   The vector's viewBox is symmetric about its visible vertical midpoint. */
html {
  --butso-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23566375' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html:is([data-theme="dark"],.dark) {
  --butso-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23b4c2d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html :is(.catalog-toolbar select,.catalog-select-field select,.member-workspace select,.fi-body select):not([multiple]):not([size]) {
  appearance:none!important;-webkit-appearance:none!important;
  background-image:var(--butso-select-chevron)!important;
  background-position:right 14px center!important;
  background-repeat:no-repeat!important;background-size:16px 16px!important;
  padding-inline-end:40px!important;min-width:0;text-overflow:ellipsis;
}
html :is(.market-search-section,.catalog-toolbar) .catalog-picker .catalog-picker-toggle {
  background-image:var(--butso-select-chevron)!important;
  background-position:right 14px center!important;
  background-repeat:no-repeat!important;background-size:16px 16px!important;
}
html .fi-body .fi-select-input-btn { align-items:center!important; }
html .fi-body .fi-select-input-btn > svg:last-child { flex-shrink:0;align-self:center;vertical-align:middle; }
html .fi-body .fi-pagination select.butso-per-page-select { background-position:right 8px center!important;padding-inline-end:28px!important; }

.butso-spinner { display:inline-block;width:16px;height:16px;flex:0 0 16px;vertical-align:middle;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:butso-spinner-rotate .75s linear infinite; }
@keyframes butso-spinner-rotate { to { transform:rotate(360deg); } }
[data-butso-submitting] { cursor:wait;pointer-events:none;opacity:.78; }
.butso-submit-status { display:inline-flex;align-items:center;gap:8px;white-space:normal; }
.butso-transfer-progress { display:grid;gap:6px;min-width:112px;max-width:220px;font-size:12px; }
.butso-transfer-progress progress { width:100%;height:8px;accent-color:#1688b7; }
