/* ==========================================================================
   checkout-delivery-form.css — نموذج الشحن والتركيب (خطوة الدفع ٢)
   شركة السرعة المطلقة | كل القيم من tokens.css — RTL.
   ملف واحد بثلاث لوحات. تبديل اللوحات مدفوع باختيار .radio-chip (Batch 1):
   كل شريحة تقابل لوحة، وتُظهر JS اللوحة المطابقة (.is-active).
   منطق الإظهار/الإخفاء مؤجّل إلى checkout-steps.js (Batch 7).
   يعيد استخدام .field / .input / .select (Batch 1).
   WC-NOTE: طرق شحن مخصّصة + حقول دفع شرطية
   ========================================================================== */

.delivery-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}
.delivery-form__title {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}
.delivery-form__subtitle {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

/* طرق التركيب — ثلاث شرائح في صف على الأجهزة الأوسع، مكدّسة على الجوال */
.delivery-form__methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
@media (min-width: 480px) {
  .delivery-form__methods {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* اللوحات (Panels) — مخفية افتراضيًا، تظهر عبر .is-active */
.delivery-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-16);
}
.delivery-panel.is-active {
  display: flex;
}

/* مقدّمة اللوحة: وصف الطريقة (يمين) + السعر (يسار) */
.delivery-panel__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-16);
}
.delivery-panel__desc {
  flex: 1;
  font-size: var(--fs-xs);
  line-height: var(--lh-base);
  color: var(--color-text-muted);
}
.delivery-panel__price {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  color: var(--color-text);
}

/* خريطة مراكز الخدمة (الخيار ٢) — نسبة أبعاد فيجما 692×206 */
.delivery-map {
  aspect-ratio: 692 / 206;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.delivery-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* صف لحقول العنوان المزدوجة */
.delivery-panel__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}
@media (min-width: 480px) {
  .delivery-panel__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* لوحة ٢: عنصر نائب للخريطة فقط (لا JS بعد) */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--space-64);
  aspect-ratio: 16 / 9;
  padding: var(--space-24);
  background-color: var(--color-bg-alt);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  text-align: center;
}

/* أزرار التنقّل بين الخطوات */
.delivery-form__actions {
  display: flex;
  gap: var(--space-16);
}
