/* Darmaltoon site-wide marketing CTAs and WhatsApp, Task 3 (2026-10-18). */
.dm-floating-wa {
  position:fixed;inset-inline-end:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));
  z-index:1050;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:46px;padding:10px 15px;background:#159c50;color:#fff!important;
  border-radius:999px;text-decoration:none!important;font:750 13px/1.3 Inter,"Noto Sans Arabic",Tahoma,sans-serif;
  box-shadow:0 7px 20px #0003;transition:transform .15s ease,background .15s ease;
}
.dm-floating-wa svg {width:22px;height:22px;display:block;flex-shrink:0}
.dm-floating-wa:hover{background:#0b7f3d;transform:translateY(-2px)}
.dm-floating-wa:focus-visible,.dm-site-trial:focus-visible,.dm-site-demo:focus-visible{
  outline:3px solid #18b6e9;outline-offset:3px
}
header .dm-site-trial,header a.dm-site-trial {
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:37px;padding:9px 13px!important;border:1px solid #1269df!important;
  border-radius:10px;background:linear-gradient(115deg,#1769e0,#06a4d5)!important;
  color:#fff!important;text-decoration:none!important;
  font:800 12px/1.4 Inter,"Noto Sans Arabic",Tahoma,sans-serif!important;
  text-align:center!important;white-space:normal;flex:0 0 auto
}
header .dm-site-demo,header a.dm-site-demo {
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:36px;padding:7px 11px!important;border:1px solid #9ac5e9!important;
  border-radius:10px;background:#fff!important;
  color:#1456a1!important;text-decoration:none!important;
  font:700 12px/1.4 Inter,"Noto Sans Arabic",Tahoma,sans-serif!important;
  white-space:normal;text-align:center;flex:0 0 auto
}
header .dm-site-trial:hover{filter:brightness(.96)}
header .dm-site-demo:hover{background:#edf6ff!important}
header .dm-site-trial,header .dm-site-demo{max-width:195px}
@media(max-width:800px) {
  .dm-floating-wa{bottom:calc(12px + env(safe-area-inset-bottom,0px));inset-inline-end:12px;padding:10px 12px;min-height:44px}
  header .dm-site-trial,header .dm-site-demo{max-width:155px;font-size:11px!important;padding:7px 10px!important}
}
@media(max-width:480px) {
  .dm-floating-wa{font-size:12px;padding:10px}
  .dm-floating-wa svg{width:21px;height:21px}
  header .dm-site-trial,header .dm-site-demo{max-width:145px}
}
@media(prefers-color-scheme:dark){
  html:not([data-theme="light"]):not([data-design="light"]) header .dm-site-demo{
    color:#dceaff!important;background:#152c46!important;border-color:#365776!important
  }
}
:root[data-theme="dark"] header .dm-site-demo{
  color:#dceaff!important;background:#152c46!important;border-color:#365776!important
}
@media(prefers-reduced-motion:reduce){.dm-floating-wa{transition:none}}
/* Four-field trial/demo form: safe RTL alignment and balanced field spacing. */
#demoForm .form-row{gap:14px}
#demoForm .lead-honeypot{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
#demoForm select[name="preferredLanguage"]{min-height:45px}
html[dir="rtl"] #demoForm{text-align:right}
/* Legacy marketing headers: prevent the longer trial wording expanding phone viewports. */
@media(max-width:600px){
  .site-header .header-inner{display:flex!important;flex-wrap:wrap!important;min-width:0!important;gap:7px!important}
  .site-header .header-actions{display:flex!important;flex-wrap:wrap!important;min-width:0!important;flex:1 1 100%!important;gap:6px!important;justify-content:flex-start!important}
  .site-header .brand{min-width:0!important}
  .site-header .brand img{max-width:155px!important;height:auto!important}
  .site-header a.dm-site-trial{flex:1 1 150px!important;max-width:100%!important;order:5!important}
  .site-header a.dm-site-demo{display:none!important}
  .site-header .lang-switch{max-width:100%!important;flex:0 1 auto!important}
  .topbar .top-inner{display:flex!important;flex-wrap:wrap!important;min-width:0!important;gap:8px!important}
  .topbar .top-actions{display:flex!important;flex:1 1 100%!important;flex-wrap:wrap!important;min-width:0!important;gap:7px!important}
  .topbar .top-actions .langs{min-width:0!important;max-width:100%!important}
  .topbar a.dm-site-trial{max-width:100%!important;flex:1 1 130px!important}
}

/* Keep the keyboard skip link accessible without creating a 10,000px page. */
a.skip-link:not(:focus-visible) { position:fixed!important;left:12px!important;top:-120px!important;transform:translateY(-100%)!important; }
a.skip-link:focus-visible { position:fixed!important;top:8px!important;left:12px!important;transform:none!important;z-index:2000!important; }
/* Privacy notice: allow marketing CTAs to wrap on narrow screens without widening the viewport. */
@media(max-width:940px){
  .privacy-header .privacy-head-inner{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;column-gap:8px!important;row-gap:9px!important;width:100%!important;min-width:0!important;max-width:100%!important;}
  .privacy-header .privacy-logo{flex:0 1 auto!important;min-width:0!important;}
  .privacy-header .privacy-logo img{max-width:145px!important;height:auto!important;}
  .privacy-header .privacy-lang{flex:0 1 auto!important;min-width:0!important;max-width:100%!important;}
  .privacy-header .privacy-back{flex:0 0 auto!important;}
  .privacy-header a.dm-site-trial{order:5!important;flex:1 1 158px!important;max-width:100%!important;min-width:0!important;}
  .privacy-header a.dm-site-demo{order:6!important;flex:0 1 110px!important;max-width:140px!important;min-width:0!important;}
}
