.checkout-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  
  @media (min-width: 768px) {
    grid-template-columns: 3fr 2fr;
  }
}

.checkout-form-container {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  
  label {
    font-weight: 500;
    font-size: 0.9rem;
  }
  
  input, select, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s;
    
    &:focus {
      border-color: #4a90e2;
      outline: none;
    }
  }
  
  textarea {
    resize: vertical;
    min-height: 80px;
  }
}

.form-row {
  display: flex;
  gap: 15px;
  
  .form-group {
    flex: 1;
  }
  
  @media (max-width: 576px) {
    flex-direction: column;
    gap: 10px;
  }
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-method-option {
  position: relative;
  
  input[type="radio"] {
    position: absolute;
    opacity: 0;
    
    &:checked + .payment-label {
      border-color: #4a90e2;
      background-color: rgba(74, 144, 226, 0.05);
    }
  }
}

.payment-label {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  
  &:hover {
    border-color: #aaa;
  }
}

.payment-icon {
  width: 40px;
  height: 25px;
  object-fit: contain;
  margin-right: 10px;
}

.payment-details {
  display: flex;
  flex-direction: column;
}

.payment-name {
  font-weight: 600;
}

.payment-description, .payment-fee {
  font-size: 0.8rem;
  color: #777;
}

.checkout-button {
  margin-top: 15px;
  padding: 15px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  
  &:hover {
    background-color: #3a80d2;
  }
  
  &:disabled {
    background-color: #aaa;
    cursor: not-allowed;
  }
}

.order-summary {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  align-self: flex-start;
  position: sticky;
  top: 20px;
}

.order-items {
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  
  &:last-child {
    border-bottom: none;
  }
}

.item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.item-details {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-weight: 500;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.item-price {
  color: #777;
  font-size: 0.85rem;
}

.item-total {
  font-weight: 600;
}

.empty-cart {
  text-align: center;
  color: #777;
  padding: 20px 0;
}

.order-totals {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.grand-total {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid #4a90e2;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-payment-methods {
  text-align: center;
  color: #e74c3c;
  padding: 15px;
  border: 1px dashed #ddd;
  border-radius: 4px;
}
