/* OMR user profile - intentionally scoped to avoid restyling public site or checkout. */
.omr-profile-menu,.omr-profile-menu *{box-sizing:border-box}
.omr-profile-menu{position:relative;flex:0 0 38px;display:flex;align-items:center;justify-content:center;z-index:10010;min-width:38px;isolation:isolate;font-family:Arial,Tahoma,sans-serif;direction:ltr}
.omr-profile-menu [hidden]{display:none!important}
.omr-profile-trigger{appearance:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:3px;margin:0;border-radius:50%;border:1px solid #e3e7ed;background:#fff;box-shadow:0 2px 6px rgba(22,29,44,.08);cursor:pointer;transition:box-shadow .15s ease,transform .15s ease}
.omr-profile-trigger:hover,.omr-profile-trigger:focus-visible{box-shadow:0 0 0 3px #fbe2ed,0 3px 12px #151d331e;outline:0;transform:none}
.omr-profile-icon{display:block;width:32px;height:32px;object-fit:cover;border-radius:50%}
.omr-profile-popup{position:absolute;z-index:10011;top:calc(100% + 12px);inset-inline-end:0;width:min(354px,calc(100vw - 24px));max-height:min(75vh,650px);overflow-y:auto;padding:18px 16px 14px;border:1px solid #e8eaf1;background:#f8f9fc;color:#202631;border-radius:24px;box-shadow:0 18px 56px rgba(20,28,45,.2);text-align:start;line-height:1.5;font-size:14px}
.omr-profile-popup[dir=rtl]{text-align:right}
.omr-profile-card-head{display:flex;align-items:center;flex-direction:column;gap:4px;padding:8px 10px 16px;text-align:center;min-width:0}
.omr-profile-big-avatar{background:transparent;position:relative;width:78px;height:78px;border:0;padding:3px;cursor:pointer;border-radius:50%;margin-bottom:5px}
.omr-profile-big-avatar img{width:72px;height:72px;border-radius:50%;display:block;object-fit:cover}
.omr-profile-pencil{position:absolute;right:-1px;bottom:1px;background:#fff;border:1px solid #ecedf2;border-radius:50%;width:25px;height:25px;color:#313a46;font-size:17px;line-height:23px;box-shadow:0 2px 5px #2335}
.omr-profile-name{max-width:100%;overflow-wrap:anywhere;color:#202631;font-weight:750;font-size:19px;line-height:1.35}
.omr-profile-email{max-width:100%;overflow-wrap:anywhere;font-size:13px;color:#586476;line-height:1.5}
.omr-profile-details{background:#fff;border:1px solid #edf0f5;border-radius:15px;overflow:hidden}
.omr-profile-row{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding:11px 13px;font-size:12px;border-bottom:1px solid #eef0f3}
.omr-profile-row:last-child{border-bottom:0}
.omr-profile-row span{flex:0 0 40%;color:#727e90}
.omr-profile-row strong{flex:1;text-align:end;font-size:13px;color:#2b3647;font-weight:650;overflow-wrap:anywhere;direction:auto}
.omr-profile-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:stretch;margin-top:14px}
.omr-profile-actions :is(a,button){flex:1;min-width:100px;min-height:40px;border-radius:12px;border:1px solid #d9dfe7;padding:9px 13px;font-size:13px;font-weight:700;line-height:20px;text-align:center;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s}
.omr-profile-actions .omr-profile-account{background:#fff!important;color:#273346!important}
.omr-profile-actions .omr-profile-auth{background:#252c36!important;color:#fff!important;border-color:#252c36!important}
.omr-profile-actions .omr-profile-auth:hover{background:#3b434f!important}
.omr-avatar-chooser{background:#fff;border-radius:15px;margin-top:10px;padding:12px;border:1px solid #ebeef3}
.omr-avatar-title{display:block;margin-bottom:10px;font-weight:700;color:#344054}
.omr-avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.omr-avatar-option{width:100%;display:flex;justify-content:center;align-items:center;border-radius:13px;border:2px solid transparent;background:#f6f7fa;padding:6px;cursor:pointer}
.omr-avatar-option:hover,.omr-avatar-option.is-selected{border-color:#ce4d7e;background:#fff2f7}
.omr-avatar-option img{width:49px;height:49px;object-fit:cover;border-radius:50%}
.omr-profile-message{margin:9px 0 0;color:#a03b5c;font-size:12px}
.omr-profile-floating{position:fixed;right:16px;top:14px}
body.osd-site .omr-profile-popup :is(button,a){transform:none}
body.osd-checkout header.brand{position:relative;padding-right:66px!important}
body.osd-checkout header.brand .omr-profile-menu{position:absolute;right:15px;top:50%;transform:translateY(-50%)}
body.osd-analytics .top .omr-profile-menu{flex:0 0 38px}
body.osd-analytics .top .omr-profile-popup{right:0;left:auto}
@media(max-width:640px){
  .omr-profile-menu{flex-basis:36px;min-width:36px}
  .omr-profile-trigger{width:36px;height:36px}
  .omr-profile-icon{width:30px;height:30px}
  .omr-profile-popup{width:min(340px,calc(100vw - 18px));position:fixed;top:62px;right:9px;left:auto;max-height:calc(100dvh - 75px);border-radius:19px}
  body.osd-analytics .omr-profile-popup{top:60px;right:8px}
}

/* The avatar replaces redundant Account links in the compact top navigation. */
body.omr-profile-ready.osd-home header nav .account-entry,
body.omr-profile-ready.osd-landing header .nav-links a[href*="account.php"],
body.omr-profile-ready.osd-downloads header .navlinks a[href*="account.php"],
body.omr-profile-ready .site-header .site-links a[href*="account.php"]{display:none!important}
