@font-face{font-family:Tajawal;src:url('/assets/fonts/tajawal-400.woff2') format('woff2');font-display:swap}
:root{--sp-bg:#f5f7fb;--sp-surface:#fff;--sp-ink:#20334f;--sp-muted:#536782;--sp-line:#e3e9f2;--sp-blue:#3474f6;--sp-tint:#edf3ff;--sp-error:#b82835}
.support-page{margin:0;background:var(--sp-bg);color:var(--sp-ink);font-family:var(--body,'Tajawal',Arial,sans-serif);font-size:15px;line-height:1.65}
.support-page *,.support-desk *{box-sizing:border-box}.support-page [hidden],.support-desk [hidden]{display:none!important}
.support-page a{color:inherit}.support-page button,.support-page input,.support-page textarea,.support-desk button,.support-desk input,.support-desk textarea,.support-desk select{font:inherit}
.support-page button,.support-desk button{cursor:pointer}.support-page button:disabled,.support-desk button:disabled{cursor:wait;opacity:.6}
.support-page :focus-visible,.support-desk :focus-visible{outline:2px solid var(--sp-blue);outline-offset:3px}
.support-header{max-width:1200px;margin:auto;display:flex;align-items:center;gap:24px;padding:18px 28px;border-bottom:1px solid var(--sp-line)}
.support-header img{object-fit:contain;display:block;width:132px;height:44px}.support-header>span{color:var(--sp-muted);padding-inline-start:24px;border-inline-start:1px solid var(--sp-line)}.support-home{margin-inline-start:auto;font-size:14px;text-decoration:none}
.support-customer{display:grid;grid-template-columns:minmax(230px,330px) minmax(0,1fr);gap:56px;max-width:1200px;margin:40px auto;padding:0 28px}
.support-summary{padding-top:20px}.support-label{color:#2b61c9;font-weight:700}.support-summary h1{font-size:36px;line-height:1.5;margin:12px 0 20px;text-wrap:balance}.support-summary>p{color:var(--sp-muted);max-width:32ch}.support-help{margin-top:40px;padding-top:24px;border-top:1px solid var(--sp-line);font-size:13px}.support-help p{color:var(--sp-muted)}.support-help a{direction:ltr;display:inline-block}
.support-summary dl{display:grid;grid-template-columns:auto 1fr;gap:10px 16px;margin-top:28px;font-size:14px}.support-summary dt{color:var(--sp-muted)}.support-summary dd{margin:0;overflow-wrap:anywhere}
.support-conversation{min-width:0;display:flex;flex-direction:column;background:var(--sp-surface);border:1px solid var(--sp-line);border-radius:16px;overflow:hidden;height:min(740px,calc(100dvh - 170px));min-height:480px}
.support-chat-head{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--sp-line);background:var(--sp-surface)}.support-chat-head h2{font-size:19px;margin:0}.support-chat-head p{font-size:13px;color:var(--sp-muted);margin:4px 0 0}.support-status{font-size:12px;background:var(--sp-tint);color:#285cb9;border-radius:20px;padding:4px 12px;white-space:nowrap}
.support-open{padding:32px;display:grid;gap:12px;max-width:440px;width:100%;margin:auto}.support-open p{font-size:13px;color:var(--sp-muted)}
.support-page input,.support-page textarea,.support-desk input,.support-desk textarea,.support-desk select{border:1px solid var(--sp-line);border-radius:8px;padding:11px 13px;background:var(--sp-surface);color:var(--sp-ink);width:100%;min-width:0}
.support-primary{background:var(--sp-blue);border:1px solid var(--sp-blue);border-radius:8px;padding:10px 20px;color:#fff;font-weight:700;min-height:44px}.support-primary:hover{background:#2864d7}
.support-messages{overflow:auto;flex:1;min-height:100px;padding:24px;display:flex;flex-direction:column;gap:16px;overscroll-behavior:contain;scroll-behavior:smooth}
.support-message{max-width:86%;align-self:flex-start}.support-message.mine{align-self:flex-end}.support-message .message-body{margin:0;background:#f1f4f8;border-radius:12px 12px 12px 3px;padding:12px 16px;white-space:pre-wrap;overflow-wrap:anywhere}.support-message.mine .message-body{background:var(--sp-tint);border-radius:12px 12px 3px 12px}.support-message header{font-size:12px;color:var(--sp-muted);display:flex;gap:12px;flex-wrap:wrap;padding:0 3px 4px}.support-message time{font-size:11px}.support-message.system{align-self:center;max-width:95%;text-align:center}.support-message.system .message-body{background:transparent;font-size:13px;color:var(--sp-muted);padding:5px 10px}.support-message.internal .message-body{background:#fff4d8;color:#684f0e}.support-file-button{display:flex;gap:10px;align-items:center;border:1px solid var(--sp-line);background:var(--sp-surface);color:var(--sp-ink);padding:12px;border-radius:8px;max-width:100%;text-align:start;overflow-wrap:anywhere}.support-file-button small{color:var(--sp-muted);white-space:nowrap}
.support-compose{border-top:1px solid var(--sp-line);padding:16px 20px;background:var(--sp-surface)}.support-compose textarea{resize:vertical;min-height:62px;max-height:180px}.support-compose-actions{display:flex;align-items:center;gap:12px;padding-top:10px}.support-compose-actions small{font-size:11px;color:var(--sp-muted)}.support-compose-actions button{margin-inline-start:auto}.support-attach{font-size:13px;cursor:pointer;white-space:nowrap;padding:8px 0}.support-error{color:var(--sp-error);padding:12px 20px;margin:0;background:#fff1f2;font-size:14px}.support-reopen{margin:14px 24px;padding:12px;background:var(--sp-tint);color:#285cb9;border:0;border-radius:8px}.support-footer{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:24px;padding:18px 24px;font-size:12px;color:var(--sp-muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#support-preview{border:1px solid var(--sp-line);border-radius:12px;max-width:min(90vw,800px);max-height:90dvh;background:var(--sp-surface);color:var(--sp-ink)}#support-preview::backdrop{background:#101c32a8}#support-preview-content img,#support-preview-content video{display:block;max-width:100%;max-height:65dvh;margin:14px auto}#support-preview-close{float:inline-end;background:none;border:0;color:inherit;padding:8px}#support-download{display:inline-block;margin:12px}
.support-desk{--sp-bg:#f5f7fb;--sp-surface:#fff;--sp-ink:#20334f;--sp-muted:#536782;--sp-line:#e3e9f2;--sp-blue:#3474f6;--sp-tint:#edf3ff;color:var(--sp-ink);font-size:14px;line-height:1.6;min-width:0}.support-desk-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.support-desk h1{font-size:26px;margin:0}.support-desk-head p{margin:5px 0;color:var(--sp-muted)}.support-desk-tools{display:flex;gap:8px;align-items:center}.support-desk .secondary{background:var(--sp-surface);border:1px solid var(--sp-line);color:var(--sp-ink);padding:9px 12px;border-radius:8px;min-height:40px}.support-desk-layout{display:grid;grid-template-columns:280px minmax(0,1fr) 240px;border:1px solid var(--sp-line);border-radius:12px;overflow:hidden;background:var(--sp-surface);height:calc(100dvh - 215px);min-height:560px}.support-ticket-list{border-inline-end:1px solid var(--sp-line);overflow:auto;min-width:0}.support-ticket-filters{padding:14px;position:sticky;top:0;background:var(--sp-surface);display:grid;gap:8px;z-index:1}.support-ticket-row{border:0;border-bottom:1px solid var(--sp-line);width:100%;text-align:start;padding:16px;background:var(--sp-surface);color:var(--sp-ink);display:grid;gap:5px}.support-ticket-row:hover,.support-ticket-row.selected{background:var(--sp-tint)}.support-ticket-row b{font-size:13px;overflow-wrap:anywhere}.support-ticket-row small{color:var(--sp-muted);font-size:12px}.support-ticket-row .unread{font-size:11px;color:#285cb9;font-weight:700}.support-ticket-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--sp-muted)}.support-desk-chat{display:flex;flex-direction:column;min-width:0;min-height:0}.support-desk-chat .support-chat-head{padding:16px}.support-desk-empty{margin:auto;text-align:center;padding:30px;color:var(--sp-muted)}.support-order-context{border-inline-start:1px solid var(--sp-line);padding:18px;overflow:auto;font-size:13px}.support-order-context h3{font-size:15px;margin:0 0 16px}.support-order-context dl{display:grid;gap:4px}.support-order-context dt{color:var(--sp-muted);margin-top:8px}.support-order-context dd{margin:0;overflow-wrap:anywhere}.support-job-contact{padding:16px 0;border-top:1px solid var(--sp-line);margin-top:16px}.support-job-contact a{display:block;margin-top:8px;color:#285cb9;font-weight:700;direction:ltr;text-align:start}.support-job-contact input{margin:8px 0}.support-agent-note{color:var(--sp-muted);white-space:pre-wrap;overflow-wrap:anywhere}.support-staff-manager{background:var(--sp-surface);padding:24px;border:1px solid var(--sp-line);border-radius:12px;margin-bottom:24px}.support-staff-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end}.support-staff-form label{display:grid;gap:6px}.support-staff-row{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--sp-line)}.support-staff-row button{margin-inline-start:auto}.support-staff-login{max-width:400px;margin:80px auto;display:grid;gap:14px;background:var(--sp-surface);padding:30px;border:1px solid var(--sp-line);border-radius:14px}.support-check{display:flex;align-items:center;gap:7px;font-size:12px}.support-check input{width:auto}
@media(max-width:1200px){.support-desk-layout{grid-template-columns:240px minmax(0,1fr)}.support-order-context{grid-column:1/-1;border-inline-start:0;border-top:1px solid var(--sp-line);max-height:260px}.support-desk-layout{height:auto}.support-desk-chat{height:620px}.support-ticket-list{max-height:620px}}
@media(max-width:700px){.support-header{padding:10px 16px;gap:12px}.support-header img{width:108px;height:36px}.support-header>span{font-size:12px;padding-inline-start:12px}.support-home{font-size:12px}.support-customer{display:block;margin:16px auto;padding:0 12px}.support-summary{padding:4px 8px 16px}.support-label{font-size:12px}.support-summary h1{font-size:23px;margin:4px 0}.support-summary h1 br{display:none}.support-summary>p{font-size:13px;max-width:none;margin:8px 0}.support-help{display:none}.support-summary dl{font-size:12px;display:flex;gap:8px;margin:12px 0 0;flex-wrap:wrap}.support-summary dt{display:none}.support-conversation{height:calc(100dvh - 245px);min-height:440px;border-radius:12px}.support-chat-head{padding:14px 16px;gap:10px}.support-chat-head h2{font-size:16px}.support-chat-head p{font-size:12px}.support-messages{padding:16px 12px}.support-message{max-width:93%;font-size:14px}.support-compose{padding:12px}.support-compose-actions{gap:8px}.support-compose-actions small{font-size:10px;max-width:105px;line-height:1.5}.support-primary{padding:10px 15px}.support-footer{padding:12px 16px;gap:18px;font-size:11px}.support-desk-head{align-items:flex-start;gap:10px}.support-desk h1{font-size:22px}.support-desk-head p{font-size:12px}.support-desk-layout{display:block;min-height:0}.support-ticket-list{max-height:360px;border-inline-end:0;border-bottom:1px solid var(--sp-line)}.support-desk-layout.has-ticket .support-ticket-list{display:none}.support-desk-layout:not(.has-ticket) .support-desk-chat,.support-desk-layout:not(.has-ticket) .support-order-context{display:none}.support-desk-chat{height:calc(100dvh - 220px);min-height:470px}.support-order-context{max-height:none}.support-desk-tools{flex-wrap:wrap;justify-content:flex-end}.support-staff-form{grid-template-columns:1fr}.support-staff-manager{padding:16px}.support-compose-actions .support-check{font-size:11px}.support-desk-back{display:inline-block!important}}
.support-desk-back{display:none}.support-customer-cta{margin:20px 0;padding:18px;background:var(--sp-tint,#edf3ff);border-radius:10px;font-size:14px;line-height:1.8}.support-customer-cta p{margin:0 0 8px}.support-customer-cta a{color:#285cb9;font-weight:700;text-underline-offset:4px}
@media(prefers-reduced-motion:reduce){.support-messages{scroll-behavior:auto}}
html[data-theme=dark] .support-page,html[data-theme=dark] .support-desk{--sp-bg:#101827;--sp-surface:#182336;--sp-ink:#e4eaf5;--sp-muted:#b2c0d6;--sp-line:#34425b;--sp-tint:#243757;--sp-blue:#477ff0;background:var(--sp-bg);color:var(--sp-ink)}html[data-theme=dark] .support-message:not(.mine) .message-body{background:#243148;color:#e4eaf5}html[data-theme=dark] .support-label,html[data-theme=dark] .support-status{color:#b3cdff}
