/* Shared order modal + buttons (Arabic RTL friendly) */

.order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #22bb33;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(34,187,51,0.20);
}

.order-btn:hover { filter: brightness(0.98); }

.order-btn:active { transform: translateY(1px); }

.order-btn--block { width: 100%; }

.order-btn--mini {
  padding: 8px 14px;
  font-size: 11px;
}

.order-btn--table {
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 11px;
}

/* Modal */
.order-modal[hidden] { display: none !important; }

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.order-modal__card {
  position: relative;
  max-width: 520px;
  margin: 7vh auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.20);
  border: 1px solid #efefef;
  padding: 18px 16px;
}

.order-modal__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: #003f7f;
}

.order-modal__sub {
  margin: 0 0 10px;
  font-size: 12px;
  color: #555;
}

.order-modal__close {
  position: absolute;
  top: 8px;
  left: 8px; /* RTL: keep close on the left for consistency */
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.order-form {
  display: grid;
  gap: 10px;
}

.order-field label {
  display: block;
  font-size: 11px;
  color: #444;
  margin-bottom: 4px;
  font-weight: 700;
}

.order-field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #e7e7e7;
  background: #fafafa;
  outline: none;
  font-size: 13px;
}

.order-field input:focus {
  background: #fff;
  border-color: #bcdcff;
  box-shadow: 0 0 0 3px rgba(0,92,170,0.08);
}

.order-modal__actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.order-hint {
  font-size: 10px;
  color: #777;
  margin: 0;
}

.order-error {
  font-size: 11px;
  color: #b00020;
  margin: 0;
  display: none;
}

.order-error.is-visible { display: block; }

@media (max-width: 560px) {
  .order-modal__card { margin: 10vh 12px; }
}
