/* =============================================================
  이탈팝업 스타일 
  --------------------------------------------------------------
  관련 파일 : html/popup-intercept.php
  작성자    : jh.roh
  작성일    : 2026-03-17
  수정일    :
============================================================= */

body.modal-open {
  overflow: hidden;
}

[class*=exit_popup] {
  position: fixed;
  inset: 0;
  z-index: 9999;

  & .popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
  }
  & .popup-content {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: 400px;
    min-height: 478px;
    width: 100%;
    padding: 34px;
    border-radius: 12px;
    background-size: cover;
    background-position: top;   
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
  }
  & .popup-actions {
    margin: auto 0 0;
    display: flex;
    gap : 8px;
    justify-content: space-between;
  }
  & .btn {
    --gap: 4px;
    height: 56px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    border: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap);
  } 
  & a.btn {
    text-indent : 4px;
    background-color : var(--btn_a_bg, #fff);
    color : var(--btn_a_color, #000);
    &::after {
      width: 24px;
      height: 24px;
      background-color : var(--btn_a_color, #fff);
      mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_2414_8076' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='20' height='20'%3E%3Crect width='19.2' height='19.2' fill='%23D9D9D9'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_2414_8076)'%3E%3Cpath d='M10.08 9.6L6.39999 5.92L7.51999 4.8L12.32 9.6L7.51999 14.4L6.39999 13.28L10.08 9.6Z' fill='black'/%3E%3C/g%3E%3C/svg%3E%0A");
      mask-size: 100% auto;
      display: inline-block;
      content: '';
    }
  }
  & .btn_action {
    width : 100%;
  }
  & .btn_close {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 20px;
    height: 20px;
    text-indent: -999rem;
    border: 0;
    background-color: var(--btn_a_bg, #fff);
    mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_2414_9241' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='24' height='24'%3E%3Crect width='24' height='24' fill='%23D9D9D9'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_2414_9241)'%3E%3Cpath d='M16.9997 3.00011L2.99986 17.0001' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.00006 3.00011L16.9999 17.0001' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E%0A");
    mask-size: 100% auto;
    mask-repeat: no-repeat;
  }
} /* END .exit_popup */

.exit_popup_intercept {
  & .btn_stay {
    min-width: 143px;
    width: 57.66%;
  }
  & .btn_leave {
    min-width: 97px;
    width: 38.70%;
    background-color: var(--btn_leave_bg, #444);
    color : var(--btn_leave_color, #fff);
  }
} 

@media screen and (max-width: 960px) {
  [class*=exit_popup] {
    & .popup-content {
      max-width: 320px;
      min-height: 448px;
      width: 100%;
      padding: 36px;
    }
    & .btn {
      --gap: 3px;
      height: 48px;
      font-size: 14px;
    }
    & a.btn::after {
      width: 19px;
      height: 19px;
    }
  }
} /* END ~ 960 */

/* 기본 (프로모션) */
._defalut {

  /* btn_stay, btn_action */
  --btn_a_bg : #fff;
  --btn_a_color : #000;

  /* btn_leave */
  --btn_leave_bg : #444;
  --btn_leave_color : #fff;
}

/* 커스텀 (견적) */
._estimate {
  /* btn_stay, btn_action */
  --btn_a_bg : #000;
  --btn_a_color : #fff;

  /* btn_leave */
  --btn_leave_bg : #fff;
  --btn_leave_color : #000;
}


/* 무료 견적 스타일 */
/* .intercept_popup._estimate .btn {
  &.leave {background : #000; color :#fff;}
  &.stay {background : #fff; color: #000;}
} */