#mada-assistant{--ma-ink:#123c43;--ma-accent:#16685f;font-family:inherit;color:var(--ma-ink);position:fixed;inset-inline-end:20px;bottom:88px;z-index:110}#mada-assistant *{box-sizing:border-box}#mada-assistant [hidden]{display:none!important}#mada-assistant button,#mada-assistant input{font:inherit}#mada-assistant button,#mada-assistant a{-webkit-tap-highlight-color:transparent}#mada-assistant button{cursor:pointer}.ma-launch{display:flex;align-items:center;gap:10px;padding:13px 19px;border:1px solid #bcdad2;border-radius:40px;background:#103e43;color:#fff;box-shadow:0 6px 22px #153d4326;transition:transform .2s}.ma-launch:hover{transform:translateY(-2px)}#ma-panel{position:absolute;inset-inline-end:0;bottom:66px;width:390px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 175px);display:flex;flex-direction:column;background:#fff;border:1px solid #d9e5e1;border-radius:22px;box-shadow:0 18px 65px #123c4333;overflow:hidden;font-size:15px;line-height:1.65}.ma-head{background:#103e43;color:#fff;padding:19px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.ma-head strong{font-size:20px}.ma-head small{display:block;font-size:12px;color:#d3e8e2}.ma-close{border:0;background:transparent;color:#fff;font-size:30px!important;width:44px;height:44px}.ma-body{overflow-y:auto;overscroll-behavior:contain;padding:20px;flex:1;min-height:80px}.ma-intro{font-weight:600;margin:0 0 9px}.ma-note{font-size:12px;color:#54716e;margin:0 0 17px}.ma-options{display:flex;flex-wrap:wrap;gap:8px}.ma-option{border:1px solid #b6d1c9;color:#164e49;background:#f4f9f6;border-radius:12px;padding:9px 12px;text-align:start;min-height:42px}.ma-option:hover{background:#e3f1e9}.ma-message{margin-top:15px;padding:14px;border-radius:14px;background:#f0f5f2;overflow-wrap:anywhere}.ma-message p{margin:0 0 10px}.ma-message p:last-child{margin-bottom:0}.ma-message a{display:block;color:#126357;text-decoration:underline;text-underline-offset:3px;padding:6px 0}.ma-message.ma-user{background:#e0eee8;margin-inline-start:25px}.ma-form{padding:12px 18px 8px;border-top:1px solid #e1e9e5;background:#fff}.ma-form label{font-size:12px;display:block;margin-bottom:5px}.ma-form>div{display:flex;gap:8px}.ma-form input{width:100%;min-width:0;border:1px solid #a8c3b9;border-radius:10px;padding:10px;background:#fff;color:#123c43;font-size:16px!important}.ma-form button{border:0;border-radius:10px;padding:9px 12px;background:#16685f;color:#fff}.ma-foot{display:flex;justify-content:space-between;padding:10px 18px 14px;font-size:12px;gap:10px}.ma-foot a,.ma-reset{color:#235a50}.ma-reset{border:0;background:none;padding:0;text-decoration:underline}#mada-assistant :focus-visible{outline:3px solid #bf8d42;outline-offset:3px}@media(max-width:480px){#mada-assistant{inset-inline-end:12px;bottom:82px}#ma-panel{width:calc(100vw - 24px);max-width:none;max-height:calc(100dvh - 155px);bottom:62px}.ma-body{padding:16px}.ma-head{padding:13px 16px}}@media(prefers-reduced-motion:reduce){.ma-launch{transition:none}}

body.privacy-choice-open #mada-assistant{visibility:hidden}
/* Menu-first assistant: scoped to avoid changing the site components. */
#mada-assistant .ma-launch{width:64px;height:64px;border-radius:22px;justify-content:center;padding:0;background:#103e43;border:1px solid #bad4c9;box-shadow:0 8px 28px #103e4330}
#mada-assistant .ma-launch>span{position:absolute;inset-inline-end:76px;white-space:nowrap;background:#fff;color:#164840;border:1px solid #e1e9e5;border-radius:10px;padding:7px 13px;font-size:13px;box-shadow:0 3px 16px #123c4310}
#mada-assistant .ma-launch[aria-expanded=true]>span{display:none}
#mada-assistant #ma-panel{width:410px;bottom:78px;border-radius:24px;max-height:calc(100dvh - 185px);box-shadow:0 24px 80px #153e4333}
#mada-assistant .ma-head{background:#fff;color:#123c43;border-bottom:1px solid #e7eeea;gap:12px;padding:16px 18px;flex-shrink:0}
#mada-assistant .ma-head>div{flex:1}
#mada-assistant .ma-head strong{font-size:18px}
#mada-assistant .ma-head small{color:#617a74;font-size:11px}
#mada-assistant .ma-avatar{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:16px;background:#e8f2eb;color:#16685f}
#mada-assistant .ma-close{color:#55726a;background:#f3f6f3;border-radius:50%;width:34px;height:34px;font-size:24px!important}
#mada-assistant .ma-body{background:#f7f9f5;padding:22px 18px}
#mada-assistant .ma-greeting{color:#52756a;font-size:11px;font-weight:600}
#mada-assistant .ma-welcome h2{font-size:27px;line-height:1.5;margin:5px 0 8px;font-weight:700;letter-spacing:0;color:#123c43}
#mada-assistant .ma-intro{font-size:14px;line-height:1.7;font-weight:400;margin:0 0 10px;color:#48665e}
#mada-assistant .ma-note{font-size:11px;line-height:1.7;margin:0 0 18px;color:#63786f}
#mada-assistant .ma-menu{display:grid;gap:9px}
#mada-assistant .ma-menu .ma-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:51px;padding:12px 16px;background:#fff;border:1px solid #e0e8df;border-radius:13px;font-weight:600;font-size:14px;transition:background .18s,border-color .18s}
#mada-assistant .ma-menu .ma-option:hover{background:#eaf3ec;border-color:#a3c5b6}
#mada-assistant .ma-menu .ma-option:first-child{background:#123e42;color:#fff;border-color:#123e42}
#mada-assistant .ma-menu .ma-option span{font-size:20px;font-weight:400}
#mada-assistant.ma-chatting .ma-welcome{display:none}
#mada-assistant .ma-log:empty{display:none}
#mada-assistant .ma-message{background:#fff;border:1px solid #e1e9df;margin:0 16px 14px 0;border-radius:16px 16px 4px 16px;font-size:14px}
#mada-assistant .ma-message.ma-user{background:#dfeee4;border:0;margin-inline-start:35px;margin-inline-end:0;border-radius:16px 16px 16px 4px}
#mada-assistant .ma-message a{padding:11px 12px;margin-top:7px;background:#f4f8f3;border:1px solid #dae7dd;border-radius:10px;text-decoration:none;font-weight:600;font-size:13px}
#mada-assistant .ma-message a:hover{background:#e1eee5}
#mada-assistant .ma-message .ma-options{display:grid;gap:7px}
#mada-assistant .ma-message .ma-option{font-size:13px;background:#f6f9f4;border-color:#dce7dd}
#mada-assistant .ma-form{flex-shrink:0;padding:13px 16px 8px}
#mada-assistant .ma-form label{color:#62766e;font-size:11px}
#mada-assistant .ma-form input{background:#f7f9f6;border-color:#dce6dc;border-radius:12px}
#mada-assistant .ma-form button{border-radius:12px}
#mada-assistant .ma-foot{flex-shrink:0;padding:10px 18px 15px}
@media(max-width:480px){#mada-assistant #ma-panel{width:calc(100vw - 24px);max-height:calc(100dvh - 172px);bottom:76px}#mada-assistant .ma-body{padding:16px}#mada-assistant .ma-welcome h2{font-size:24px}#mada-assistant .ma-menu .ma-option{min-height:46px;padding:10px 13px}}
@media(prefers-reduced-motion:reduce){#mada-assistant .ma-menu .ma-option{transition:none}}
/* Conversation layout: welcome bubble, quick replies and alternating messages. */
#mada-assistant #ma-panel{height:min(660px,calc(100dvh - 185px))}
#mada-assistant .ma-body{background:#f2f5f1}
#mada-assistant .ma-welcome{position:relative;background:#fff;border:1px solid #e1e8df;border-radius:17px 17px 4px 17px;padding:16px;margin-inline-end:24px;margin-bottom:16px}
#mada-assistant .ma-welcome h2{font-size:21px;margin:5px 0 8px}
#mada-assistant .ma-menu{display:flex;flex-wrap:wrap;gap:7px}
#mada-assistant .ma-menu .ma-option,#mada-assistant .ma-menu .ma-option:first-child{width:auto;min-height:38px;padding:8px 11px;background:#fff;color:#16685f;border:1px solid #b9d5c5;border-radius:11px;font-size:12px;font-weight:600}
#mada-assistant .ma-menu .ma-option span{font-size:15px}
#mada-assistant .ma-menu .ma-option:hover,#mada-assistant .ma-menu .ma-option:first-child:hover{background:#e8f3eb}
#mada-assistant .ma-note{font-size:10px;line-height:1.7;margin-bottom:13px}
#mada-assistant .ma-message:not(.ma-user):before{content:'مساعد مدى';display:block;font-size:10px;color:#60776d;margin-bottom:6px}
#mada-assistant[dir=ltr] .ma-message:not(.ma-user):before{content:'Mada assistant'}
#mada-assistant .ma-message.ma-user{background:#174d47;color:white;margin-inline-start:44px;margin-inline-end:0;border-radius:15px 15px 15px 4px}
#mada-assistant .ma-form label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#mada-assistant .ma-form{padding-top:15px}
#mada-assistant .ma-foot{font-size:11px}
@media(max-width:480px){#mada-assistant #ma-panel{height:calc(100dvh - 172px)}#mada-assistant .ma-welcome{padding:14px;margin-inline-end:10px}}
/* Accessible conversation refinements. */
#mada-assistant .ma-message:not(.ma-user):before{content:none}
#mada-assistant .ma-speaker{display:block;font-size:11px;color:#557469;margin-bottom:6px}
#mada-assistant .ma-user .ma-speaker{color:#c8e6db}
#mada-assistant .ma-message{margin-inline-start:0;margin-inline-end:24px}
#mada-assistant .ma-message.ma-user{margin-inline-start:48px;margin-inline-end:0}
#mada-assistant .ma-message .ma-options{display:flex;flex-wrap:wrap;margin-top:12px}
#mada-assistant .ma-option{min-height:44px}
#mada-assistant .ma-clear{border:0;background:none;color:#365d51;text-decoration:underline;padding:0;font-size:11px}
#mada-assistant .ma-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#mada-assistant .ma-body{position:relative;scrollbar-width:thin;scrollbar-color:#b7c9be transparent}
#mada-assistant .ma-foot{align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:480px){#mada-assistant{bottom:calc(82px + var(--ma-keyboard,0px))}#mada-assistant #ma-panel{max-height:calc(var(--ma-view-height,100dvh) - 172px);height:calc(var(--ma-view-height,100dvh) - 172px)}#mada-assistant:has(#ma-panel:not([hidden])){bottom:calc(8px + var(--ma-keyboard,0px))}#mada-assistant:has(#ma-panel:not([hidden])) #ma-panel{bottom:0;max-height:calc(var(--ma-view-height,100dvh) - 16px);height:calc(var(--ma-view-height,100dvh) - 16px)}#mada-assistant:has(#ma-panel:not([hidden])) .ma-launch{visibility:hidden}}

body:has(#ma-panel:not([hidden])) #ht-ctc-chat{visibility:hidden!important;pointer-events:none!important}

