/* Sikrab 4.4 — smart fields: live messages and the UAE phone field. Loaded by every layout (shop, seller, site, admin). */
:root{--f-err:#B42318;--f-ok:#15803D;--f-ink:#151A23;--f-muted:#5A6473;--f-line:#E3E6EC;--f-action:#C2410C}
.fmsg{margin:4px 0 0;font-size:12.5px;font-weight:500;line-height:1.4;color:var(--muted,var(--f-muted));min-height:0}
.fmsg:empty{display:none}
.fmsg.err{color:var(--err,var(--f-err))}
.fmsg-fix{border:0;background:none;color:var(--action,var(--f-action));font-weight:700;cursor:pointer;padding:0;font-size:12.5px}
.is-err .inp,.is-err input:not([type=checkbox]):not([type=radio]),.is-err select,.is-err textarea,.is-err .phf,.is-err .wz-phone,.is-err .wz-price{border-color:var(--err,var(--f-err))!important;box-shadow:0 0 0 3px rgb(180 35 24/.10)}
.is-ok .inp,.is-ok > input:not([type=checkbox]),.is-ok .phf{border-color:#86D3A3}
.phf-field{display:flex;flex-direction:column;gap:6px}
.phf-label{font-size:13px;font-weight:700;color:var(--ink-2,#3B4452)}
.phf-label small{font-weight:500;color:var(--faint,#8A94A3)}
.phf{display:flex;align-items:center;min-height:52px;border:1px solid #D5DAE2;border-radius:12px;background:#fff;overflow:hidden;transition:border-color .12s,box-shadow .12s}
.phf:focus-within{border-color:var(--ink,var(--f-ink));box-shadow:0 0 0 3px rgb(21 26 35/.08)}
.phf-cc{flex:none;display:flex;align-items:center;gap:7px;align-self:stretch;padding:0 10px 0 12px;background:#F6F7F9;border-right:1px solid var(--line,var(--f-line));font-size:15px;user-select:none}
.phf-cc b{font-weight:700}
.phf input{flex:1;min-width:0;border:0!important;outline:0;background:none;box-shadow:none!important;font-size:17px;letter-spacing:.02em;padding:0 12px;height:50px}
.phf-btn{flex:none;margin-right:6px;min-height:38px;padding:0 14px;border:0;border-radius:9px;background:#25D366;color:#fff;font-weight:700;font-size:14px;cursor:pointer}
.phf-btn[disabled]{opacity:.6}
.phf-ok{flex:none;margin-right:10px;color:var(--ok,var(--f-ok));font-weight:700;font-size:13.5px}
.phf.is-verified{border-color:#86D3A3}
.phf-code{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;background:#ECFDF3}
.phf-code p{margin:0;font-size:13.5px;color:#14532D}
.phf-code input{height:54px;border:1px solid #BBF7D0;border-radius:12px;background:#fff;text-align:center;font:700 26px var(--mono,ui-monospace,Menlo,monospace);letter-spacing:.4em}
.phf-code-row{display:flex;gap:6px;align-items:center;font-size:13px;color:var(--muted,var(--f-muted))}
.phf-link{border:0;background:none;color:var(--action,var(--f-action));font-weight:700;cursor:pointer;padding:0;font-size:13px}
.phf-link[disabled]{color:var(--faint,#8A94A3);cursor:default}
.phf-auto{width:100%}
.ff-wrap .phf,.as-in .phf{border:0;min-height:0;background:none;flex:1}
.ff-wrap:has(.phf) .ff-ico{display:none}
.phf input[type=tel]{width:auto}

/* the country button and the country sheet */
.phf-cc{border:0;cursor:pointer;color:var(--ink,#151A23);font:inherit;gap:6px}
.phf-cc:hover{background:#EEF0F4}
.phf-flag{width:24px;height:16px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgb(0 0 0/.08)}
.phf-chev{color:var(--muted,#5A6473)}
.cc-sheet{padding:8px 0 0;max-width:480px;height:min(640px,86dvh)}
.cc-sheet[open]{display:flex;flex-direction:column;gap:0}
.cc-head{display:flex;align-items:center;justify-content:space-between;padding:4px 18px 10px}
.cc-head h2{font-size:20px}
.cc-x{width:40px;height:40px;border-radius:50%;border:0;background:var(--bg,#F4F5F8);cursor:pointer;font-size:16px}
.cc-search{display:flex;align-items:center;gap:8px;margin:0 18px 8px;min-height:48px;padding:0 14px;border-radius:12px;background:#F1F3F6;color:var(--muted,#5A6473)}
.cc-search input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:16px;color:var(--ink,#151A23)}
.cc-list{flex:1;overflow:auto;padding:0 8px 16px}
.cc-sec{margin:10px 12px 4px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--faint,#8A94A3)}
.cc-row{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 12px;border:0;border-radius:12px;background:none;font:inherit;font-size:15.5px;color:var(--ink,#151A23);cursor:pointer;text-align:left}
.cc-row:hover,.cc-row:focus-visible{background:var(--bg,#F4F5F8)}
.cc-row img{border-radius:3px;box-shadow:0 0 0 1px rgb(0 0 0/.08)}
.cc-row span{flex:1}.cc-row b{color:var(--muted,#5A6473);font-weight:600}
@media (min-width:761px){.cc-sheet{margin:auto;border-radius:20px;box-shadow:0 24px 60px rgb(15 27 45/.25)}.cc-sheet .sheet-grip{display:none}}
/* the email & password pages (when WhatsApp is off, or chosen) also open full screen on phones */
@media (max-width:760px){
  body:has(.au2) :is(.topbar,.hdr,.ftr,.tabbar,.au2-pitch){display:none!important}
  body:has(.au2){background:#fff;padding-bottom:0}
  body:has(.au2) main{padding:0!important}
  .au2{display:block!important;padding:0!important;margin:0!important}
  .au2-card{border:0!important;box-shadow:none!important;border-radius:0!important;min-height:100dvh;padding:max(20px,env(safe-area-inset-top)) 20px 28px!important}
  .au2-card::before{content:"";display:block;width:56px;height:56px;margin:4px 0 14px;background:url(/assets/img/logo-mark.svg?v=9) center/contain no-repeat}
}
.cc-sheet{border:0;width:100%;margin:auto auto 0;border-radius:22px 22px 0 0;background:#fff;color:var(--ink,#151A23);font-family:Inter,system-ui,sans-serif}
.cc-sheet::backdrop{background:rgb(15 27 45/.45)}
.cc-sheet[open]{animation:ccUp .22s ease}
@keyframes ccUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.cc-sheet .sheet-grip{width:44px;height:5px;border-radius:99px;background:#D5DAE2;margin:2px auto 8px}
