/* =========================
   Shippo & EP Container Styles
   ========================= */

.shippo-container,
.ep-container {
  max-width: 700px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.shippo-container form label,
#ep-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

.shippo-container input,
#ep-form input,
.shippo-container select {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.shippo-container input:focus,
#ep-form input:focus,
.shippo-container select:focus {
  border-color: #007bff;
  outline: none;
}

button[type="submit"],
#ep-form button {
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover,
#ep-form button:hover {
  background-color: #0056b3;
  transform: scale(1.02);
}

/* =========================
   Results Table Styles
   ========================= */

#shippo-results table,
#ep-results table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-size: 15px;
}

#shippo-results th,
#shippo-results td,
#ep-results th,
#ep-results td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

#shippo-results th,
#ep-results th {
  background-color: #f1f1f1;
  font-weight: bold;
}

#shippo-results tr:hover,
#ep-results tr:hover {
  background-color: #f9f9f9;
  transform: scale(1.01);
  transition: all 0.2s ease-in-out;
}

#shippo-results img,
#ep-results img {
  max-height: 30px;
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
}

/* =========================
   Layout Helpers
   ========================= */

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-row.single {
  flex-direction: column;
}

.form-row.dimensions > div {
  flex: 1;
}

/* =========================
   Responsive Adjustments
   ========================= */

@media (max-width: 768px) {
  .shippo-container,
  .ep-container {
    padding: 15px;
    margin: 20px auto;
  }

  #shippo-results table,
  #ep-results table {
    font-size: 14px;
  }

  button[type="submit"],
  #ep-form button {
    padding: 10px 15px;
  }

  .form-row {
    flex-direction: column;
  }
}
