.freight-dialog {
  width: min(920px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px);
}

.freight-dialog .el-dialog__header {
  padding: 18px 24px 8px;
}

.freight-dialog .el-dialog__title {
  color: #3d3d3d;
  font-size: 16px;
  font-weight: 600;
}

.freight-dialog .el-dialog__body {
  padding: 8px 24px 24px;
}

.freight-main {
  width: 860px;
  max-width: 100%;
  margin: 0 auto;
}

.freight-main--modal {
  min-height: 260px;
}

.freight-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 34px;
  margin-bottom: 8px;
}

.freight-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #666666;
  font-size: 14px;
  line-height: 34px;
  padding: 0 0 8px;
  cursor: pointer;
  outline: none;
}

.freight-tab img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.freight-tab.active {
  color: #ef436d;
  font-weight: 600;
}

.freight-tab-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.freight-tab.active .freight-tab-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: #ef436d;
  transform: translateX(-50%);
}

.freight-panel {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 6px;
  overflow: hidden;
}

.freight-table-head,
.freight-tax-row,
.freight-table-row,
.freight-rule-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e9edf3;
  box-sizing: border-box;
}

.freight-table-head {
  height: 48px;
  background: #f8f8f8;
  color: #777777;
  font-size: 14px;
}

.freight-tax-row {
  min-height: 48px;
  color: #666666;
  font-size: 13px;
}

.freight-tax-spacer {
  min-height: 48px;
}

.freight-tax-options {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 48px;
  padding: 0 12px;
}

.freight-tax-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.freight-tax-item input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #2b6bff;
}

.freight-table-row {
  min-height: 54px;
  color: #3d3d3d;
  font-size: 14px;
}

.freight-col {
  box-sizing: border-box;
  padding: 0 12px;
  min-width: 0;
  text-align: center;
}

.freight-col-warehouse {
  width: 190px;
  text-align: left;
  padding-left: 42px;
}

.freight-col-days {
  width: 180px;
}

.freight-col-price {
  flex: 1;
}

.freight-warehouse {
  font-weight: 600;
  line-height: 22px;
}

.freight-line-name {
  color: #777777;
  font-size: 12px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.freight-rule-list {
  background: #ffffff;
}

.freight-rule-item {
  align-items: flex-start;
  min-height: 64px;
  padding: 18px 42px;
}

.freight-rule-item:last-child {
  border-bottom: none;
}

.freight-rule-meta {
  display: flex;
  align-items: center;
  width: 140px;
  flex-shrink: 0;
  color: #ef436d;
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
}

.freight-rule-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 8px;
  flex-shrink: 0;
}

.freight-rule-text {
  flex: 1;
  color: #3d3d3d;
  font-size: 13px;
  line-height: 22px;
  word-break: break-word;
}
