* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Smythe", system-ui;
  font-weight: 400;
  font-style: normal;
}

body {
  padding-bottom: 180px; /* space for fixed order footer */
}

header {
  background-image: url(./assets/header.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 30px;
  text-align: right;
}

h2 {
  text-align: center;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
}

#menu-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.menu-item {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
}

.menu-item .item-emoji {
  font-size: 3rem;
}

.menu-item i {
  font-size: 20px;
  color: #000;
}

.menu-item-details {
  display: flex;
  flex-direction: column;
  width: 70%;
}

.menu-item h3 {
  font-size: 20px;
  font-weight: 600;
}

.menu-item p {
  font-size: 14px;
  font-weight: 400;
  color: #8b8b8b;
}

.menu-item p:last-child {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.menu-item button {
  background-color: #fff;
  border: none;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  padding: 10px;
}

.order-success-message {
  display: block;
  margin-top: 24px;
  padding: 24px 32px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #065f46;
  background: #ecfdf5;
  border-radius: 8px;
}

.order-success-message[hidden] {
  display: none;
}

#order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  gap: 12px;
}

.order-item-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-item-size-price {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.order-size-select {
  font-family: inherit;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #393333;
}

.order-item-price {
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 2.5ch;
}

/* Fixed order footer at bottom of viewport */
.order-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px 0 24px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.order-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

.order-separator {
  height: 0;
  border-top: 1px solid #393333;
  margin: 0 0 12px;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.payment-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  color: #fff;
  background: #16db99;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.payment-btn:hover {
  background: #13c289;
}

.remove-item-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: #a0a0a0;
}
.remove-item-btn:hover {
  color: #4a4a4a;
}

/* Payment modal popup */
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.payment-modal-hidden {
  display: none;
}

.payment-modal[aria-hidden="true"] {
  display: none;
}

.payment-modal[aria-hidden="false"] {
  display: flex;
}

.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.payment-modal-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.payment-modal-title {
  margin: 0 0 24px;
  font-size: 24px;
  text-align: center;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-form label {
  font-size: 14px;
  font-weight: 600;
}

.payment-form input {
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #757575;
  border-radius: 8px;
}

.payment-form input::placeholder {
  color: #9ca3af;
}

.payment-form-btn {
  margin-top: 8px;
  padding: 16px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: #16db99;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.payment-form-btn:hover {
  background: #13c289;
}
