/* =========================
   Contact Widget
========================= */
#qu-floating-contact.qu-fc-wrapper{
  position: fixed;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: inherit;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Panel */
.qu-fc-panel{
  width: 300px;
  max-width: min(92vw, 420px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);

  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

#qu-floating-contact.qu-fc-open .qu-fc-panel{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.qu-fc-header{
  background: #000;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qu-fc-title{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.qu-fc-close{
  width: 44px;
  height: auto;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.qu-fc-close svg{ width: 22px; height: 22px; }

.qu-fc-body{
  padding: 14px 16px 16px;
}

/* FAB */
.qu-fc-toggle{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.qu-fc-fab-icon{ width:22px; height:22px; display:flex; align-items:center; justify-content:center; }
.qu-fc-fab-icon svg{ width:22px; height:22px; }

.qu-fc-icon-close{ display:none; }
#qu-floating-contact.qu-fc-open .qu-fc-icon-bubble{ display:none; }
#qu-floating-contact.qu-fc-open .qu-fc-icon-close{ display:flex; }

/* panel 모드: PC에서는 아이콘 숨김 */
#qu-floating-contact[data-mode="panel"] .qu-fc-toggle{
  display:none;
}

/* =========================
   Phone Widget (Separated)
========================= */
#qu-floating-phone.qu-fc-phone-widget{
  position: fixed;
  z-index: 99998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: none; /* 모바일에서만 + 필요 조건에서만 */
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
#qu-floating-phone svg{ width:22px; height:22px; }

/* =========================
   Mobile
========================= */
@media (max-width: 768px){
  /* panel 모드도 모바일에서는 아이콘 표시 */
  #qu-floating-contact[data-mode="panel"] .qu-fc-toggle{
    display:flex;
  }

  .qu-fc-panel{
    width: min(92vw, 420px);
    max-height: min(78vh, 640px);
  }

  .qu-fc-body{
    overflow: auto;
    max-height: calc(min(78vh, 640px) - 62px);
    -webkit-overflow-scrolling: touch;
  }
}

/* 폼 튐 방지 */
#qu-floating-contact .wpcf7,
#qu-floating-contact form{ max-width:100%; }
#qu-floating-contact input,
#qu-floating-contact textarea,
#qu-floating-contact select{
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width:768px){
  #qu-floating-contact.qu-fc-wrapper {z-index: 99999;}
  #qu-floating-contact.qu-fc-wrapper.qu-fc-open {z-index: 99999;}
  #qu-floating-contact.qu-fc-wrapper .qu-fc-panel { 
      width: 0;
      height: 0;
   }
  #qu-floating-contact.qu-fc-wrapper.qu-fc-open .qu-fc-panel { 
    width: min(92vw, 420px);
    max-height: min(78vh, 640px);
    height: auto;
   }
  #qu-floating-contact{ right: var(--qu-fc-m-right,16px) !important; bottom: var(--qu-fc-m-bottom,16px) !important; }
  #qu-floating-phone{ right: var(--qu-phone-m-right,16px); bottom: var(--qu-phone-m-bottom,90px); }
}

.quform-form-2 .quform-element-submit {
    margin: 0;
}
.pravacy-check .quform-spacer {
    padding: 0;
    margin: 0;
}
#qu-floating-contact .qu-fc-body {
    background-color: #000;
}

#qu-floating-contact .quform-2 .quform-button-submit button {
    background-color: #fff;
}

#qu-floating-contact .quform-button-style-classic button {
    color: #000;
}
.pravacy-check label {
    color: #fff;
}

