/* ShipPlus Group — shipping rate table page
   (Figma "shipping-rate-table-desktop" 788:2292, mobile 790:2256) */

.rt-page { background: #fff; }

/* ---------- Breadcrumb ---------- */
.rt-breadcrumb {
  background: #ebf9f8;
  padding: 16px 0;
}
.rt-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 21px;
}
.rt-breadcrumb a { color: #6b7280; }
.rt-breadcrumb a:hover { color: var(--teal); }
.rt-breadcrumb img { width: 14px; height: 14px; }
.rt-breadcrumb .current { color: var(--teal); font-weight: 500; }
.m-only-inline { display: none; }

/* ---------- Page header ---------- */
.rt-header {
  padding: 80px 0;
  background: linear-gradient(180deg, #e7f3fb, #ffffff 80%);
  text-align: center;
}
.rt-header h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  color: var(--slate);
}
.rt-header p {
  margin-top: 8px;
  font-size: 20px;
  line-height: 32px;
  color: #737373;
}

.rt-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 96px;
}

/* ---------- Courier header card ---------- */
.rt-courier-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ebedf1;
}
.rt-courier-left {
  display: flex;
  gap: 24px;
  min-width: 0;
}
.rt-courier-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.rt-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rt-title-row h2 {
  font-size: 28px;
  line-height: 42px;
  font-weight: 700;
  color: #06112a;
}
.rt-courier-sub {
  margin-top: 4px;
  font-size: 14px;
  line-height: 21px;
  color: #6b7280;
}
.rt-badges {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rt-badge {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.rt-badge.mint { background: #e6f8f6; color: var(--teal); }
.rt-badge.blue { background: #eff6ff; color: #1d4ed8; }
.rt-badge.green { background: #ecfdf5; color: #047857; }
.rt-badge.teal { background: #f0fdfa; color: #0f766e; }
.rt-badge.amber { background: #fffbeb; color: #b45309; }
.rt-badge.red { background: #fef2f2; color: #b91c1c; }
.rt-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  width: 180px;
}
.rt-btn-primary,
.rt-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
}
.rt-btn-primary { background: var(--teal); color: #fff; }
.rt-btn-primary:hover { opacity: 0.9; }
.rt-btn-primary img { width: 16px; height: 16px; }
.rt-btn-secondary { border: 1px solid var(--teal); color: var(--teal); }
.rt-btn-secondary:hover { background: #e6f8f6; }

/* ---------- Quick filters ---------- */
.rt-filters-card {
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ebedf1;
}
.rt-filters-card h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #06112a;
}
.rt-filters-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rt-filter { display: flex; flex-direction: column; gap: 8px; }
.rt-filter > span {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: #6b7280;
}
.rt-filter select,
.rt-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #ebedf1;
  border-radius: 8px;
  font-family: var(--font-thai);
  font-size: 14px;
  color: #1c1f25;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}
.rt-filter select {
  background: #fff url("../assets/ic-chev-down.svg") no-repeat right 16px center;
  background-size: 16px;
}
.rt-search { position: relative; display: block; }
.rt-search img {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 16px;
  height: 16px;
}
.rt-search input { padding-left: 44px; }
.rt-search input::placeholder { color: #6b7280; }

/* ---------- Rate table ---------- */
.rt-table-wrap {
  border: 1px solid #ebedf1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.rt-table {
  width: 100%;
  border-collapse: collapse;
}
.rt-table th {
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-align: left;
  padding: 16px 24px;
}
.rt-table td {
  padding: 15px 24px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: #1c1f25;
  border-top: 1px solid #ebedf1;
}
.rt-table td.dim { color: #6b7280; font-weight: 400; }
.rt-table td.price {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--navy);
}
.rt-table tbody tr:nth-child(even) { background: #f8fafc; }
.rt-table tbody tr:hover { background: #f1f3f5; }

/* ---------- Mobile rate cards ---------- */
.rt-cards { display: none; }

/* ---------- Important info ---------- */
.rt-info-card {
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ebedf1;
}
.rt-info-card h3 {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: #06112a;
}
.rt-info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}
.rt-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
}
.rt-info-item.blue { background: #dbeafe; }
.rt-info-item.green { background: #d1fae5; }
.rt-info-item.amber { background: #fef3c7; }
.rt-info-item.red { background: #fee2e2; }
.rt-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rt-info-icon img { width: 20px; height: 20px; }
.rt-info-item strong {
  display: block;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: #06112a;
}
.rt-info-item p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 21px;
  color: #6b7280;
}

/* ---------- Mobile (Figma 790:2256, 390px) ---------- */
@media (max-width: 767px) {
  .rt-page { background: #fafbfd; }

  .rt-breadcrumb { background: transparent; padding: 12px 0; }
  .rt-breadcrumb .container { gap: 6px; font-size: 12px; line-height: 18px; }
  .rt-breadcrumb img { width: 10px; height: 10px; }
  .m-only-inline { display: inline-flex; }

  .rt-content { gap: 16px; padding-bottom: 48px; }

  .rt-courier-card {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .rt-courier-left { gap: 12px; }
  .rt-courier-logo { width: 48px; height: 48px; }
  .rt-title-row { gap: 8px; }
  .rt-title-row h2 { font-size: 20px; line-height: 30px; }
  .rt-badge.mint { padding: 2px 8px; }
  .rt-badges { margin-top: 8px; gap: 6px; }
  .rt-actions { width: 100%; gap: 8px; }
  .rt-btn-secondary { border-width: 1.5px; }

  .rt-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .rt-cards h3 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--navy);
  }
  .rt-rate-card {
    background: #fff;
    border: 1px solid #ebedf1;
    border-radius: 8px;
    padding: 16px;
  }
  .rt-rate-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebedf1;
  }
  .rt-rate-top strong {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--navy);
  }
  .rt-rate-top span {
    font-size: 12px;
    line-height: 18px;
    color: #6b7280;
  }
  .rt-rate-prices {
    display: flex;
    gap: 8px;
    padding-top: 12px;
  }
  .rt-rate-prices > div {
    flex: 1;
    text-align: center;
  }
  .rt-rate-prices span {
    display: block;
    font-size: 11px;
    line-height: 17px;
    color: #6b7280;
  }
  .rt-rate-prices strong {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--navy);
  }
  .rt-showmore { border-width: 1.5px; }

  .rt-info-card { padding: 16px; }
  .rt-info-card h3 { font-size: 16px; line-height: 24px; color: var(--navy); }
  .rt-info-grid { margin-top: 16px; grid-template-columns: 1fr; gap: 16px; }
  .rt-info-item { padding: 0; background: none !important; }
  .rt-info-item::before {
    content: "";
    width: 4px;
    align-self: stretch;
    border-radius: 2px;
    flex-shrink: 0;
  }
  .rt-info-item { gap: 12px; }
  .rt-info-item.blue::before { background: #3b82f6; }
  .rt-info-item.green::before { background: var(--teal); }
  .rt-info-item.amber::before { background: #d97706; }
  .rt-info-item.red::before { background: #ef4444; }
  .rt-info-icon { width: 32px; height: 32px; }
  .rt-info-icon img { width: 14px; height: 14px; }
  .rt-info-item.blue .rt-info-icon { background: #eff6ff; }
  .rt-info-item.green .rt-info-icon { background: #f0fdfa; }
  .rt-info-item.amber .rt-info-icon { background: #fffbeb; }
  .rt-info-item.red .rt-info-icon { background: #fef2f2; }
  .rt-info-item strong { font-size: 13px; line-height: 20px; color: #1c1f25; }
  .rt-info-item p { margin-top: 2px; font-size: 11px; line-height: 17px; }
}
