/* Mobile-only token header overrides.
 * Safe rollback: remove this enqueue handle to disable all overrides.
 */
@media (max-width: 768px) {
  .token-single-header.neo-token-header {
    padding: 14px 12px;
    gap: 12px;
  }

  .neo-token-header .token-main-info {
    gap: 10px;
    align-items: flex-start !important;
  }

  .neo-token-header .token-logo-large.neo-token-header-icon-wrap,
  .neo-token-header .neo-token-header-icon-wrap {
    align-self: flex-start;
  }

  .neo-token-header .neo-token-header-action-buttons {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    inset: auto 12px auto auto !important;
    margin-left: 0;
    align-self: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: visible;
    max-width: none;
    -webkit-overflow-scrolling: auto;
    margin-bottom: 0;
    z-index: 12;
  }

  .neo-token-header .neo-token-header-action-buttons > * {
    margin-right: 8px;
  }

  .neo-token-header .neo-token-header-action-buttons > *:last-child {
    margin-right: 0;
  }

  .neo-token-header .neo-token-header-action-buttons button,
  .neo-token-header .neo-token-header-action-buttons a.neo-token-header-action-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 18px !important;
    line-height: 1;
    text-decoration: none;
  }

  .neo-token-header .neo-token-header-action-buttons img {
    display: block !important;
    width: 70%;
    height: 70%;
    object-fit: contain;
  }

  .neo-token-header .neo-token-header-name-line {
    gap: 8px;
    margin-bottom: 6px;
    align-items: center;
  }

  .neo-token-header .neo-token-header-badges {
    gap: 6px;
  }

  .neo-token-header .neo-token-header-status-category {
    margin-bottom: 8px;
    row-gap: 6px;
  }

  .neo-token-header .neo-token-header-audit-kyc {
    display: none !important;
  }

  .neo-token-header .neo-token-header-contract {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap !important;
    min-width: 0;
    overflow: hidden;
  }

  .neo-token-header .neo-token-header-copy-btn {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
    min-height: 30px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .neo-token-header .neo-token-header-contract-address {
    order: 1;
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal !important;
  }

  .neo-token-header .neo-token-header-links {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    gap: 6px;
    margin-bottom: 10px;
  }

  .neo-token-header .neo-token-header-links > * {
    margin-right: 6px;
  }

  .neo-token-header .neo-token-header-links > *:last-child {
    margin-right: 0;
  }

  .neo-token-header .neo-token-header-link-btn {
    flex-shrink: 0;
    min-height: 40px;
    min-width: 40px;
    padding: 8px 10px;
  }

  .token-single-header .voting-box {
    min-width: 0;
    width: 100%;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .token-single-header .voting-box .vote-count {
    order: 1;
    margin-bottom: 12px;
    justify-content: space-around;
  }

  .token-single-header .voting-box .btn-vote-large,
  .token-single-header .voting-box .neo-token-header-vote-btn {
    order: 2;
    width: 100%;
    min-height: 44px;
  }

  @supports (gap: 1rem) {
    .neo-token-header .neo-token-header-action-buttons > *,
    .neo-token-header .neo-token-header-links > * {
      margin-right: 0;
    }
  }
}

@media (max-width: 480px) {
  .token-single-header.neo-token-header {
    padding: 12px 10px;
    gap: 12px;
  }

  .neo-token-header .neo-token-header-name-line {
    gap: 6px;
  }

  .neo-token-header .neo-token-header-action-buttons button,
  .neo-token-header .neo-token-header-action-buttons a.neo-token-header-action-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .neo-token-header .neo-token-header-action-buttons {
    top: 10px !important;
    right: 10px !important;
    inset: auto 10px auto auto !important;
  }

  .neo-token-header .neo-token-header-link-btn {
    min-height: 36px;
    min-width: 36px;
    padding: 8px;
  }

  .neo-token-header .neo-token-header-copy-btn {
    min-height: 28px;
    padding: 4px 7px;
    font-size: 10px;
  }

  .token-single-header .voting-box .vote-count {
    margin-bottom: 10px;
  }
}
