/* The live form demo in the hero of /ar/: a phone drawn in CSS around the
   plugin's own form (talorf-form.css). The --talorf-* values are the ones a
   shopkeeper sets in the plugin's Design tab, copied from the preview store
   (preview.woocodform.com) so the demo looks like the store people can open. */
.demo,.cur-vis,.dir-phone{
  --talorf-accent:#970096;--talorf-modal-bg:#fff;--talorf-text:#111;--talorf-muted:#6b7280;
  --talorf-modal-radius:14px;--talorf-input-radius:10px;--talorf-input-bg:#f7f7f8;--talorf-input-border:#e5e7eb;
  --talorf-input-height:46px;--talorf-title-size:18px;--talorf-summary-bg:#faf5fb;
  --talorf-embed-shadow:0 6px 10px rgba(142,4,140,.2);
  --talorf-unit-bg:#faf5fb;--talorf-unit-border:#970096;--talorf-unit-label:#111;--talorf-ribbon-bg:#111;
  --talorf-font:inherit;
  --talorf-btn-bg:#8e048c;--talorf-btn-color:#fff;--talorf-btn-radius:10px;
  --talorf-sbtn-bg:#8e048c;--talorf-sbtn-color:#fff;--talorf-sbtn-radius:10px;
  --talorf-sbtn-border-w:0px;--talorf-sbtn-border-c:#8e048c;--talorf-sbtn-font:1rem
}
.demo{
  --phone-w:390px;--phone-h:760px;--bezel:12px;--phone-r:52px;
  display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:8px;min-width:0
}
/* Desktop: shrink the whole phone evenly, so the form inside keeps its proportions instead of being squeezed */
@media (min-width:981px){.demo-phone{zoom:.86}}
.demo-phone{
  position:relative;width:var(--phone-w);max-width:100%;height:var(--phone-h);padding:var(--bezel);
  border-radius:var(--phone-r);background:#111;
  box-shadow:0 0 0 2px #2a2a2e,0 30px 60px -20px rgba(17,17,17,.45);
  display:flex;flex-direction:column
}
.demo-bar{
  position:relative;flex:none;display:flex;align-items:center;justify-content:space-between;
  height:36px;padding:0 24px;border-radius:calc(var(--phone-r) - var(--bezel)) calc(var(--phone-r) - var(--bezel)) 0 0;
  background:#fff;color:#111;font-size:13px;font-weight:700
}
.demo-notch{position:absolute;top:8px;left:50%;width:96px;height:24px;margin-left:-48px;border-radius:20px;background:#111}
.demo-ic{display:flex;gap:3px;align-items:flex-end}
.demo-ic b{display:block;width:4px;background:#111;border-radius:1px}
.demo-ic b:nth-child(1){height:6px}.demo-ic b:nth-child(2){height:9px}.demo-ic b:nth-child(3){height:12px}
/* A phone shows no scrollbar while you scroll, so neither does this one. */
/* position:relative matters: the plugin hides its radios and checkboxes with
   position:absolute, and without a positioned ancestor inside the scroll box
   they were placed relative to the phone, outside it. Clicking an offer or
   the order bump focused that stray input and jumped the whole page down. */
.demo-screen{position:relative;flex:1;min-height:0;overflow-y:auto;background:#fff;scrollbar-width:none;-ms-overflow-style:none}
.demo-screen::-webkit-scrollbar{display:none}
.demo-shop{
  display:flex;align-items:center;justify-content:space-between;padding:10px 18px;
  border-bottom:1px solid #f0e6f0;font-weight:700;font-size:15px;color:#111
}
.demo-shop .c{color:#970096}
.demo-shop small{font-weight:600;font-size:12px;color:#6b7280}
.demo-screen .talorf-embedded{margin:0;border:0;border-radius:0;box-shadow:none;padding:16px 16px 20px;max-width:none}
.demo-tabs{
  flex:none;display:flex;gap:6px;padding:10px 10px 8px;background:#fff;border-top:1px solid #f0e6f0;
  border-radius:0 0 calc(var(--phone-r) - var(--bezel)) calc(var(--phone-r) - var(--bezel))
}
.demo-tabs button{
  flex:1;min-width:0;padding:10px 4px;border:0;border-radius:999px;background:#111;color:#fff;
  font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;line-height:1.2
}
.demo-tabs button:hover,.demo-tabs button:focus-visible{background:#970096}
.demo-note{max-width:400px;margin:0;text-align:center;font-size:13px;line-height:1.7;color:#5b6382}
.demo-note b{color:#0c1754}
.demo-again{
  margin-top:16px;padding:10px 22px;border:1px solid #970096;border-radius:999px;background:#fff;
  color:#970096;font:inherit;font-weight:700;cursor:pointer
}
@media (max-width:980px){
  .demo{margin-top:0}
}
/* On a phone the frame would only eat width: keep the shape, thin the bezel,
   and size it to the screen so the whole demo fits in one view. */
@media (max-width:600px){
  .demo{--bezel:8px;--phone-r:40px;--phone-w:100%;--phone-h:min(720px,calc(100svh - 110px))}
  .demo-phone{min-height:560px}
  .demo-bar{height:32px;padding:0 20px}
  .demo-notch{top:6px;width:84px;height:22px;margin-left:-42px}
  .demo-screen .talorf-embedded{padding:14px 12px 18px}
  .demo-tabs button{font-size:12px;padding:10px 2px}
}

/* The form with a drawn pointer in the first feature row ("كل الطلب في شاشة
   واحدة"): a picture of the form, on the full-width lavender band. */
.wash .eyebrow,.wash .ticks .pro{background:#fff}
.cur-vis{padding:0;min-height:0}
.cur-card.talorf-embedded{position:relative;width:min(380px,100%);max-height:650px;margin:0;overflow:hidden;pointer-events:none;user-select:none;box-shadow:0 24px 48px -20px rgba(12,23,84,.35)}
.cur-card.crop::after{content:"";position:absolute;left:0;right:0;bottom:0;z-index:1;height:56px;background:linear-gradient(rgba(255,255,255,0),#fff)}
.cur{position:absolute;left:0;top:0;z-index:3;width:26px;height:26px;transform:translate(70px,440px);transition:transform .9s cubic-bezier(.45,.05,.3,1);filter:drop-shadow(0 3px 4px rgba(0,0,0,.3))}
.cur svg{display:block;width:100%;height:100%;transform-origin:20% 10%;transition:transform .15s}
.cur.is-down svg{transform:scale(.8)}
.cur-ring{position:absolute;z-index:2;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;background:rgba(151,0,150,.3);animation:cur-ring .6s ease-out forwards}
@keyframes cur-ring{from{transform:scale(.2);opacity:1}to{transform:scale(1.6);opacity:0}}
.cur-card .cur-flash{animation:cur-flash .7s}
@keyframes cur-flash{from{box-shadow:0 0 0 0 rgba(151,0,150,.5)}to{box-shadow:0 0 0 8px rgba(151,0,150,0)}}
/* the post-order scene keeps one height while its panels swap, so the page does not jump */
.cur-card.tall{height:560px}
.cur-card .talorf-upsell__image{width:140px;height:140px;object-fit:cover}
.cur-card.tall [data-body]{height:100%;display:flex;flex-direction:column;justify-content:center}
.cur-card .talorf-input.cur-focus{border-color:var(--talorf-accent);box-shadow:0 0 0 3px rgba(151,0,150,.12)}
.cur-card .talorf-select.is-filled{color:var(--talorf-text)}
.cur-menu{position:absolute;z-index:2;padding:4px;background:#fff;border:1px solid var(--talorf-input-border);border-radius:10px;box-shadow:0 14px 28px -10px rgba(17,17,17,.3);font-size:14px;color:var(--talorf-text)}
.cur-opt{padding:8px 10px;border-radius:7px}
.cur-opt:first-child{background:#faf5fb;color:var(--talorf-accent)}
.cur-card .talorf-totals__value.cur-flash{animation:cur-pop .7s}
@keyframes cur-pop{40%{color:var(--talorf-accent);transform:scale(1.12)}}
.cur-card .talorf-totals__value{display:inline-block}

/* "فورم واحد، يُقرأ في الاتجاهين": the hero's phone, filled in, standing still */
.dir-phone{--phone-w:390px;--phone-h:760px;--bezel:12px;--phone-r:52px;margin:0 auto;text-align:start;pointer-events:none;user-select:none}
.dir-phone .demo-screen{overflow:hidden;border-radius:0 0 calc(var(--phone-r) - var(--bezel)) calc(var(--phone-r) - var(--bezel))}
.dir-phone .demo-screen .talorf-embedded{padding-bottom:6px}
.dir-phone .dir-val{display:flex;align-items:center;color:var(--talorf-text)}
.dir-phone .talorf-submit{display:flex;align-items:center;justify-content:center}
.dirs .phones{gap:56px}
.dirs .phones figure{width:min(390px,100%)}
@media (min-width:981px){.dirs .phones figure{width:336px}}
@media (max-width:600px){.dir-phone{--bezel:8px;--phone-r:40px;--phone-w:100%;--phone-h:750px}}
