/* Rento Offers v0.2.0 – يتبع خط الموقع (Almarai) وألوان رينتو */
.ro-offer {
  --ro-brand: #b02486;
  --ro-brand-d: #8a1b69;
  --ro-brand-l: #fbeff6;
  --ro-brand-m: #f3d9ea;
  --ro-accent: #fb6a27;
  --ro-gold: #ffa100;
  --ro-ink: #1a202c;
  --ro-muted: #5f6b7a;
  --ro-line: #e6e9ef;
  --ro-soft: #f7f8fb;
  --ro-ok: #13804a;
  --ro-err: #b82105;
  --ro-r: 18px;
  --ro-shadow: 0 1px 2px rgba(26, 32, 44, .04), 0 8px 24px rgba(26, 32, 44, .06);
  font-family: inherit;
  color: var(--ro-ink);
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 110px;
  line-height: 1.6;
}
.ro-offer *, .ro-offer *::before, .ro-offer *::after { box-sizing: border-box; }
.ro-offer button { font-family: inherit; }
.ro-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }

/* الرأس */
.ro-hero { position: relative; overflow: hidden; margin: 0 0 18px; padding: 22px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #d23aa1 0%, var(--ro-brand) 45%, #5e1247 100%); }
.ro-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); inset-inline-end: -80px; bottom: -120px; }
.ro-hero-title { position: relative; z-index: 1; color: #fff; font-size: 30px; font-weight: 800; line-height: 1.25; margin: 12px 0 0; }
.ro-hero-txt { position: relative; z-index: 2; }
.ro-hero.has-img { min-height: 380px; display: flex; align-items: center; padding: 32px; }
.ro-hero-img { position: absolute; inset: 0; z-index: 0; }
.ro-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ro-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(78, 12, 60, .94) 0%, rgba(120, 22, 92, .72) 38%, rgba(120, 22, 92, 0) 72%); }
.ro-offer[dir=rtl] .ro-hero.has-img::before { background: linear-gradient(to left, rgba(78, 12, 60, .94) 0%, rgba(120, 22, 92, .72) 38%, rgba(120, 22, 92, 0) 72%); }
.ro-hero.has-img::after { display: none; }
.ro-hero.has-img .ro-hero-txt { max-width: 640px; }
.ro-badge { display: inline-block; background: var(--ro-gold); color: #3b2300; font-weight: 800; padding: 5px 16px; border-radius: 999px; font-size: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); animation: ro-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.ro-lead { font-size: 19px; margin: 12px 0 6px; color: #fff; position: relative; z-index: 1; }
.ro-features { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.ro-features li { background: rgba(255, 255, 255, .16); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 14px; backdrop-filter: blur(4px); }
.ro-features li::before { content: "✓ "; font-weight: 800; color: var(--ro-gold); }
.ro-valid { color: rgba(255, 255, 255, .85); font-size: 14px; margin: 12px 0 0; position: relative; z-index: 1; }
.ro-ended { background: var(--ro-soft); border: 1px solid var(--ro-line); padding: 18px; border-radius: var(--ro-r); text-align: center; }
.ro-desc { margin-top: 28px; }

/* شريط التقدم */
.ro-progress { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); padding: 10px 4px 8px; margin: 0 0 14px; border-bottom: 1px solid var(--ro-line); }
.admin-bar .ro-progress { top: 32px; }
.ro-progress-track { height: 4px; background: var(--ro-line); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.ro-progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--ro-brand), var(--ro-accent)); border-radius: 4px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.ro-progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ro-progress button { width: 100%; background: none; border: 0; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ro-muted); font-size: 12px; cursor: pointer; }
.ro-progress .ro-i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ro-soft); box-sizing: content-box; transition: background .25s, color .25s; }
.ro-progress li.is-cur button { color: var(--ro-brand); font-weight: 800; }
.ro-progress li.is-cur .ro-i { background: var(--ro-brand); color: #fff; box-shadow: 0 0 0 4px var(--ro-brand-l); }
.ro-progress li.is-done button { color: var(--ro-ok); }
.ro-progress li.is-done .ro-i { background: var(--ro-ok); color: #fff; stroke-width: 2.6; }

/* الخطوات */
.ro-step { background: #fff; border: 1px solid var(--ro-line); border-radius: var(--ro-r); padding: 20px; margin: 0 0 14px; scroll-margin-top: 110px; box-shadow: var(--ro-shadow); animation: ro-in .35s cubic-bezier(.2, .8, .2, 1) both; transition: border-color .3s; }
.ro-step.is-done { border-color: #cfe9da; }
.ro-step-h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.ro-step-h h3 { font-size: 19px; margin: 0; font-weight: 800; line-height: 1.3; }
.ro-step-h p { margin: 2px 0 0; color: var(--ro-muted); font-size: 14px; }
.ro-num { width: 34px; height: 34px; border-radius: 12px; background: var(--ro-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; flex: none; transition: background .3s, transform .3s; }
.ro-num .ro-i { width: 18px; height: 18px; stroke-width: 3; }
.ro-step.is-done .ro-num { background: var(--ro-ok); animation: ro-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ro-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ro-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

.ro-note { color: var(--ro-muted); font-size: 14px; margin: 0 0 10px; }
.ro-note-i { display: flex; align-items: center; gap: 6px; }
.ro-note-i .ro-i { color: var(--ro-brand); width: 18px; height: 18px; }
.ro-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ro-brand); animation: ro-pulse 1.2s infinite; }
@keyframes ro-pulse { 0% { box-shadow: 0 0 0 0 rgba(176, 36, 134, .5); } 100% { box-shadow: 0 0 0 12px rgba(176, 36, 134, 0); } }
.ro-error { color: var(--ro-err); font-size: 14px; margin: 8px 0 0; }
.ro-empty { background: #fff7ed; color: #8a3b0e; padding: 12px 14px; border-radius: 12px; margin: 0 0 12px; }
.ro-link { background: none; border: 0; color: var(--ro-brand); padding: 0; cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* المدن والتواريخ */
.ro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ro-chip { border: 1.5px solid var(--ro-line); background: #fff; color: var(--ro-ink); padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 15px; min-height: 42px; transition: all .2s; }
.ro-chip:hover { border-color: var(--ro-brand); color: var(--ro-brand); }
.ro-chip.is-on { background: var(--ro-brand); border-color: var(--ro-brand); color: #fff; font-weight: 700; box-shadow: 0 6px 14px rgba(176, 36, 134, .25); }
.ro-dates { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.ro-date { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--ro-line); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; background: #fff; }
.ro-date:hover, .ro-date:focus-within { border-color: var(--ro-brand); box-shadow: 0 0 0 4px var(--ro-brand-l); }
.ro-date-k { display: flex; align-items: center; gap: 6px; color: var(--ro-muted); font-size: 13px; }
.ro-date-k .ro-i { width: 16px; height: 16px; color: var(--ro-brand); }
.ro-date b { font-size: 16px; }
.ro-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; }
.ro-days { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; border-radius: 14px; background: var(--ro-brand-l); color: var(--ro-brand-d); line-height: 1.1; }
.ro-days b { font-size: 24px; }
.ro-days span { font-size: 12px; }

/* السيارات */
.ro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; transition: opacity .25s; }
.ro-grid.is-busy { opacity: .5; pointer-events: none; }
.ro-card { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: start; background: #fff; border: 2px solid var(--ro-line); border-radius: var(--ro-r); padding: 14px; cursor: pointer; color: var(--ro-ink); transition: transform .2s, border-color .2s, box-shadow .2s; animation: ro-in .4s calc(var(--i, 0) * 60ms) both; font-size: inherit; }
.ro-card:not(.is-off):hover { transform: translateY(-3px); border-color: var(--ro-brand-m); box-shadow: 0 14px 30px rgba(176, 36, 134, .12); }
.ro-card.is-on { border-color: var(--ro-brand); box-shadow: 0 0 0 4px var(--ro-brand-l), 0 14px 30px rgba(176, 36, 134, .15); }
.ro-card.is-skel { min-height: 300px; background: linear-gradient(90deg, #f2f4f8 25%, #e8ebf1 37%, #f2f4f8 63%); background-size: 400% 100%; animation: ro-skel 1.2s infinite; border-color: transparent; }
@keyframes ro-skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
.ro-card-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--ro-accent); color: #fff; font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; z-index: 2; box-shadow: 0 4px 10px rgba(251, 106, 39, .35); }
.ro-card-save { position: absolute; top: 12px; inset-inline-end: 12px; background: #e8f6ee; color: var(--ro-ok); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; z-index: 2; }
.ro-card-img { display: flex; align-items: center; justify-content: center; height: 140px; margin: 14px 0 4px; border-radius: 12px; background: radial-gradient(70% 60% at 50% 70%, var(--ro-soft) 0%, #fff 70%); }
.ro-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ro-card:not(.is-off):hover .ro-card-img img, .ro-card.is-on .ro-card-img img { transform: scale(1.06) translateX(calc(var(--ro-dir, 1) * -4px)); }
.ro-i-ph { width: 64px; height: 64px; color: var(--ro-line); }
.ro-card-name { font-weight: 800; font-size: 17px; }
.ro-card-name small { color: var(--ro-muted); font-weight: 400; }
.ro-specs { display: flex; gap: 12px; font-size: 13px; color: var(--ro-muted); flex-wrap: wrap; }
.ro-specs span { display: inline-flex; align-items: center; gap: 4px; }
.ro-specs .ro-i { width: 16px; height: 16px; }
.ro-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ro-price del { color: var(--ro-muted); font-size: 15px; }
.ro-price b { font-size: 26px; color: var(--ro-brand); line-height: 1; }
.ro-price small { color: var(--ro-muted); }
.ro-card-total { font-size: 12px; color: var(--ro-muted); }
.ro-pick { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 10px; background: var(--ro-brand-l); font-weight: 800; color: var(--ro-brand); transition: background .2s, color .2s; }
.ro-pick .ro-i { width: 18px; height: 18px; stroke-width: 3; }
.ro-card.is-on .ro-pick { background: var(--ro-brand); color: #fff; }

/* غير متوفرة */
.ro-card.is-off { cursor: default; background: var(--ro-soft); border-style: dashed; }
.ro-card.is-off .ro-card-img img { filter: grayscale(1); opacity: .55; }
.ro-card.is-off .ro-card-name, .ro-card.is-off .ro-specs { opacity: .6; }
.ro-card.is-off .ro-card-badge { background: #9aa3af; box-shadow: none; }
.ro-off-ribbon { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: #fdecea; color: var(--ro-err); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 8px; }
.ro-where { font-size: 13px; color: var(--ro-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
.ro-where-c { border: 1px solid var(--ro-brand-m); background: #fff; color: var(--ro-brand); border-radius: 999px; padding: 2px 10px; font-size: 13px; cursor: pointer; }
.ro-where-c:hover { background: var(--ro-brand); color: #fff; }

/* الاستلام */
.ro-modes, .ro-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ro-mode { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; border: 2px solid var(--ro-line); background: #fff; border-radius: 16px; cursor: pointer; color: var(--ro-ink); transition: all .2s; text-align: center; }
.ro-mode .ro-i { width: 32px; height: 32px; color: var(--ro-brand); stroke-width: 1.6; }
.ro-mode b { font-size: 16px; }
.ro-mode small { color: var(--ro-muted); font-size: 13px; }
.ro-mode:hover { border-color: var(--ro-brand-m); }
.ro-mode.is-on { border-color: var(--ro-brand); background: var(--ro-brand-l); box-shadow: 0 8px 20px rgba(176, 36, 134, .12); }
.ro-mode.is-on .ro-i { animation: ro-pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.ro-tabs button { min-height: 48px; border: 2px solid var(--ro-line); background: #fff; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ro-ink); }
.ro-tabs button.is-on { border-color: var(--ro-brand); background: var(--ro-brand-l); color: var(--ro-brand-d); }
.ro-branches, .ro-pay { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ro-radio { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--ro-line); border-radius: 14px; padding: 12px 14px; cursor: pointer; min-height: 54px; transition: all .2s; background: #fff; }
.ro-radio:hover { border-color: var(--ro-brand-m); }
.ro-radio.is-on { border-color: var(--ro-brand); background: var(--ro-brand-l); }
.ro-radio.is-off { opacity: .55; cursor: not-allowed; }
.ro-radio input { accent-color: var(--ro-brand); width: 18px; height: 18px; flex: none; margin: 0; }
.ro-radio > .ro-i { color: var(--ro-brand); }
.ro-payopt span { display: flex; flex-direction: column; line-height: 1.35; }
.ro-payopt small { color: var(--ro-muted); font-size: 12px; }
.ro-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ro-muted); margin-bottom: 12px; }
.ro-offer input[type=tel], .ro-offer input[type=email], .ro-offer input:not([type]), .ro-offer select, .ro-offer textarea {
  width: 100%; min-height: 48px; border: 1.5px solid var(--ro-line); border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 16px; color: var(--ro-ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.ro-offer input:focus, .ro-offer select:focus, .ro-offer textarea:focus { outline: none; border-color: var(--ro-brand); box-shadow: 0 0 0 4px var(--ro-brand-l); }
.ro-addr-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ro-muted); margin: -4px 0 6px; min-height: 18px; }
.ro-addr-hint .ro-i { width: 16px; height: 16px; }
.ro-addr-hint.is-filled { color: var(--ro-ok); }
.ro-addr-hint.is-filled .ro-i { stroke-width: 2.6; }
.ro-addr-hint.is-locating { color: var(--ro-brand); }
.ro-spin-b { width: 14px; height: 14px; border-color: var(--ro-brand-l); border-top-color: var(--ro-brand); }
.ro-locate { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px dashed var(--ro-brand-m); color: var(--ro-brand); border-radius: 12px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.ro-locate.is-on { border-style: solid; border-color: #bfe5cf; color: var(--ro-ok); background: #f1faf5; }
.ro-locate.is-busy { opacity: .6; }
.ro-times { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.ro-time { min-width: 0; }
.ro-time-k { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ro-muted); margin-bottom: 8px; }
.ro-time-k .ro-i { width: 17px; height: 17px; color: var(--ro-brand); }
.ro-time-k b { color: var(--ro-ink); }
.ro-slots { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ro-slot { flex: none; scroll-snap-align: start; border: 1.5px solid var(--ro-line); background: #fff; color: var(--ro-ink); border-radius: 12px; padding: 9px 14px; font-size: 14px; cursor: pointer; white-space: nowrap; transition: all .15s; direction: ltr; }
.ro-slot:hover { border-color: var(--ro-brand-m); }
.ro-slot.is-on { background: var(--ro-brand); border-color: var(--ro-brand); color: #fff; font-weight: 800; box-shadow: 0 6px 14px rgba(176, 36, 134, .25); }

/* الدخول */
.ro-phone { display: flex; gap: 6px; }
.ro-phone select { width: 104px; flex: none; }
.ro-otp { font-size: 28px !important; letter-spacing: 12px; text-align: center; max-width: 260px; margin-bottom: 12px; font-weight: 800; }
.ro-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ro-user { display: flex; align-items: center; gap: 12px; background: var(--ro-soft); border-radius: 14px; padding: 12px 14px; }
.ro-user div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.ro-user small { color: var(--ro-muted); text-align: start; }
.ro-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--ro-brand), var(--ro-accent)); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.ro-secure { display: flex; align-items: center; gap: 6px; color: var(--ro-muted); font-size: 13px; margin: 12px 0 0; }
.ro-secure .ro-i { width: 16px; height: 16px; color: var(--ro-ok); }

/* الأزرار */
.ro-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ro-brand); color: #fff; border: 0; border-radius: 14px; min-height: 50px; padding: 0 24px; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .2s, transform .1s, box-shadow .2s; box-shadow: 0 8px 18px rgba(176, 36, 134, .25); }
.ro-btn:hover:not(:disabled) { background: var(--ro-brand-d); }
.ro-btn:active:not(:disabled) { transform: scale(.97); }
.ro-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ro-btn-lg { width: 100%; min-height: 58px; font-size: 18px; margin-top: 14px; background: linear-gradient(90deg, var(--ro-brand), #c42f95); }
.ro-spin-s { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: ro-spin .7s linear infinite; }

/* الملخص */
.ro-receipt { background: var(--ro-soft); border-radius: 16px; padding: 14px; margin-bottom: 16px; transition: opacity .2s; }
.ro-receipt.is-busy { opacity: .5; }
.ro-receipt-car { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px dashed #d5dae3; }
.ro-receipt-car img { width: 88px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; }
.ro-receipt-car div { display: flex; flex-direction: column; line-height: 1.4; }
.ro-receipt-car small { color: var(--ro-muted); font-size: 13px; }
.ro-lines { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 0; }
.ro-lines dt { color: var(--ro-muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.ro-lines dt small { font-size: 12px; }
.ro-lines dd { margin: 0; text-align: end; white-space: nowrap; }
.ro-lines .ro-disc { color: var(--ro-ok); font-weight: 800; }
.ro-lines .ro-disc .ro-i { width: 17px; height: 17px; }
.ro-lines .ro-total { color: var(--ro-ink); font-weight: 800; font-size: 21px; border-top: 1px solid var(--ro-line); padding-top: 10px; margin-top: 4px; }
.ro-saved { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: #e8f6ee; color: var(--ro-ok); font-size: 14px; text-align: center; }
.ro-terms { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.ro-terms input { accent-color: var(--ro-brand); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.ro-terms a { color: var(--ro-brand); }

/* النجاح */
.ro-success { text-align: center; border-color: #bfe5cf; padding: 30px 20px; }
.ro-success h3 { font-size: 24px; margin: 12px 0; }
.ro-check { width: 76px; height: 76px; border-radius: 50%; background: var(--ro-ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; animation: ro-pop .6s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 0 10px #e8f6ee; }
.ro-check .ro-i { width: 40px; height: 40px; stroke-width: 3; }
.ro-ticket { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; margin: 16px auto; border: 1.5px dashed var(--ro-brand-m); border-radius: 16px; overflow: hidden; }
.ro-ticket div { padding: 12px; display: flex; flex-direction: column; background: var(--ro-brand-l); }
.ro-ticket div + div { border-inline-start: 1.5px dashed var(--ro-brand-m); }
.ro-ticket small { color: var(--ro-muted); }
.ro-ticket b { font-size: 18px; color: var(--ro-brand-d); }
.ro-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100000; }

/* صفحة العرض في ثيم Kadence: بدون عنوان الثيم ولا الصورة البارزة ولا الإطار الأبيض */
.ro-offer-page .entry-header, .ro-offer-page .entry-hero, .ro-offer-page .entry-hero-container-inner,
.ro-offer-page article > .post-thumbnail, .ro-offer-page .entry-footer, .ro-offer-page .post-navigation, .ro-offer-page .comments-area { display: none !important; }
.ro-offer-page .content-area { margin-top: 24px !important; margin-bottom: 24px !important; }
.ro-offer-page .entry.single-entry, .ro-offer-page .content-bg { background: transparent !important; box-shadow: none !important; }
.ro-offer-page .entry-content-wrap { padding: 0 !important; }
.ro-offer-page .entry-content { margin-top: 0 !important; }
@media (max-width: 640px) { .ro-offer-page .content-area { margin-top: 12px !important; } }

/* إخفاء زر واتساب (Joinchat) في صفحة العرض */
.joinchat, .joinchat__button, #joinchat { display: none !important; }

/* الشريط السفلي */
.ro-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 999; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--ro-line); box-shadow: 0 -10px 30px rgba(26, 32, 44, .08); padding: 10px max(16px, calc((100vw - 1100px) / 2)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; animation: ro-up .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes ro-up { from { transform: translateY(100%); } to { transform: none; } }
.ro-bar.is-on { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ro-bar-row { display: flex; align-items: center; gap: 12px; }
.ro-bar-steps { display: none; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(5, 1fr); position: relative; }
.ro-bar-steps::before { content: ""; position: absolute; top: 14px; inset-inline: 10%; height: 2px; background: var(--ro-line); }
.ro-bar-steps li { position: relative; }
.ro-bar-steps button { width: 100%; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ro-muted); font-size: 11px; cursor: pointer; line-height: 1.2; }
.ro-bar-steps .ro-i { width: 18px; height: 18px; padding: 5px; box-sizing: content-box; border-radius: 50%; background: #eef0f4; position: relative; z-index: 1; transition: all .25s; }
.ro-bar-steps li.is-cur button { color: var(--ro-brand); font-weight: 800; }
.ro-bar-steps li.is-cur .ro-i { background: var(--ro-brand); color: #fff; box-shadow: 0 0 0 3px var(--ro-brand-l); }
.ro-bar-steps li.is-done button { color: var(--ro-ok); }
.ro-bar-steps li.is-done .ro-i { background: var(--ro-ok); color: #fff; stroke-width: 2.6; }
.ro-bar-price { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ro-bar-price b { font-size: 20px; color: var(--ro-brand); }
.ro-bar-price small { color: var(--ro-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ro-loading { display: flex; justify-content: center; padding: 30px; }
.ro-spin { width: 36px; height: 36px; border: 3px solid var(--ro-brand-l); border-top-color: var(--ro-brand); border-radius: 50%; animation: ro-spin .8s linear infinite; }
@keyframes ro-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .ro-offer { padding-bottom: 170px; }
  .ro-progress { display: none; }
  .ro-bar-steps { display: grid; }
  .ro-bar { padding-top: 10px; }
  .ro-step { scroll-margin-top: 20px; }
  .ro-hero { padding: 18px; border-radius: 20px; }
  .ro-hero-title { font-size: 23px; }
  .ro-hero.has-img { min-height: 0; display: block; padding: 0; background: var(--ro-brand); }
  .ro-hero.has-img::before { display: none; }
  .ro-hero.has-img .ro-hero-img { position: relative; display: block; aspect-ratio: 4 / 3; }
  .ro-hero.has-img .ro-hero-txt { padding: 16px 18px 18px; margin-top: -40px; background: linear-gradient(to bottom, rgba(176, 36, 134, 0), var(--ro-brand) 40px); padding-top: 50px; }
  .ro-step { padding: 16px; border-radius: 16px; }
  .ro-step-h h3 { font-size: 17px; }
  .ro-progress span { font-size: 11px; }
  .ro-dates { grid-template-columns: 1fr 1fr; }
  .ro-days { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 6px; min-height: 36px; }
  .ro-days b { font-size: 18px; }
  .ro-date b { font-size: 14px; }
  .ro-grid { grid-template-columns: 1fr; gap: 10px; }
  .ro-card { display: grid; grid-template-columns: 116px 1fr; grid-template-areas: "img name" "img specs" "img price" "total total" "pick pick"; column-gap: 12px; row-gap: 3px; padding: 12px; }
  .ro-card.is-off { grid-template-areas: "img name" "img specs" "img rib" "where where"; }
  .ro-card-img { grid-area: img; height: 86px; margin: 22px 0 0; align-self: start; }
  .ro-card-name { grid-area: name; font-size: 16px; margin-top: 22px; }
  .ro-specs { grid-area: specs; }
  .ro-price { grid-area: price; }
  .ro-price b { font-size: 22px; }
  .ro-card-total { grid-area: total; }
  .ro-off-ribbon { grid-area: rib; }
  .ro-where { grid-area: where; margin-top: 6px; }
  .ro-pick { grid-area: pick; margin-top: 8px; }
  .ro-card-badge, .ro-card-save { top: 10px; }
  .ro-mode { padding: 14px 8px; }
  .ro-ticket { grid-template-columns: 1fr; }
  .ro-ticket div + div { border-inline-start: 0; border-top: 1.5px dashed var(--ro-brand-m); }
  .ro-bar .ro-btn { padding: 0 16px; font-size: 15px; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .ro-offer *, .ro-offer *::before { animation: none !important; transition: none !important; } }

/* v0.4.2: بدون شريط السعر/الزر السفلي. الكمبيوتر: لا شريط سفلي (المسار في الأعلى). الموبايل: المسار فقط في الأسفل */
.ro-offer .ro-bar-row { display: none !important; }
.ro-offer { padding-bottom: 32px; }
@media (min-width: 641px) { .ro-offer .ro-bar { display: none !important; } }
@media (max-width: 640px) {
  .ro-offer { padding-bottom: 90px; }
  .ro-offer .ro-bar { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* v0.6.2: حماية أزرار الصفحة من ألوان الثيم (Kadence يلوّن الأزرار بالأزرق عند المرور) */
.ro-offer button { text-transform: none; letter-spacing: normal; line-height: inherit; }
.ro-offer button:focus-visible { outline: 2px solid var(--ro-brand); outline-offset: 2px; }

.ro-offer .ro-mode, .ro-offer .ro-mode:focus { background: #fff !important; color: var(--ro-ink) !important; border-color: var(--ro-line) !important; }
.ro-offer .ro-mode:hover { background: var(--ro-brand-l) !important; color: var(--ro-ink) !important; border-color: var(--ro-brand-m) !important; }
.ro-offer .ro-mode.is-on, .ro-offer .ro-mode.is-on:hover, .ro-offer .ro-mode.is-on:focus { background: var(--ro-brand-l) !important; color: var(--ro-brand-d) !important; border-color: var(--ro-brand) !important; }
.ro-offer .ro-mode small { color: var(--ro-muted) !important; }

.ro-offer .ro-tabs button, .ro-offer .ro-tabs button:focus { background: #fff !important; color: var(--ro-ink) !important; border-color: var(--ro-line) !important; box-shadow: none !important; }
.ro-offer .ro-tabs button:hover { background: var(--ro-brand-l) !important; color: var(--ro-brand-d) !important; border-color: var(--ro-brand-m) !important; }
.ro-offer .ro-tabs button.is-on, .ro-offer .ro-tabs button.is-on:hover { background: var(--ro-brand-l) !important; color: var(--ro-brand-d) !important; border-color: var(--ro-brand) !important; }

.ro-offer .ro-chip, .ro-offer .ro-chip:focus { background: #fff !important; color: var(--ro-ink) !important; border-color: var(--ro-line) !important; }
.ro-offer .ro-chip:hover { background: #fff !important; color: var(--ro-brand) !important; border-color: var(--ro-brand) !important; }
.ro-offer .ro-chip.is-on, .ro-offer .ro-chip.is-on:hover, .ro-offer .ro-chip.is-on:focus { background: var(--ro-brand) !important; color: #fff !important; border-color: var(--ro-brand) !important; }

.ro-offer .ro-slot, .ro-offer .ro-slot:focus { background: #fff !important; color: var(--ro-ink) !important; border-color: var(--ro-line) !important; box-shadow: none !important; }
.ro-offer .ro-slot:hover { background: var(--ro-brand-l) !important; color: var(--ro-brand-d) !important; border-color: var(--ro-brand-m) !important; }
.ro-offer .ro-slot.is-on, .ro-offer .ro-slot.is-on:hover, .ro-offer .ro-slot.is-on:focus { background: var(--ro-brand) !important; color: #fff !important; border-color: var(--ro-brand) !important; box-shadow: 0 6px 14px rgba(176, 36, 134, .25) !important; }

.ro-offer .ro-card, .ro-offer .ro-card:focus, .ro-offer .ro-card:hover { background: #fff !important; color: var(--ro-ink) !important; }
.ro-offer .ro-card.is-off, .ro-offer .ro-card.is-off:hover { background: var(--ro-soft) !important; }

.ro-offer .ro-btn, .ro-offer .ro-btn:focus { background: var(--ro-brand) !important; color: #fff !important; border: 0 !important; }
.ro-offer .ro-btn:hover:not(:disabled) { background: var(--ro-brand-d) !important; color: #fff !important; }
.ro-offer .ro-btn-lg, .ro-offer .ro-btn-lg:focus { background: linear-gradient(90deg, var(--ro-brand), #c42f95) !important; }
.ro-offer .ro-btn-lg:hover:not(:disabled) { background: var(--ro-brand-d) !important; }

.ro-offer .ro-link, .ro-offer .ro-link:hover, .ro-offer .ro-link:focus { background: none !important; color: var(--ro-brand) !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.ro-offer .ro-where-c, .ro-offer .ro-where-c:focus { background: #fff !important; color: var(--ro-brand) !important; border: 1px solid var(--ro-brand-m) !important; }
.ro-offer .ro-where-c:hover { background: var(--ro-brand) !important; color: #fff !important; border-color: var(--ro-brand) !important; }

.ro-offer .ro-progress button, .ro-offer .ro-progress button:hover, .ro-offer .ro-progress button:focus,
.ro-offer .ro-bar-steps button, .ro-offer .ro-bar-steps button:hover, .ro-offer .ro-bar-steps button:focus { background: none !important; border: 0 !important; box-shadow: none !important; }
.ro-offer .ro-progress button:hover, .ro-offer .ro-bar-steps button:hover { color: var(--ro-brand) !important; }

/* v0.6.3: ترتيب الكروت حسب عدد السيارات */
@media (min-width: 641px) {
  .ro-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ro-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ro-grid.is-2 .ro-card-img, .ro-grid.is-3 .ro-card-img { height: 170px; }

  /* سيارة واحدة: كارت عريض */
  .ro-grid.is-1 { grid-template-columns: 1fr; }
  .ro-grid.is-1 .ro-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "img name" "img specs" "img price" "img total" "img pick" "img where" "img rib"; grid-template-rows: auto auto auto auto 1fr; column-gap: 32px; row-gap: 8px; padding: 22px 26px; align-items: start; }
  .ro-grid.is-1 .ro-card-img { grid-area: img; height: 260px; margin: 18px 0 0; align-self: center; }
  .ro-grid.is-1 .ro-card-name { grid-area: name; font-size: 24px; margin-top: 30px; }
  .ro-grid.is-1 .ro-specs { grid-area: specs; font-size: 15px; gap: 18px; }
  .ro-grid.is-1 .ro-specs .ro-i { width: 19px; height: 19px; }
  .ro-grid.is-1 .ro-price { grid-area: price; margin-top: 10px; }
  .ro-grid.is-1 .ro-price b { font-size: 40px; }
  .ro-grid.is-1 .ro-price del { font-size: 18px; }
  .ro-grid.is-1 .ro-card-total { grid-area: total; font-size: 14px; }
  .ro-grid.is-1 .ro-pick { grid-area: pick; align-self: end; padding: 14px; font-size: 17px; margin-top: 12px; }
  .ro-grid.is-1 .ro-off-ribbon { grid-area: rib; }
  .ro-grid.is-1 .ro-where { grid-area: where; }
  .ro-grid.is-1 .ro-card:not(.is-off):hover { transform: none; }
}

/* v0.6.7: صفحة العرض بدون فوتر الموقع */
.ro-offer-page .site-footer, .ro-offer-page #colophon, .ro-offer-page footer.site-footer,
.ro-offer-page .site-footer-wrap, .ro-offer-page .footer-html, .ro-offer-page #kt-scroll-up, .ro-offer-page .kadence-scroll-to-top { display: none !important; }
.ro-offer-page .site-main, .ro-offer-page .content-area { margin-bottom: 0 !important; }
