/* Shared controls; scoped to Ebrahimi components and the existing Digits popup. */
body.eb-site .eb-shell-account,body.eb-site .eb-shell-account:visited,body.eb-site .eb-shell-account span,body.eb-site .eb-shell-account svg{color:#fff!important}
body.eb-site .eb-shell-account{font-size:14px;min-height:48px;white-space:nowrap;background:#00576b;box-shadow:0 7px 20px #00394b20}
body.eb-site .eb-shell-brand small{font-size:12px;color:#285767;background:#e2f3ef;padding:3px 10px;border-radius:6px;margin-top:4px}
body.eb-site .eb-shell-nav{gap:30px}
body.eb-site .eb-shell-nav a{font-size:16px;font-weight:650;padding:18px 0}
body.eb-site .eb-header-search{width:48px;height:48px;display:grid;place-items:center;border:1px solid #a6c9cd;background:#edf7f4;border-radius:12px;color:#00576b}
.eb-search-dialog{font-family:Ebrahimi,Tahoma,sans-serif;direction:rtl;width:min(620px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:32px;border:1px solid #c7eeee;border-radius:22px;background:#f3fcf9;color:#073247;box-shadow:0 24px 80px #00283d55}
.eb-search-dialog::backdrop{background:#001b32b8;backdrop-filter:blur(8px)}
.eb-search-dialog svg,.eb-mobile-dock svg,.eb-hero-account svg{width:24px;height:24px;flex-shrink:0}
.eb-search-top{display:flex;justify-content:space-between;align-items:center;gap:16px}
.eb-search-top h2{font-size:26px;line-height:1.6;margin:0;color:#073247}
.eb-search-top button{background:#d7eeea;border:0;border-radius:10px;width:44px;height:44px;display:grid;place-items:center;cursor:pointer;color:#073247}
.eb-search-dialog p{color:#476572;font-size:15px}
.eb-search-dialog label{display:block;font-size:14px;margin:24px 0 8px}
.eb-search-field{display:flex;gap:8px}.eb-search-field input{width:100%;min-width:0;border:1px solid #a3c8ca;border-radius:10px;padding:12px;font:inherit;font-size:16px;background:#fff}
.eb-search-field button{display:flex;align-items:center;gap:6px;border:0;border-radius:10px;background:#00576b;color:#fff;padding:12px 16px;cursor:pointer;font:inherit}
.eb-search-suggestions{display:flex;gap:10px;margin-top:18px}.eb-search-suggestions a{background:#e0efec;padding:8px 18px;border-radius:8px;color:#00576b}
.eb-search-dialog :focus-visible{outline:3px solid #b5481b;outline-offset:3px}
.eb-mobile-dock{display:none}
/* Digits owns submission, validation, password steps, OTP and authentication. */
body.eb-site #digits_protected .digits_popup_wrapper{background:rgba(0,27,43,.78)!important;backdrop-filter:blur(12px)}
body.eb-site #digits_protected .digits-form_page{background:transparent!important;padding:24px 12px!important;min-height:100dvh;overflow:auto}
body.eb-site #digits_protected .digits-form_container{--dprimary:#00677b;--dtitle:#073247;--dfield_bg:#f4faf9;--daccent:#00858b;--dform_bg:#edf8f5;--dbutton_text:#ffffff;background:#edf8f5ed!important;border:1px solid #ffffffa8!important;border-radius:24px!important;box-shadow:0 24px 70px #00172266!important;width:min(480px,100%)!important;max-width:480px!important;padding:28px!important;color:#073247!important;margin:auto!important}
body.eb-site #digits_protected .digits-form_heading{font-size:29px!important;color:#073247!important;line-height:1.5!important;margin-bottom:22px!important}
body.eb-site #digits_protected .digits-form_heading::before{content:'دکتر علی ابراهیمی';display:block;font-size:15px;font-weight:600;line-height:2;color:#00677b;margin-bottom:8px}
body.eb-site #digits_protected .digits-form_input_row{border-radius:12px!important}
body.eb-site #digits_protected input{font-family:Ebrahimi,Tahoma,sans-serif!important;font-size:16px!important}
body.eb-site #digits_protected .digits-form_tab-item{font-size:14px!important;line-height:1.8!important}
body.eb-site #digits_protected .digits-form_submit-btn{border-radius:12px!important;font-size:16px!important;min-height:48px!important}
body.eb-site #digits_protected .digits-form_footer{font-size:14px!important;line-height:1.9!important}
body.eb-site #digits_protected .digits-cancel{color:#fff!important;background:#00576b!important;border-radius:50%!important}
@media(max-width:760px){
body.eb-site .eb-shell-row{gap:10px;align-items:center}
body.eb-site .eb-shell-brand{flex:1 1 calc(100% - 56px)}
body.eb-site .eb-shell-brand strong{font-size:21px}
body.eb-site .eb-shell-brand small{font-size:11px;display:inline-block}
body.eb-site .eb-shell-actions{width:100%;margin:2px 0 0;display:flex;gap:10px}
body.eb-site .eb-shell-account{flex:1;justify-content:center;font-size:14px;padding:10px 12px}
body.eb-site .eb-shell-account span{max-width:none;line-height:1.8}
body.eb-site .eb-shell-account svg{display:block}
body.eb-site .eb-shell-header .eb-menu{width:48px;height:48px}
body.eb-site .eb-shell-nav a{font-size:16px;padding:12px 0}
body.eb-site{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
.eb-mobile-dock{position:fixed;z-index:9990;bottom:calc(12px + env(safe-area-inset-bottom,0px));right:12px;left:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));direction:rtl;padding:8px 5px;border-radius:22px;background:#07384bf5;backdrop-filter:blur(14px);border:1px solid #70ced4;box-shadow:0 10px 35px #001d4655;font-family:Ebrahimi,Tahoma,sans-serif}
body.eb-site .eb-mobile-dock a{min-height:58px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:11px;color:#e5fafb!important;border-radius:15px;text-decoration:none}
.eb-mobile-dock svg{width:25px;height:25px}
body.eb-site .eb-mobile-dock a[aria-current]{background:#c0f3e9;color:#004359!important;box-shadow:0 3px 12px #001e3c44}
.eb-mobile-dock a:focus-visible{outline:3px solid #ffae7e;outline-offset:2px}
body.eb-site #floating-button{bottom:112px!important}
.eb-search-dialog{padding:22px}.eb-search-top h2{font-size:23px}.eb-search-field button span{display:none}
body.eb-site #digits_protected .digits-form_container{padding:24px 20px!important}
body.eb-site #digits_protected .digits-form_page{padding-bottom:110px!important}
}
@media(prefers-reduced-motion:reduce){.eb-search-dialog::backdrop,.eb-mobile-dock{backdrop-filter:none}}

/* Replace only the identified Studiare floating and bottom navigation. */
body.eb-site .sc_studi_hamburger,body.eb-site .sc_studi_smart_nav_content,body.eb-site .sc-mobile-bottom-nav,body.eb-site #mobile-bottom-nav-spacer{display:none!important}
body.eb-site .eb-header-search svg{width:24px;height:24px}

/* Closed search dialog must not leak into the document footer. */
#eb-search-dialog:not([open]){display:none!important}
#eb-search-dialog[open]{position:fixed;inset:0;margin:auto;z-index:100000}
.eb-shell-footer .eb-footer-search{display:flex;align-items:center;gap:4px;width:260px;max-width:100%;margin:0;padding:4px 8px;border:1px solid #558590;border-radius:12px;background:#103f50}
.eb-shell-footer .eb-footer-search input[type=search]{width:100%;min-width:0;height:38px;padding:6px 8px;margin:0;border:0;background:transparent;box-shadow:none;color:#fff;font:inherit;font-size:13px}
.eb-shell-footer .eb-footer-search input::placeholder{color:#c5dcdf;opacity:1}
.eb-shell-footer .eb-footer-search button{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;padding:8px;border:0;background:none;color:#a6f1e9;cursor:pointer}
.eb-footer-search svg{width:22px;height:22px;fill:none;stroke:currentColor}
.eb-footer-search :focus-visible{outline:2px solid #ff9a57;outline-offset:2px}
@media(max-width:760px){.eb-shell-footer .eb-footer-search{display:none!important}}

/* Hide Studiare floating telephone on desktop and mobile. */
body.eb-site #floating-button{display:none!important;visibility:hidden!important;pointer-events:none!important}
