/* ===============================
   BASE MODAL (כמו DishDetails)
   =============================== */

.order-summary-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: flex;
  flex-direction: column;

  background: radial-gradient(1200px 800px at 80% -10%, rgba(67, 28, 124, .45), transparent 60%), radial-gradient(900px 700px at -10% 110%, rgba(67, 28, 124, .55), transparent 60%), linear-gradient(180deg, #350a55, #121215);
}

.order-summary-modal.hidden {
  display: none;
}

/* ===============================
   HEADER
   =============================== */

.order-summary-header {
  height: 80px;
  background: linear-gradient(to right, black, #431C7C);

  display: flex;
  align-items: center;
  position: relative;
}

.order-summary-header h2 {
  color: white;
  font-size: 25px;
  margin: 0;
  margin-right: 20px;
}

.order-summary-header .close-button {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  cursor: pointer;
}

/* ===============================
   CONTENT (SCROLL AREA)
   =============================== */

.order-summary-content {
  flex: 1;
  overflow-y: auto;
  background: white;
  padding: 20px;
}

/* ===============================
   ORDER ITEM CARD
   =============================== */

.order-item-card2 {
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;

  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);

  display: flex;
  flex-direction: column;
}

/* --- כפתורים למעלה --- */

.order-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 6px;
}

/* --- גוף הפריט --- */

.order-item-body {
  display: flex;
  align-items: center;
}

/* --- תמונה --- */

.order-item-image {
  width: 72px;
  height: 72px;
  margin-left: 22px;
  flex-shrink: 0;
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

// משלוח
/* כרטיס משלוח */
.delivery-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #f7f3ff, #ffffff);
  border: 1px solid rgba(67, 28, 124, 0.15);
  border-radius: 12px;
  padding: 12px;
}

/* אייקון */
.delivery-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #431C7C;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-icon img {
  width: 28px;
  height: 28px;
}

/* טקסט */
.delivery-info {
  flex: 1;
}

.delivery-title {
  font-size: 15px;
  font-weight: 700;
  color: #431C7C;
}

.delivery-sub {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

/* מחיר */
.delivery-price {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}


/* --- טקסט --- */

.order-item-info {
  flex: 1;
}

.order-item-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.order-item-remarks {
  font-size: 14px;
  opacity: 0.8;
  white-space: pre-line;
}

/* ===============================
   FORM
   =============================== */

.order-field {
  margin-top: 16px;
}

.order-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.order-field input,
.order-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 16px;
}

.order-field textarea {
  min-height: 70px;
  resize: none;
}

.order-field-row {
  display: flex;
  gap: 12px;
}

/* ===============================
   FOOTER
   =============================== */

.order-summary-footer {
  padding: 16px;
  background: #2b0a3d;
}

.order-pay-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 16px;

  font-size: 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;

  background: linear-gradient(
    90deg,
    #431C7C,
    #8B2FC9,
    #C13584,
    #E53935
  );

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}


.order-item-dish-remark {
  margin-top: 4px;
  font-size: 13px;
  color: #555;
  opacity: 0.9;
}

.order-item-dish-remark span {
  font-weight: 500;
  color: #431C7C;
}
