/* =========================================================
   NORTH CRESCENT CONCIERGE WIDGET
   Floating chat interface
   ========================================================= */

/* =========================================================
   FLOATING BUTTON
   ========================================================= */

.nc-concierge-widget-button{
  position:fixed;
  right:24px;
  top:118px;
  bottom:auto;
  z-index:9990;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:52px;
  padding:0 18px;
  border:0;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#1E3A5F 0%,#4A9B8C 100%);
  box-shadow:0 10px 30px rgba(30,58,95,.28);
  font-family:Poppins,Arial,Helvetica,sans-serif;
  font-size:.76rem;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
  animation:ncConciergePulse 2.8s infinite;
}

  box-shadow:
    0 14px 34px rgba(20,42,69,.22);

  font-family:
    Poppins,
    Arial,
    Helvetica,
    sans-serif;

  font-size:.76rem;
  font-weight:700;

  cursor:pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    opacity .2s ease;
}

.nc-concierge-widget-button:hover{
  transform:translateY(-2px);

  box-shadow:
    0 18px 40px rgba(20,42,69,.28);
}

.nc-concierge-widget-button:focus-visible{
  outline:3px solid rgba(74,155,140,.35);
  outline-offset:4px;
}

.nc-concierge-widget-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  font-size:1.05rem;
  line-height:1;
}

.nc-concierge-widget-label{
  line-height:1;
}

.nc-concierge-widget-button-active{
  transform:scale(.96);
}


/* =========================================================
   WIDGET OVERLAY
   ========================================================= */

.nc-concierge-widget{
  position:fixed;
  inset:0;

  z-index:9980;

  pointer-events:none;
}

.nc-concierge-widget:not([hidden]){
  pointer-events:auto;
}


/* =========================================================
   BACKDROP
   ========================================================= */

.nc-concierge-widget-backdrop{
  position:absolute;
  inset:0;

  background:
    rgba(13,31,51,.14);

  backdrop-filter:
    blur(2px);

  -webkit-backdrop-filter:
    blur(2px);

  animation:
    ncConciergeFadeIn .2s ease;
}


/* =========================================================
   CHAT PANEL
   ========================================================= */

.nc-concierge-widget-panel{
  position:absolute;
  right:24px;
  top:178px;
  bottom:auto;

  width:min(
    410px,
    calc(100vw - 32px)
  );

  height:min(
    680px,
    calc(100vh - 120px)
  );

  display:flex;
  flex-direction:column;

  overflow:hidden;

  border:1px solid rgba(30,58,95,.14);

  border-radius:22px;

  background:#fff;

  box-shadow:
    0 24px 70px rgba(20,42,69,.24);

  animation:
    ncConciergePanelIn .24s ease;
}


/* =========================================================
   CHAT HEADER
   ========================================================= */

.nc-concierge-widget-header{
  display:flex;
  align-items:center;
  justify-content:space-between;

  min-height:70px;

  padding:12px 14px;

  background:#fff;

  border-bottom:
    1px solid #DDE6EC;
}

.nc-concierge-widget-identity{
  display:flex;
  align-items:center;

  gap:10px;

  min-width:0;
}

.nc-concierge-widget-avatar{
  display:flex;
  align-items:center;
  justify-content:center;

  flex:0 0 auto;

  width:40px;
  height:40px;

  border-radius:11px;

  color:#fff;

  background:
    linear-gradient(
      135deg,
      #1E3A5F,
      #4A9B8C
    );

  font-family:
    Poppins,
    Arial,
    Helvetica,
    sans-serif;

  font-size:.66rem;
  font-weight:800;
}

.nc-concierge-widget-identity h2{
  margin:0;

  overflow:hidden;

  color:#1E3A5F;

  font-family:
    Poppins,
    Arial,
    Helvetica,
    sans-serif;

  font-size:.78rem;
  font-weight:700;
  line-height:1.25;

  text-overflow:ellipsis;
  white-space:nowrap;
}

.nc-concierge-widget-status{
  display:flex;
  align-items:center;

  gap:5px;

  margin-top:3px;

  color:#718096;

  font-family:
    Poppins,
    Arial,
    Helvetica,
    sans-serif;

  font-size:.58rem;
  line-height:1.2;
}

.nc-concierge-widget-status span{
  width:6px;
  height:6px;

  flex:0 0 auto;

  border-radius:50%;

  background:#4A9B8C;

  box-shadow:
    0 0 0 3px rgba(74,155,140,.10);
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.nc-concierge-widget-close{
  display:flex;
  align-items:center;
  justify-content:center;

  flex:0 0 auto;

  width:34px;
  height:34px;

  padding:0;

  border:
    1px solid #DDE6EC;

  border-radius:9px;

  background:#fff;

  color:#1E3A5F;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:1.35rem;
  font-weight:400;

  line-height:1;

  cursor:pointer;

  transition:
    background .18s ease,
    border-color .18s ease;
}

.nc-concierge-widget-close:hover{
  background:#F4F7F9;

  border-color:
    #C9D6DF;
}

.nc-concierge-widget-close:focus-visible{
  outline:3px solid rgba(74,155,140,.30);
  outline-offset:2px;
}


/* =========================================================
   IFRAME AREA
   ========================================================= */

.nc-concierge-widget-frame-wrap{
  position:relative;

  flex:1;

  min-height:0;

  overflow:hidden;

  background:#F7FAFC;
}

#ncConciergeWidgetFrame{
  display:block;

  width:100%;
  height:100%;

  margin:0;
  padding:0;

  border:0;

  background:#F7FAFC;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes ncConciergeFadeIn{

  from{
    opacity:0;
  }

  to{
    opacity:1;
  }

}

@keyframes ncConciergePanelIn{

  from{
    opacity:0;

    transform:
      translateY(18px)
      scale(.97);
  }

  to{
    opacity:1;

    transform:
      translateY(0)
      scale(1);
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

.nc-concierge-widget-button{
  right:14px;
  top:78px;
  bottom:auto;

    min-height:50px;

    padding:
      0 15px;
  }

  .nc-concierge-widget-panel{
    top:8px;
    right:8px;
    bottom:8px;
    left:8px;

    width:auto;

    height:auto;
    max-height:none;

    border-radius:18px;
  }

  .nc-concierge-widget-header{
    min-height:64px;

    padding:
      10px 12px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width:380px){

  .nc-concierge-widget-button{
    width:50px;
    height:50px;

    min-height:50px;

    padding:0;
  }

  .nc-concierge-widget-label{
    display:none;
  }

  .nc-concierge-widget-panel{
    top:5px;
    right:5px;
    bottom:5px;
    left:5px;

    border-radius:16px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce){

  .nc-concierge-widget *,
  .nc-concierge-widget-button{

    animation:none !important;

    transition:none !important;
  }

}
@keyframes ncConciergePulse{
  0%,100%{
    box-shadow:0 10px 30px rgba(30,58,95,.28),
               0 0 0 0 rgba(74,155,140,.30);
  }

  50%{
    box-shadow:0 10px 30px rgba(30,58,95,.32),
               0 0 0 10px rgba(74,155,140,0);
  }
}
/* =========================================================
   CONCIERGE WIDGET — SIZE FIX
   ========================================================= */

.nc-concierge-widget-panel{
  position:absolute !important;
  top:118px !important;
  right:24px !important;
  bottom:auto !important;
  left:auto !important;

  width:410px !important;
  max-width:calc(100vw - 32px) !important;

  height:620px !important;
  max-height:calc(100vh - 150px) !important;

  display:flex !important;
  flex-direction:column !important;

  overflow:hidden !important;

  border-radius:22px !important;
}

/* El iframe ocupa únicamente el interior del popup */
.nc-concierge-widget-frame-wrap{
  width:100% !important;
  height:auto !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:hidden !important;
}

#ncConciergeWidgetFrame{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  border:0 !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:600px){

  .nc-concierge-widget-panel{
    top:8px !important;
    right:8px !important;
    bottom:8px !important;
    left:8px !important;

    width:auto !important;
    max-width:none !important;

    height:auto !important;
    max-height:none !important;

    border-radius:18px !important;
  }

}

