/* ===============================
   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;
}

/* Gift option in order summary — compact RTL presentation. */
.anikan-gift-section{margin:14px 0 18px;direction:rtl}
.anikan-gift-toggle{width:100%;padding:15px 18px;border:1px solid #c9afe3;border-radius:16px;background:linear-gradient(120deg,#f6efff,#eee2ff);color:#4d2477;font-size:16px;font-weight:700;text-align:right;cursor:pointer}
.anikan-gift-fields{margin-top:10px;padding:15px;border:1px solid #e4d7f5;border-radius:15px;background:#fff;display:grid;gap:7px}
.anikan-gift-fields.hidden{display:none}
.anikan-gift-fields label{font-size:14px;font-weight:700;color:#44225e;margin-top:5px}
.anikan-gift-fields input,.anikan-gift-fields textarea{box-sizing:border-box;width:100%;font:inherit;direction:rtl;padding:11px 12px;border:1px solid #d2c9df;border-radius:10px;outline-color:#743aaf;background:white;color:#222}
.anikan-gift-fields textarea{resize:vertical}
.anikan-gift-hint{font-size:13px;color:#585168;line-height:1.6;margin:3px 0}
.anikan-gift-fee{font-size:14px;font-weight:700;color:#5b2594}
.anikan-gift-remove{border:0;background:transparent;color:#a32c4a;text-decoration:underline;text-align:right;cursor:pointer;padding:8px 0;font-size:13px}
