html,
body {
  margin: 0;
  padding: 0;
  background-color: #edefef;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

.right-container {
  width: 100%;
  box-sizing: border-box;
}

.calc-content {
  position: relative;
  width: 800px;
  margin: -122px auto 60px;
  padding: 32px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  z-index: 2;
}

.calc-content--mini {
  width: 520px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
}

.calc-agent {
  position: relative;
  width: 100%;
  padding: 0;
}

.calc-content--mini .calc-agent {
  max-width: 480px;
  flex: 1;
  padding-bottom: 8px;
}

.calc-agent .calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.calc-agent .calc-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.calc-agent .freight-link {
  color: #ef436d;
  font-size: 13px;
  text-decoration: none;
}

.calc-agent .form-card {
  width: 520px;
  margin: 0 auto;
  font-size: 14px;
  color: #333;
}

.calc-content--mini .calc-agent .form-card {
  width: 100%;
}

.calc-agent .form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.calc-agent .form-label {
  width: 120px;
  padding: 7px 18px 0 0;
  margin: 0;
  color: #555;
  text-align: right;
  box-sizing: border-box;
  font-size: 14px;
}

.calc-agent .form-label.required::before {
  content: "*";
  color: #ef436d;
  margin-right: 3px;
}

.calc-agent .form-control {
  flex: 1;
  min-width: 0;
}

.calc-agent .transport-tab {
  border: 0;
  border-radius: 3px;
  background: #f6f6f6;
  color: #333;
  min-width: 52px;
  height: 28px;
  padding: 0 14px;
  margin: 0 12px 0 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 28px;
}

.calc-agent .transport-tab.active {
  background: #ef436d;
  color: #fff;
}

.calc-agent .volume-inputs {
  display: flex;
  gap: 14px;
}

.calc-agent .calc-input {
  width: 96px;
  height: 30px;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  box-sizing: border-box;
  padding: 0 10px;
  outline: none;
  font-size: 13px;
  line-height: 30px;
}

.calc-agent .calc-input--full {
  width: 100%;
}

.calc-agent .tax-options {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 30px;
}

.calc-agent .radio-item,
.calc-agent .check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
}

.calc-agent .radio-item input,
.calc-agent .check-item input {
  accent-color: #2f7df6;
}

.calc-agent .warn-text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 18px;
  color: #ff2d55;
}

.calc-agent .estimate-btn {
  display: block;
  width: 190px;
  height: 32px;
  margin: 20px auto 0;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #ef436d;
  cursor: pointer;
  font-size: 13px;
  line-height: 32px;
  text-align: center;
}

.calc-agent .section-title,
.calc-agent .rule-title {
  width: 462px;
  margin: 28px auto 14px;
  padding-left: 10px;
  border-left: 3px solid #ef436d;
  line-height: 16px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
}

.calc-agent .result-card,
.calc-agent .rule-card {
  width: 462px;
  margin: 0 auto;
  border: 1px solid #f1f1f1;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.calc-agent .result-row {
  display: grid;
  grid-template-columns: 38% 37% 25%;
  align-items: center;
  min-height: 58px;
  padding: 8px 16px;
  border-bottom: 1px solid #f1f1f1;
  box-sizing: border-box;
  text-align: center;
  color: #333;
}

.calc-agent .result-head {
  min-height: 42px;
  background: #fff7f9;
  border-bottom: 0;
}

.calc-agent .head-tag {
  display: inline-block;
  min-width: 82px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.calc-agent .head-tag-route {
  color: #f59a23;
  background: #fff2e7;
}

.calc-agent .head-tag-amount {
  color: #2db3ff;
  background: #eaf6ff;
}

.calc-agent .head-tag-time {
  color: #d867ff;
  background: #fdeeff;
}

.calc-agent .route-name,
.calc-agent .time-cell {
  font-size: 13px;
  color: #333;
}

.calc-agent .fee-price {
  font-size: 20px;
  line-height: 24px;
  color: #ef436d;
  font-weight: 500;
}

.calc-agent .fee-unit,
.calc-agent .reinforce-unit {
  font-size: 12px;
  color: #333;
  margin-left: 1px;
}

.calc-agent .fee-formula {
  font-size: 12px;
  line-height: 16px;
  color: #888;
}

.calc-agent .min-amount {
  font-size: 12px;
  line-height: 16px;
  color: #ff8a00;
}

.calc-agent .disp-line {
  font-size: 12px;
  line-height: 18px;
}

.calc-agent .disp-price {
  color: #ef436d;
  font-size: 16px;
  font-weight: 500;
}

.calc-agent .disp-unit {
  color: #333;
  font-size: 12px;
}

.calc-agent .empty-result {
  padding: 22px;
  text-align: center;
  color: #999;
  border-bottom: 1px solid #f1f1f1;
}

.calc-agent .reinforce-title,
.calc-agent .pallet-title {
  background: #fff7f9;
  text-align: center;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 12px;
}

.calc-agent .reinforce-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 74px;
  padding: 18px 24px 20px;
}

.calc-agent .reinforce-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.calc-agent .reinforce-item img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.calc-agent .reinforce-info {
  min-width: 64px;
  text-align: center;
}

.calc-agent .reinforce-name {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.calc-agent .reinforce-price {
  color: #ef436d;
  font-size: 20px;
  line-height: 22px;
}

.calc-agent .pallet-content {
  padding: 18px 26px 22px;
  font-size: 13px;
  line-height: 20px;
  color: #555;
}

.calc-agent .pallet-content p {
  margin: 0 0 14px;
}

.calc-agent .pallet-content p:last-child {
  margin-bottom: 0;
}

.calc-agent .pallet-warn {
  color: #ff2d55;
  font-weight: 600;
}

.calc-agent .rule-item {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f1f1;
  min-height: 62px;
  box-sizing: border-box;
}

.calc-agent .rule-item:last-child {
  border-bottom: 0;
}

.calc-agent .rule-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #ef436d;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.calc-agent .rule-label img {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.calc-agent .rule-text {
  color: #555;
  font-size: 13px;
  line-height: 19px;
}

.calc-content--mini .calc-agent .form-label {
  width: 104px;
  padding-right: 14px;
}

.calc-content--mini .calc-agent .volume-inputs {
  gap: 8px;
}

.calc-content--mini .calc-agent .calc-input {
  width: 78px;
}

.calc-content--mini .calc-agent .calc-input--full {
  width: 100%;
}

.calc-content--mini .calc-agent .tax-options {
  gap: 16px;
}

.calc-content--mini .calc-agent .section-title,
.calc-content--mini .calc-agent .rule-title,
.calc-content--mini .calc-agent .result-card,
.calc-content--mini .calc-agent .rule-card {
  width: 100%;
}

.calc-content--mini .calc-agent .result-row {
  padding: 8px 10px;
}

.calc-content--mini .calc-agent .reinforce-list {
  gap: 38px;
}

.calc-content--mini .calc-agent .rule-item {
  grid-template-columns: 128px 1fr;
  padding: 16px 14px;
}
