/* ICS | פורטל המטפלים - התאמות לאתר וורדפרס מעל העיצוב המאושר (הדר ופוטר אמיתיים, נגישות, מצבים). לא למחוק. */
#ics-tp [hidden]{display:none!important}
html.tp-dialog-open{overflow:hidden}
html:has(#ics-tp.ics-tp-site){scroll-behavior:smooth;scroll-padding-top:155px}
/* The site sets overflow-x:hidden on html/body, which breaks the sticky mini-site header. clip keeps the no-horizontal-scroll behavior without breaking sticky. */
html:has(#ics-tp.ics-tp-site),html:has(#ics-tp.ics-tp-site) body{overflow-x:clip!important;overflow-y:visible!important}
#ics-tp .tp-staff-badge{position:absolute;top:12px;left:12px;z-index:3;background:#fff4d6;color:#7a5200;border-radius:20px;padding:2px 10px;font-size:13px}
#ics-tp{position:relative;text-align:right;direction:rtl}
#ics-tp *{box-sizing:border-box}
#ics-tp img{height:auto}
#ics-tp .portrait,#ics-tp .reviewer-photo{height:revert-layer}

/* Buttons and fields inside the portal keep the portal look (theme resets are neutralized) */
#ics-tp :where(button){background:none;border:0;padding:0;color:inherit;border-radius:0;text-transform:none;letter-spacing:normal;font-weight:inherit}
#ics-tp :where(button:hover,button:focus){background:none;color:inherit;text-decoration:none}
#ics-tp :where(input,select,textarea){border-radius:0;transition:none}
#ics-tp a{box-shadow:none}

/* Load more */
#ics-tp .tp-more-wrap{display:flex;justify-content:center;margin:30px 0 10px}
#ics-tp .tp-more-button{background:#fff;color:#212f64;border:1px solid #d7e6ee;border-radius:12px;padding:12px 26px;font-size:16px;min-height:48px}
#ics-tp .tp-more-button:hover{background:#e5f8fb}
#ics-tp .tp-join-line{color:#cfe9f1;text-align:center;margin:26px 0 0;font-size:15px}
#ics-tp .tp-join-line a{color:#fff;text-decoration:underline;text-underline-offset:4px}

/* Basic details: location without a pasted map */
#ics-tp .basic-location.no-map{min-height:0}
#ics-tp .basic-location iframe{border:0}

/* Mini-site: preview bar for staff / the therapist */
#ics-tp .tp-preview-bar{background:#fff7e0;color:#5b4300;border-bottom:1px solid #f0dca6;font-size:15px;line-height:1.5;padding:10px 0;position:relative;z-index:31}
#ics-tp .tp-preview-bar .wrap{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
#ics-tp .tp-preview-bar a{display:inline-flex;align-items:center;gap:6px;margin-inline-start:auto;background:#212f64;color:#fff;border-radius:8px;padding:6px 12px;text-decoration:none}
#ics-tp .tp-preview-bar a svg{width:16px;height:16px}

/* Mini-site: admin bar offset for the sticky header */
.admin-bar #ics-tp .mini-header{top:32px}
@media(max-width:782px){.admin-bar #ics-tp .mini-header{top:0}}

/* Mini-site: institute role under the title */
#ics-tp .hero-institute-role{margin:6px 0 0;font-size:17px;color:#46527c}

/* Mini-site: articles with up to 3 images */
#ics-tp .article-figure{margin:0 0 18px}
#ics-tp .article-figure img{width:100%;height:auto;border-radius:12px;display:block}

/* Mini-site: map placeholder when a clinic has no pasted map */
#ics-tp .contact-location.no-map .location-description{margin-bottom:0}

/* Mini-site: return to the portal before the real site footer */
#ics-tp .tp-site-return{background:var(--navy,#212f64);padding:6px 0 46px}
#ics-tp .tp-site-return .wrap{display:flex;justify-content:center}

/* YouTube testimonial player */
#ics-tp .tp-video-dialog{width:min(960px,calc(100% - 28px));padding:46px 14px 14px;background:#0f1734;border:0}
#ics-tp .tp-video-dialog .dialog-close{position:absolute;top:8px;left:8px}
#ics-tp .tp-video-frame{position:relative;aspect-ratio:16/9;width:100%}
#ics-tp .tp-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:8px}

/* The site's floating course buttons are not part of a therapist's page */
body.ics-tp-minisite-page #ics-reg,body.ics-tp-minisite-page .icsDir-fab,body.ics-tp-terms-page #ics-reg,body.ics-tp-terms-page .icsDir-fab{display:none!important}
