/* 文件职责：订单大厅工具栏样式。 */
.ob-toolbar-shell {
  width: 100%;
  max-width: 920px;

  .ob-store-select .ant-select-selector {
    height: 32px !important;
    padding-top: 1px;
    border-radius: 8px !important;
  }

  .ob-store-select .ant-select-selection-item,
  .ob-store-select .ant-select-selection-placeholder {
    font-size: 13px;
    line-height: 30px !important;
  }
}

.ob-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;

  .ob-channels {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 2px;
    background: #f2f4f7;
    border-radius: 999px;
  }

  .ob-channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    color: rgb(0 0 0 / 55%);
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 999px;
    transition: all 0.2s;

    &.active {
      color: #1677ff;
      background: #fff;
      box-shadow: 0 1px 3px rgb(22 119 255 / 18%);
    }
  }

  .ob-store-select {
    width: 180px;
  }

  .ob-toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-left: 6px;
  }

  .ob-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgb(0 0 0 / 65%);
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    transition: all 0.2s;

    .vben-iconify {
      width: 16px;
      height: 16px;
    }

    &:hover {
      color: #1677ff;
      border-color: #1677ff;
    }

    &.active {
      color: #fff;
      background: #1677ff;
      border-color: #1677ff;
    }
  }

  .ob-icon-btn--offline {
    color: #fa8c16;
  }

  .ob-connection {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: #23b26b;

    .ob-connection-dot {
      width: 7px;
      height: 7px;
      background: currentcolor;
      border-radius: 50%;
    }

    &.offline {
      color: #f59e0b;
    }
  }
}

@media (max-width: 1200px) {
  .ob-toolbar-shell {
    max-width: 100%;

    .ob-toolbar-actions {
      justify-content: flex-start;
    }
  }
}

@media (max-width: 768px) {
  .ob-toolbar-shell {
    .ob-store-select {
      width: 100%;
    }

    .ob-toolbar-actions {
      gap: 8px;
      justify-content: flex-start;
      width: 100%;
    }

    .ob-channels {
      width: 100%;
      overflow-x: auto;
      white-space: nowrap;
    }

    .ob-toolbar-right {
      justify-content: space-between;
      width: 100%;
      padding-left: 0;
    }
  }
}
