/* The native dialog keeps focus and the referring page's state, including other open panels. */
#cc-profile-dialog { box-sizing:border-box; width:min(920px,calc(100vw - 32px)); height:min(850px,90dvh); max-height:90dvh; margin:auto; padding:0; border:1px solid #dfe7e2; border-radius:24px; background:#fff; color:#17372f; box-shadow:0 26px 90px #071a1766; overflow:hidden; }
#cc-profile-dialog[open] { display:flex; flex-direction:column; }
#cc-profile-dialog:not([open]), #cc-profile-dialog [hidden] { display:none!important; }
#cc-profile-dialog::backdrop { background:#102c2599; backdrop-filter:blur(4px); }
#cc-profile-dialog .cc-profile-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 24px; background:#f7f6f1; border-bottom:1px solid #e0e7e2; flex:none; }
#cc-profile-dialog .cc-profile-dialog-header small { color:#63736d; font:700 11px/1.4 system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
#cc-profile-dialog #cc-profile-dialog-title { color:#17372f; font:400 27px/1.15 Georgia,serif; padding:4px 0 0; margin:0; overflow-wrap:anywhere; }
#cc-profile-dialog .cc-profile-close { flex:none; width:44px; height:44px; padding:0; border:1px solid #dce5de; border-radius:50%; background:#fff; color:#17372f; font:400 30px/1 system-ui; cursor:pointer; }
#cc-profile-dialog .cc-profile-frame { width:100%; min-height:0; flex:1 1 auto; border:0; background:#fff; }
#cc-profile-dialog .cc-profile-loading { flex:1; display:grid; place-items:center; padding:32px; color:#52685f; font:16px/1.6 system-ui,sans-serif; text-align:center; }
#cc-profile-dialog .cc-profile-dialog-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 20px; padding:12px 24px; border-top:1px solid #e0e7e2; background:#f7f6f1; font:12px/1.5 system-ui,sans-serif; flex:none; }
#cc-profile-dialog .cc-profile-dialog-footer a { color:#8f236b; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
#cc-profile-dialog :is(button,a):focus-visible { outline:3px solid #b71875; outline-offset:3px; }
body.cc-profile-modal-open { overflow:hidden!important; }

/* One white rim on the anchor; the portrait fills its inner circle at every UM breakpoint. */
body.um-page-user .um-profile .um-profile-photo a.um-profile-photo-img { padding:0!important; border-radius:50%!important; overflow:hidden!important; }
body.um-page-user .um-profile .um-profile-photo a.um-profile-photo-img > img { display:block!important; width:100%!important; height:100%!important; max-width:none!important; max-height:none!important; margin:0!important; padding:0!important; border:0!important; border-radius:50%!important; object-fit:cover!important; object-position:center; box-shadow:none!important; }

/* Core forces flex on both UM responsive variants: retain one labeled tab on native and embedded profiles. */
body.um-page-user .um-profile .um-profile-nav-item a[class*="-show"] { display:none!important; }
body.um-page-user .um-profile .um-profile-nav-item a[class*="-hide"] { display:flex!important; align-items:center; justify-content:center; gap:7px; }

/* A single segmented navigation system, overriding both UM and the older Core tab rules. */
body.um-page-user .um-profile .um-profile-nav { box-sizing:border-box!important; display:flex!important; align-items:stretch!important; width:auto!important; margin:20px 24px 0!important; padding:6px!important; gap:6px!important; background:#f5f6f2!important; border:1px solid #dce5df!important; border-radius:16px!important; box-shadow:none!important; }
body.um-page-user .um-profile .um-profile-nav > .um-clear { display:none!important; }
body.um-page-user .um-profile .um-profile-nav-item { flex:1 1 0!important; min-width:0!important; float:none!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
body.um-page-user .um-profile .um-profile-nav-item a { box-sizing:border-box!important; width:100%!important; min-height:52px!important; height:100%!important; float:none!important; margin:0!important; padding:12px 14px!important; gap:9px!important; border:1px solid transparent!important; border-radius:11px!important; background:transparent!important; color:#415d53!important; font:650 14px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important; text-align:center!important; text-decoration:none!important; box-shadow:none!important; transition:background-color .15s ease,color .15s ease,border-color .15s ease; }
body.um-page-user .um-profile .um-profile-nav-item a .title { display:block!important; padding:0!important; margin:0!important; color:inherit!important; overflow-wrap:anywhere; }
body.um-page-user .um-profile .um-profile-nav-item a i { position:static!important; inset:auto!important; display:block!important; flex:0 0 auto!important; width:auto!important; height:auto!important; margin:0!important; padding:0!important; transform:none!important; color:inherit!important; font-size:16px!important; line-height:1!important; }
body.um-page-user .um-profile .um-profile-nav-item a:hover { background:#e7ede7!important; color:#17372f!important; }
body.um-page-user .um-profile .um-profile-nav-item.active a { background:#1f5848!important; border-color:#1f5848!important; color:#fff!important; box-shadow:0 2px 5px #17372f18!important; }
body.um-page-user .um-profile .um-profile-nav-item.active a:hover { background:#173f35!important; }
body.um-page-user .um-profile .um-profile-nav-item a:focus-visible { outline:3px solid #b71875!important; outline-offset:3px!important; }

/* Keep the original UM component and scripts, strip only the surrounding site chrome. */
html:has(body.cc-profile-embedded) { margin-top:0!important; padding:0!important; }
body.cc-profile-embedded { margin:0!important; padding:0!important; background:#fff!important; }
body.cc-profile-embedded :is(#wpadminbar,#main-header,#main-footer,.et-l--header,.et-l--footer,#cc-account-trigger,#cc-account-dialog,.couvin-core-trigger,.couvin-core-side,.couvin-core-backdrop,.couvin-personal-home,.couvin-source-cta,.couvin-source-fab,.couvin-source-dock,.couvin-source-modal,.couvin-source-rework,.pubcast-admin-panel,#cmplz-cookiebanner-container,.cmplz-cookiebanner) { display:none!important; }
/* Informez-nous belongs to the referring page, never to the profile iframe. */
body.cc-profile-embedded .couvin-source-dock { visibility:hidden!important; pointer-events:none!important; }
body.cc-profile-embedded :is(#page-container,#et-main-area,#et-boc) { top:auto!important; margin-top:0!important; padding-top:0!important; }
body.cc-profile-embedded .cc-profile-embed-shell { display:block!important; width:100%!important; max-width:none!important; margin:0!important; padding:0!important; min-height:0!important; height:auto!important; box-shadow:none!important; border:0!important; background:#fff!important; }
body.cc-profile-embedded .cc-profile-embed-shell > :not(.cc-profile-embed-shell):not(.um-profile) { display:none!important; }
body.cc-profile-embedded .cc-profile-embed-shell::before, body.cc-profile-embedded .cc-profile-embed-shell::after { display:none!important; }
body.cc-profile-embedded .um-profile { box-sizing:border-box; width:100%!important; max-width:none!important; margin:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; }
@media(max-width:600px) {
  #cc-profile-dialog { width:calc(100vw - 12px); height:94dvh; max-height:94dvh; border-radius:18px; }
  #cc-profile-dialog .cc-profile-dialog-header { padding:12px 14px; gap:10px; }
  #cc-profile-dialog #cc-profile-dialog-title { font-size:23px; }
  #cc-profile-dialog .cc-profile-dialog-footer { padding:10px 14px; }
  #cc-profile-dialog .cc-profile-dialog-footer > span { display:none; }
  body.um-page-user .um-profile .um-profile-nav { margin:16px 12px 0!important; padding:4px!important; gap:3px!important; border-radius:13px!important; }
  body.um-page-user .um-profile .um-profile-nav-item a { min-height:48px!important; font-size:12px!important; padding:10px 3px!important; border-radius:9px!important; }
  body.um-page-user .um-profile .um-profile-nav-item a i { display:none!important; }
}
