/* SPCX header layout v1.7 */
.spcx-bar .spcx-rail {
  width: 100%;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  column-gap: clamp(10px, 1.4vw, 24px);
  padding-inline: clamp(12px, 1.6vw, 26px);
  overflow: visible;
}
.spcx-bar #spcx-navigation {
  min-width: 0;
  gap: clamp(0px, 0.25vw, 5px);
}
.spcx-bar #spcx-navigation a {
  padding-inline: clamp(5px, 0.6vw, 11px);
}
.spcx-bar .spcx-tools {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
}
.spcx-bar .portal-price,
.spcx-bar .spcx-quote {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.spcx-bar .portal-price small,
.spcx-bar .spcx-env {
  flex: 0 0 auto;
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
}
.spcx-bar .spcx-wallet-panel,
.spcx-bar #wallet-area,
.spcx-bar .wallet-controls {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.spcx-bar .wallet-identity:has(#wallet-address:empty) {
  display: none;
}
.spcx-bar .wallet-identity:has(#wallet-address:not(:empty)) {
  display: flex;
}
.spcx-bar #wallet-address {
  display: block;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}
.spcx-bar #connect,
.spcx-bar #disconnect {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 9px 17px;
  white-space: nowrap;
  line-height: 1.3;
  font-size: 0.875rem;
  border-radius: 100px;
}
.spcx-bar #wallet-feedback:empty {
  display: none;
}
.spcx-bar #wallet-feedback:not(:empty) {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: max-content;
  max-width: min(360px, calc(100vw - 40px));
  overflow-wrap: anywhere;
}
.spcx-bar .spcx-social {
  width: 36px;
  height: 40px;
  min-height: 40px;
}
@media (min-width: 760px) and (max-width: 1190px) {
  .spcx-bar .spcx-rail {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
  .spcx-bar #spcx-navigation {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 759px) {
  .spcx-bar .spcx-rail {
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 4px;
    padding-inline: 11px 5px;
  }
  .spcx-bar .spcx-tools {
    gap: 5px;
  }
  .spcx-bar .portal-price,
  .spcx-bar .spcx-quote {
    gap: 3px 6px;
    font-size: 0.75rem;
  }
  .spcx-bar .portal-price {
    flex-direction: column;
    align-items: flex-start;
  }
  .spcx-bar .portal-price small {
    padding: 0;
    border: 0;
    font-size: 0.65rem;
  }
  .spcx-bar .wallet-controls {
    gap: 4px;
  }
  .spcx-bar .wallet-identity {
    display: none !important;
  }
  .spcx-bar #connect,
  .spcx-bar #disconnect {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.8rem;
  }
}
@media (max-width: 360px) {
  .spcx-bar .spcx-brand > .spcx-mark { display: inline-grid; flex: 0 0 24px; }
  .spcx-bar .spcx-brand > span:not(.spcx-mark) { display: none; }
  .spcx-bar .spcx-brand {
    font-size: 15px;
  }
  .spcx-bar .spcx-tools {
    gap: 2px;
  }
  .spcx-bar #connect,
  .spcx-bar #disconnect {
    padding-inline: 7px;
    font-size: 0.75rem;
  }
}
/* End SPCX header layout v1.7 */
