/* CC_V5438_PROFILE_MENU_INTEGRATION_VERIFIED */

/* Cool & Care V5.4.3.0 — User Profile Management Extension */
:root{
  --cc-profile-teal:#087e91;
  --cc-profile-ink:#0f172a;
  --cc-profile-muted:#64748b;
  --cc-profile-line:#d7e6ec;
  --cc-profile-soft:#f3fafc;
  --cc-profile-danger:#b83d35;
}

.profile-avatar[data-cc-profile-avatar]{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#dff5f8;
  color:var(--cc-profile-ink);
  font-weight:800;
  flex:0 0 auto;
  cursor:pointer;
}
.profile-trigger .profile-avatar[data-cc-profile-avatar]{
  width:38px;
  height:38px;
  border-radius:12px;
}
.profile-avatar.large[data-cc-profile-avatar]{
  width:64px!important;
  height:64px!important;
  border-radius:16px!important;
  font-size:18px;
}
.profile-avatar[data-cc-profile-avatar] img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:inherit;
}
.profile-avatar[data-cc-profile-avatar]::after{
  content:"📷";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.64);
  color:#fff;
  opacity:0;
  transform:scale(.96);
  transition:opacity .16s ease,transform .16s ease;
  font-size:16px;
  pointer-events:none;
}
.profile-avatar.large[data-cc-profile-avatar]::after{font-size:21px}
.profile-avatar[data-cc-profile-avatar]:hover::after,
.profile-avatar[data-cc-profile-avatar]:focus-visible::after{
  opacity:1;
  transform:scale(1);
}
.profile-dropdown-head{
  position:relative;
}
.cc-profile-head-actions{
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
}
.cc-profile-edit-btn{
  border:1px solid #c9dce4;
  background:#fff;
  color:#15506d;
  border-radius:9px;
  padding:7px 9px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.cc-profile-edit-btn:hover{border-color:#55afc0;background:#f3fbfd}
.cc-linkedin-badge{
  width:30px;
  height:30px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#0a66c2;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900;
  font-size:13px;
}
.cc-profile-modal,
.cc-avatar-crop-modal{
  width:min(760px,94vw);
  max-width:94vw;
  padding:0;
  border:0;
  border-radius:20px;
  box-shadow:0 26px 75px rgba(15,23,42,.27);
  color:#163a55;
}
.cc-avatar-crop-modal{width:min(560px,94vw)}
.cc-profile-modal::backdrop,
.cc-avatar-crop-modal::backdrop{
  background:rgba(10,31,45,.5);
  backdrop-filter:blur(2px);
}
.cc-profile-modal-card{padding:24px}
.cc-profile-modal-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  border-bottom:1px solid #e4edf1;
  padding-bottom:16px;
  margin-bottom:18px;
}
.cc-profile-modal-head h2{margin:2px 0 4px;color:#0b4264;font-size:24px}
.cc-profile-modal-head p{margin:0;color:#6a8496;font-size:13px;line-height:1.45}
.cc-profile-modal-close{
  width:38px;height:38px;border:0;border-radius:10px;background:#f1f6f8;color:#345b70;
  cursor:pointer;font-size:22px;line-height:1
}
.cc-profile-photo-row{
  display:grid;
  grid-template-columns:84px 1fr;
  gap:16px;
  align-items:center;
  padding:14px;
  border:1px solid #dbe8ed;
  border-radius:15px;
  background:#f9fcfd;
  margin-bottom:18px;
}
.cc-profile-photo-preview{
  width:64px;height:64px;border-radius:16px;background:#dff5f8;color:#0f172a;
  display:flex;align-items:center;justify-content:center;font-weight:800;overflow:hidden
}
.cc-profile-photo-preview img{width:100%;height:100%;object-fit:cover}
.cc-profile-photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.cc-profile-btn{
  border:1px solid #c8dbe3;background:#fff;color:#144c68;border-radius:10px;
  padding:9px 12px;font-weight:800;cursor:pointer
}
.cc-profile-btn:hover{border-color:#54adbe;background:#f4fbfd}
.cc-profile-btn.primary{background:#079db7;border-color:#079db7;color:#fff}
.cc-profile-btn.danger{color:#ad3f37;border-color:#efc8c4;background:#fff8f7}
.cc-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cc-profile-field{display:block}
.cc-profile-field.full{grid-column:1/-1}
.cc-profile-field>span{
  display:block;
  margin:0 0 6px;
  color:#173f5d;
  font-size:13px;
  font-weight:800
}
.cc-profile-field input,
.cc-profile-field textarea,
.cc-phone-row select,
.cc-phone-row input{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  border:1px solid #bad0da;
  border-radius:10px;
  background:#fff;
  color:#163a55;
  padding:10px 11px;
  font:inherit;
}
.cc-profile-field textarea{min-height:88px;resize:vertical}
.cc-profile-field input:focus,
.cc-profile-field textarea:focus,
.cc-phone-row select:focus,
.cc-phone-row input:focus{
  outline:3px solid rgba(7,157,183,.11);
  border-color:#079db7
}
.cc-phone-row{display:grid;grid-template-columns:104px 1fr;gap:7px}
.cc-profile-help{display:block;margin-top:5px;color:#7890a0;font-size:11px}
.cc-profile-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid #e6eef2
}
.cc-profile-toast{
  position:fixed;
  z-index:2147483647;
  right:22px;
  bottom:22px;
  max-width:min(520px,90vw);
  padding:14px 17px;
  border-radius:12px;
  background:#063f5d;
  color:#fff;
  box-shadow:0 16px 38px rgba(0,0,0,.22);
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:.2s ease
}
.cc-profile-toast.show{opacity:1;transform:none}
.cc-profile-toast.error{background:#a43b34}

/* Cropper */
.cc-crop-wrap{padding:22px}
.cc-crop-wrap h2{margin:0 0 5px;color:#0b4264}
.cc-crop-wrap>p{margin:0 0 16px;color:#6d8798;font-size:13px}
.cc-crop-stage{
  width:min(360px,80vw);
  aspect-ratio:1/1;
  margin:0 auto;
  border-radius:18px;
  overflow:hidden;
  background:#0f172a;
  touch-action:none;
  cursor:grab;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)
}
.cc-crop-stage:active{cursor:grabbing}
.cc-crop-stage canvas{display:block;width:100%;height:100%}
.cc-crop-controls{margin:17px auto 0;max-width:360px}
.cc-crop-controls label{display:grid;grid-template-columns:55px 1fr;gap:10px;align-items:center;font-size:13px;font-weight:800}
.cc-crop-controls input[type="range"]{width:100%}
.cc-crop-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}

@media(max-width:720px){
  .cc-profile-grid{grid-template-columns:1fr}
  .cc-profile-field.full{grid-column:1}
  .cc-profile-photo-row{grid-template-columns:70px 1fr}
  .cc-profile-head-actions{position:absolute;right:10px;bottom:10px}
}


/* V5.4.3.1 — hard avatar containment / broken-image protection */
.profile-trigger .profile-avatar[data-cc-profile-avatar]{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  flex:0 0 38px!important;
  border-radius:12px!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
  overflow:hidden!important;
}
.profile-dropdown .profile-avatar.large[data-cc-profile-avatar]{
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  flex:0 0 64px!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.profile-avatar[data-cc-profile-avatar] img,
.cc-profile-photo-preview img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:inherit!important;
  font-size:0!important;
  color:transparent!important;
}
.profile-avatar[data-cc-profile-avatar].has-photo{
  color:transparent!important;
  font-size:0!important;
}
.profile-trigger .profile-copy{
  min-width:0!important;
  overflow:hidden!important;
}
.profile-trigger .profile-copy strong,
.profile-trigger .profile-copy small{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}


/* V5.4.3.8 image endpoint rendering hardening */
.profile-avatar[data-cc-profile-avatar] img,
.cc-profile-photo-preview img{
  text-indent:-9999px!important;
  overflow:hidden!important;
  background:#dff5f8!important;
}


/* V5.4.3.8 — Edit Profile integrated into normal profile menu list */
.cc-profile-menu-link{
  text-decoration:none!important;
}
.cc-profile-menu-link span{
  display:block;
}
.cc-profile-menu-link small{
  display:block;
}
.profile-dropdown-head .cc-profile-edit-btn,
.profile-dropdown-head [data-cc-edit-profile]{
  display:none!important;
}
