/**
 * JA Courier Quick Lookup Calculator
 * Brand: green #009B3A · gold #FFD100
 */
.jaqlc-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-top: 4px solid #009B3A;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.jaqlc-header { text-align: center; margin-bottom: 24px; }
.jaqlc-logo {
  max-height: 60px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
  border: 2px solid #FFD100;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}
.jaqlc-title {
  margin: 0 0 8px;
  color: #009B3A;
  font-size: 1.5rem;
  font-weight: 800;
}
.jaqlc-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}
.jaqlc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 560px) {
  .jaqlc-grid { grid-template-columns: 1fr 1fr; }
  .jaqlc-field:first-child { grid-column: 1 / -1; }
}
.jaqlc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #1e293b;
}
.jaqlc-field select,
.jaqlc-field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  box-sizing: border-box;
}
.jaqlc-field select:focus,
.jaqlc-field input[type="number"]:focus {
  border-color: #009B3A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,155,58,0.15);
}
.jaqlc-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #64748b;
}
.jaqlc-result {
  background: #f0fdf4;
  border: 2px solid #009B3A;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.jaqlc-result-label {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 0.9rem;
}
.jaqlc-result-price {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #009B3A;
}
.jaqlc-result-usd {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #475569;
}
.jaqlc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.jaqlc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #009B3A, #007A2E);
  color: #fff !important;
  border-color: #FFD100;
}
.jaqlc-btn:hover { filter: brightness(1.05); color: #fff !important; }
.jaqlc-btn-secondary {
  background: #0d1f0d;
  border-color: #334155;
}
.jaqlc-theme-required { color: #b45309; }

/* Rate table: quantity | price columns */
.jaqlc-rate-table-wrap {
  margin: 16px 0 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}
.jaqlc-rate-table-wrap > summary {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.jaqlc-rate-table-wrap > summary::-webkit-details-marker { display: none; }
.jaqlc-rate-table-wrap > summary::before {
  content: "▸ ";
  color: #009B3A;
  font-weight: 700;
}
.jaqlc-rate-table-wrap[open] > summary::before { content: "▾ "; }
.jaqlc-rate-table-scroll {
  max-height: 280px;
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
}
.jaqlc-rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.jaqlc-rate-table th,
.jaqlc-rate-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.jaqlc-rate-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  position: sticky;
  top: 0;
  z-index: 1;
}
.jaqlc-rate-table th:first-child,
.jaqlc-rate-table td:first-child {
  width: 45%;
}
.jaqlc-rate-table tbody tr.is-selected {
  background: #ecfdf5;
}
.jaqlc-rate-table tbody tr.is-selected td {
  font-weight: 600;
  color: #009B3A;
}
.jaqlc-rate-table tbody tr:hover {
  background: #f0fdf4;
}

/* Country / State / Currency — one horizontal row, 33.33% each column */
.jaqlc-calculator .jaqlc-grid.jacms-calc-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}
.jaqlc-calculator .jaqlc-grid.jacms-calc-grid > .jaqlc-field {
  flex: 0 0 33.33% !important;
  width: 33.33% !important;
  max-width: 33.33% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  padding-right: 0;
}
.jaqlc-calculator .jaqlc-grid.jacms-calc-grid > .jaqlc-field:nth-child(1),
.jaqlc-calculator .jaqlc-grid.jacms-calc-grid > .jaqlc-field:nth-child(2),
.jaqlc-calculator .jaqlc-grid.jacms-calc-grid > .jaqlc-field:nth-child(3) {
  width: 33.33% !important;
  flex-basis: 33.33% !important;
}
.jaqlc-calculator .jaqlc-grid.jacms-calc-grid .jaqlc-field label {
  display: block;
  margin-bottom: 6px;
}
.jaqlc-calculator .jaqlc-grid.jacms-calc-grid .jaqlc-field select,
.jaqlc-calculator .jaqlc-grid.jacms-calc-grid .jaqlc-field input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .jaqlc-calculator .jaqlc-grid.jacms-calc-grid {
    flex-wrap: wrap !important;
  }
  .jaqlc-calculator .jaqlc-grid.jacms-calc-grid > .jaqlc-field {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
