/* ========================================
 * EC-CUBE BtoB受注サイト - マイ注文ページスタイル
 * ======================================== */

/* ========================================
 * タブナビゲーション（マイ注文用）
 * ======================================== */
.btob-order-tabs {
  display: flex;
  gap: var(--btob-space-sm);
  padding: var(--btob-space-md) var(--btob-space-lg);
  background: var(--btob-bg-white);
  border-bottom: 1px solid var(--btob-border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.btob-order-tabs::-webkit-scrollbar {
  display: none;
}

.btob-order-tabs__tab {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--btob-space-lg);
  height: 36px;
  background: var(--btob-bg-white);
  border: 1px solid var(--btob-border);
  border-radius: var(--btob-radius-pill);
  font-size: var(--btob-font-size-sm);
  font-weight: var(--btob-font-weight-medium);
  color: var(--btob-text);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--btob-transition-fast);
}

.btob-order-tabs__tab:hover {
  border-color: var(--btob-primary);
}

.btob-order-tabs__tab.is-active {
  background: var(--btob-primary);
  border-color: var(--btob-primary);
  color: var(--btob-bg-white);
}

/* ========================================
 * 注文グループ（過去の注文タブ用）
 * ======================================== */
.btob-order-group {
  margin-bottom: var(--btob-space-lg);
}

.btob-order-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--btob-space-sm);
  padding: var(--btob-space-md) var(--btob-space-lg);
  background: var(--btob-bg);
  border-bottom: 1px solid var(--btob-border-light);
}

.btob-order-group__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btob-order-group__date {
  display: flex;
  align-items: center;
  gap: var(--btob-space-sm);
  font-size: var(--btob-font-size-md);
  font-weight: var(--btob-font-weight-bold);
  color: var(--btob-text);
}

.btob-order-group__date-icon {
  font-size: var(--btob-font-size-lg);
}

.btob-order-group__id {
  font-size: var(--btob-font-size-sm);
  color: var(--btob-text-muted);
}

.btob-order-group__action {
  flex-shrink: 0;
}

/* ========================================
 * よく注文する商品 - 追加スタイル
 * ======================================== */
.btob-product--frequent {
  position: relative;
}

.btob-product--frequent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--btob-accent);
}

/* 注文回数バッジ */
.btob-order-count {
  display: inline-flex;
  align-items: center;
  margin-left: var(--btob-space-xs);
  padding: 2px var(--btob-space-xs);
  background: var(--btob-accent);
  border-radius: var(--btob-radius-sm);
  font-size: var(--btob-font-size-xs);
  font-weight: var(--btob-font-weight-bold);
  color: var(--btob-bg-white);
  vertical-align: middle;
}

/* ========================================
 * 固定フッター（マイ注文用）
 * ======================================== */
.btob-bulk-footer--my-order {
  /* bulk-footerのスタイルを継承 */
}

/* チェックボックス付き商品選択 */
.btob-product__checkbox {
  position: absolute;
  top: var(--btob-space-lg);
  right: var(--btob-space-lg);
}

.btob-product__checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--btob-primary);
}

/* ========================================
 * 空状態
 * ======================================== */
.btob-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--btob-space-2xl);
  text-align: center;
}

.btob-empty-state__icon {
  font-size: 48px;
  margin-bottom: var(--btob-space-lg);
  color: var(--btob-text-muted);
}

.btob-empty-state__title {
  font-size: var(--btob-font-size-lg);
  font-weight: var(--btob-font-weight-bold);
  color: var(--btob-text);
  margin-bottom: var(--btob-space-sm);
}

.btob-empty-state__desc {
  font-size: var(--btob-font-size-md);
  color: var(--btob-text-secondary);
  margin-bottom: var(--btob-space-xl);
}

/* ========================================
 * レスポンシブ調整
 * ======================================== */
@media (min-width: 768px) {
  .btob-order-group__header {
    flex-wrap: nowrap;
  }

  .btob-product__checkbox {
    top: 50%;
    transform: translateY(-50%);
  }
}
