
/* checkout */
.checkout-container {
  max-width: 1100px;
  margin: 50px auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.billing,
.order-summary {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1 1 45%;
  min-width: 300px;
}

.billing h2,
.order-summary h2,
.payment-method h2 {
  margin-bottom: 15px;
  color: #4caf50;
  font-size: 20px;
}

.billing form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.billing label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.billing input,
.billing textarea,
.billing select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.billing textarea {
  resize: vertical;
  min-height: 80px;
}

.full-width {
  grid-column: 1 / -1;
}

.order-summary table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.order-summary table th,
.order-summary table td {
  border-bottom: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.order-summary table th {
  background-color: #f1f1f1;
  color: #555;
}

.order-summary table td:last-child {
  text-align: right;
}

.order-summary .total-row {
  font-weight: bold;
}

.payment-method {
  margin-top: 20px;
}

.payment-method select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.place-order-btn {
  background-color: #4caf50;
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px 0;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.place-order-btn:hover {
  background-color: #388e3c;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .checkout-container {
    flex-direction: column;
  }
  .billing,
  .order-summary {
    flex: 1 1 100%;
  }
  .billing form {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: 1 / -1;
  }
}
