/* Basic styles for the Pizzeria Order Plugin. These styles ensure
   the menu grid and cart display nicely even if the active theme
   doesn’t supply its own definitions. */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.menu-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.menu-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.menu-item .details {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-item h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #2e7d32;
}

.menu-item p {
  margin: 10px 0;
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
}

.menu-item .price {
  font-weight: bold;
  color: #c62828;
  margin-bottom: 10px;
}

.menu-item .btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #2e7d32;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.menu-item .btn:hover {
  background-color: #c62828;
}

.pizzeria-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.pizzeria-cart-table th,
.pizzeria-cart-table td {
  border-bottom: 1px solid #e0e0e0;
  padding: 8px;
  font-size: 0.95rem;
}

.pizzeria-cart-table thead th {
  background-color: #fafafa;
  font-weight: 600;
}

.pizzeria-cart-table tfoot td {
  font-weight: bold;
}

.pizzeria-order-form {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.pizzeria-order-form h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #c62828;
}

.pizzeria-order-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.pizzeria-order-form input[type="text"],
.pizzeria-order-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

.pizzeria-order-form button.btn {
  padding: 10px 20px;
  background-color: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pizzeria-order-form button.btn:hover {
  background-color: #c62828;
}

.pizzeria-order-success {
  padding: 15px;
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  color: #2e7d32;
  margin-bottom: 20px;
}