/* An unframed diamond constellation keeps the chosen company at its center. */
.customer-focus {
  --focus-d:min(290px,calc((100vw - 48px)/2),calc((100dvh - 220px)/2));
  position:fixed; inset:0 auto 0 0; width:100vw; height:100dvh;
  max-width:none; max-height:none; margin:0; padding:0;
  border:0; border-radius:0; outline:none; background:transparent;
  color:#f4eee6; overflow:hidden; box-shadow:none; direction:rtl;
}
.customer-focus::backdrop { background:#08090bb3; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.customer-focus h2 {
  position:absolute; top:max(22px,env(safe-area-inset-top)); right:24px;
  max-width:calc(100% - 145px); margin:0;
  color:#f3e5d7; font-size:clamp(14px,1.5vw,19px); line-height:1.8; font-weight:600;
}
.customer-focus-close {
  position:absolute; top:max(16px,env(safe-area-inset-top)); left:24px; z-index:5;
  min-height:44px; min-width:60px; padding:8px 0;
  border:0; border-bottom:1px solid #a88d7399; border-radius:0;
  background:transparent; color:#f2e5d8; font:inherit; font-size:13px; cursor:pointer;
}
.customer-focus-close:hover { color:#ffc18d; border-color:#ffc18d; }
.customer-focus-stage {
  position:absolute; inset:0; pointer-events:none;
}
.customer-focus-center,.customer-focus-part {
  position:absolute; left:50%; top:50%; width:var(--focus-d); height:var(--focus-d);
  margin:0; transform:translate(-50%,-50%); pointer-events:auto;
}
.customer-focus-center { z-index:2; display:grid; place-items:center; }
.customer-focus-logo {
  position:relative; display:grid; place-items:center; width:70.710678%; height:70.710678%;
  padding:0; border:2px solid #eeaa74; border-radius:5px; overflow:visible;
  background:linear-gradient(145deg,#313234,#1b1b1d); color:#fff;
  box-shadow:0 0 28px #f1a15b14; transform:rotate(45deg); cursor:pointer;
}
.customer-focus-logo.logo-on-light { background:#f1f0eb; }
.customer-focus-mark {
  position:absolute; left:50%; top:50%; width:105%; height:66%;
  display:flex; align-items:center; justify-content:center;
  transform:translate(-50%,-50%) rotate(-45deg);
  overflow:visible; mix-blend-mode:normal; pointer-events:none;
}
.customer-focus-mark img {
  display:block; width:94%; height:88%; max-width:94%; max-height:88%;
  object-fit:contain; filter:none; opacity:1; mix-blend-mode:normal;
}
.customer-focus-mark img.fanamoj-mark,.customer-focus-mark img.shabtab-mark { width:68%; }
.customer-focus-mark .megamotor-crop { width:100%; height:100%; overflow:visible; }
.customer-focus-part[data-position="ne"] { margin-left:calc(var(--focus-d)/2); margin-top:calc(var(--focus-d)/-2); }
.customer-focus-part[data-position="nw"] { margin-left:calc(var(--focus-d)/-2); margin-top:calc(var(--focus-d)/-2); }
.customer-focus-part[data-position="sw"] { margin-left:calc(var(--focus-d)/-2); margin-top:calc(var(--focus-d)/2); }
.customer-focus-part[data-position="se"] { margin-left:calc(var(--focus-d)/2); margin-top:calc(var(--focus-d)/2); }
.customer-focus-visual { position:relative; width:100%; height:100%; display:grid; place-items:center; isolation:isolate; }
.customer-focus-visual::before {
  content:""; position:absolute; z-index:-1; left:50%; top:50%;
  width:70.710678%; height:70.710678%; border:1px solid #d4d1ccaa;
  border-radius:5px; background:linear-gradient(145deg,#353638eb,#202123ed);
  transform:translate(-50%,-50%) rotate(45deg);
}
.customer-focus-visual img {
  width:76%; height:74%; object-fit:contain; padding:2px;
  border:0; background:transparent; filter:drop-shadow(0 5px 4px #0008);
}
.customer-focus-part figcaption {
  position:absolute; left:50%; width:100%; transform:translateX(-50%);
  margin:0; color:#f1e9df; font-size:clamp(11px,1.2vw,14px);
  line-height:1.7; text-align:center; text-wrap:balance;
}
.customer-focus-part[data-position="ne"] figcaption,
.customer-focus-part[data-position="nw"] figcaption { bottom:calc(100% + 10px); }
.customer-focus-part[data-position="sw"] figcaption,
.customer-focus-part[data-position="se"] figcaption { top:calc(100% + 10px); }
.customer-focus-part.name-only figcaption {
  position:absolute; left:50%; top:50%; bottom:auto; width:60%;
  transform:translate(-50%,-50%); font-size:clamp(10px,1.15vw,14px);
}
.customer-focus[open] .customer-focus-part { animation:customer-focus-unfold .42s cubic-bezier(.2,.75,.3,1) both; }
.customer-focus[open] .customer-focus-part:nth-child(2) { animation-delay:45ms; }
.customer-focus[open] .customer-focus-part:nth-child(3) { animation-delay:90ms; }
.customer-focus[open] .customer-focus-part:nth-child(4) { animation-delay:135ms; }
@keyframes customer-focus-unfold {
  from { opacity:0; margin-left:0; margin-top:0; transform:translate(-50%,-50%) scale(.48); }
  to { opacity:1; transform:translate(-50%,-50%) scale(1); }
}
.customer-focus-status {
  position:absolute; bottom:max(18px,env(safe-area-inset-bottom)); left:22px; right:22px;
  margin:0; color:#c7c0b8; font-size:12px; line-height:1.8; text-align:center;
}
.customer-focus-status[hidden] { display:none; }
html.customer-focus-open { overflow:hidden; scrollbar-gutter:stable; }
.customer-focus button:focus-visible { outline:2px solid #ffc18d; outline-offset:6px; }
@media(max-width:700px) {
  .customer-focus { --focus-d:min(240px,calc((100vw - 36px)/2),calc((100dvh - 210px)/2)); }
  .customer-focus h2 { right:18px; top:22px; }
  .customer-focus-close { left:18px; }
  .customer-focus-part figcaption { font-size:11px; }
}
@media(max-height:500px) {
  .customer-focus { --focus-d:min(230px,calc((100vw - 36px)/2),calc((100dvh - 160px)/2)); }
  .customer-focus h2 { top:12px; font-size:13px; }
  .customer-focus-close { top:7px; min-height:36px; font-size:12px; }
  .customer-focus-part figcaption { font-size:10px; line-height:1.4; }
  .customer-focus-part[data-position="ne"] figcaption,
  .customer-focus-part[data-position="nw"] figcaption { bottom:calc(100% + 5px); }
  .customer-focus-part[data-position="sw"] figcaption,
  .customer-focus-part[data-position="se"] figcaption { top:calc(100% + 5px); }
  .customer-focus-status { bottom:6px; font-size:10px; }
}
@media print { .customer-focus { display:none !important; } }
@media(prefers-reduced-motion:reduce) { .customer-focus[open] .customer-focus-part { animation:none; } }
