/* common */
* {
  box-sizing: border-box;
}
button {
  appearance: none;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

/* 로그인 */
.zero-login-wrap {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: #1d2984;
  display: flex;
  align-items: center;
  .btn-go-back {
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 20px;
    left: 15px;
  }

  .zero-login-form {
    padding: 40px;
    text-align: center;
    width: 100%;
    > div {
      display: flex;
      width: 100%;
      flex-direction: column;
      gap: 14px;
      input[type="text"],
      input[type="password"],
      input[type="tel"] {
        width: 100%;
        border-radius: 6px;
        height: 35px;
        font-size: 15px;
        padding: 0 20px;
        box-sizing: border-box;
      }
      .btn-login {
        appearance: none;
        height: 42px;
        border-radius: 6px;
        background-color: #b4e5a2;
        color: #1d2984;
        font-size: 18px;
        border: 0;
        font-weight: bold;
      }
    }
    .zero-login-logo {
      width: 140px;
      margin: 0 auto;
    }
    .user-icon {
      width: 40px;
      margin: 20px auto;
    }
  }
  .login-link {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
    display: flex;
    justify-content: center;
    color: #fff;
    gap: 5px;
    a {
      color: #fff;
    }
  }
}

.zero-layer-pop {
  display: none;
  z-index: 400;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  .layer-con {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 90%;
    top: 50%;
    left: 50%;
  }

  &.type-normal {
    .layer-con-wrap {
      overflow: hidden;
      background-color: #fff;
      border-radius: 14px;
      animation: showSweetAlert 0.3s;
      will-change: transform;
      padding: 10px;
    }
  }
}

.zero-alert-wrap {
  overflow: hidden;
  background-color: #fff;
  border-radius: 14px;
  animation: showSweetAlert 0.3s;
  will-change: transform;
  .btn-close {
    border: 0;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 22px;
    height: 22px;
    appearance: none;
    background: url(/app/zeromart/img/alert-close.png) no-repeat top
      left/contain;
  }
  > .inner {
    padding: 20px;
    font-size: 14px;
    color: #000;
  }
  > .btn-footer {
    display: flex;
    > button {
      flex: 1;
      height: 26px;
      font-size: 14px;
      appearance: none;
      border: 0;
      background-color: #d9d9d9;
      &.type-blue {
        color: #fff;
        background-color: #4e95d9;
      }
    }
  }
}

.zero-pop-wrap {
  overflow: hidden;
  background-color: #fff;
  border-radius: 14px;
  animation: showSweetAlert 0.3s;
  will-change: transform;
  > .inner {
    padding: 20px;
    font-size: 14px;
    color: #000;
  }
}

/* 회원가입 */
.zero-join {
  padding: 40px 30px;
  .join-logo {
    width: 120px;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
  }

  .agree-list {
    margin-top: 30px;
    li {
      display: flex;
      justify-content: space-between;
      & + li {
        margin-top: 10px;
      }
    }
    label {
      display: flex;
      align-items: center;
      gap: 10px;
      position: relative;
      input {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        margin: 0;
        width: 16px;
        height: 16px;
      }
      .lbl {
        display: flex;
        font-size: 15px;
        color: #767676;
        align-items: center;
        gap: 8px;
        &::before {
          content: "";
          display: inline-block;
          width: 21px;
          height: 21px;
          background: url(/app/zeromart/img/check-join.png) no-repeat 0 0 /
            contain;
        }
      }
      input:checked + .lbl:before {
        background-image: url(/app/zeromart/img/check-join2.png);
      }
    }
    button {
      color: #fff;
      border: 0;
      background-color: #4b93d8;
      font-size: 13px;
      padding: 0 10px;
      border-radius: 4px;
      height: 20px;
    }
  }

  .join-radio-wrap {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    button {
      border: 0;
      flex-shrink: 0;
      position: relative;
      width: 44%;
      aspect-ratio: 1 / 1;
      background-color: transparent;
      margin: 0;
      padding: 0;
      border-radius: 10px;
      background-position: top 10px center;
      background-size: auto 60%;
      background-repeat: no-repeat;
      .lbl {
        display: block;
        width: 100%;
        height: 100%;
        color: #000;
        padding: 10px;
        font-size: 17px;
        text-align: center;
        padding-top: 78%;
      }
      &.type1 {
        background-position: top 10px left 60%;
        background-image: url(/app/zeromart/img/radio-join1.png);
        background-color: #a5cbed;
      }
      &.type2 {
        background-color: #d9d9d9;
        background-image: url(/app/zeromart/img/radio-join2.png);
      }
    }
  }
  .txt {
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
    color: #354092;
  }
}

.join-step {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  li {
    flex-shrink: 0;
    &.line {
      flex: 1;
      height: 1px;
      border-top: 1px dashed #538c3f;
      align-self: center;
    }
  }

  strong {
    display: block;
    color: #8c8c8c;
    line-height: 1.2;
    font-size: 13px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    font-weight: normal;
    display: flex;
    align-items: center;
    background-color: #d9d9d9;
    justify-content: center;
    &.on {
      color: #fff;
      background-color: #46b1e1;
      &.type2 {
        background-color: #1c2689;
      }
    }
  }

  &.type-employee {
    strong {
      &.on {
        background-color: #595959;
        &.type2 {
          background-color: #1c2689;
        }
      }
    }
  }
}

.verification-wrap {
  padding: 0 10px 80px;

  .zero-join-banner {
    margin-bottom: 20px;
    img {
      border-radius: 8px;
      width: 100%;
    }
  }

  .gray-box {
    position: relative;
    gap: 10px;
    padding: 13px 10px;
    background-color: #f3f3f2;
    border-radius: 5px;
    display: flex;
    margin-top: 10px;
    align-items: flex-start;
    > ul {
      flex: 1;
      font-size: 14px;
      color: #000;
      li {
        line-height: 1.2;
        & + li {
          margin-top: 5px;
        }
      }
      li.member {
        img {
          width: 65px;
          border-radius: 5px;
          margin-right: 3px;
        }
        font-size: 13px;
        color: #354092;
        &.type2 {
          img {
            width: 50px;
          }
        }
      }
    }
    > img {
      width: 35px;
      flex-shrink: 0;
    }
    &.type2 {
      > img {
        width: 25px;
      }
    }
  }

  .txt {
    font-size: 14px;
    margin-top: 10px;
    color: #354092;
    line-height: 1.4;
  }

  .btn-list {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    > img {
      flex-shrink: 0;
      width: 95px;
      border-radius: 5px;
    }
    button {
      flex: 1;
    }
  }

  .phone-number {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    input {
      flex: 1;
      border-radius: 5px;
      background-color: #d9d9d9;
      padding: 0 10px;
      font-size: 14px;
      border: 0;
      height: 32px;
    }
    button {
      flex-shrink: 0;
    }
  }

  .search-company {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    input {
      width: 100%;
      border-radius: 5px;
      background-color: #d9d9d9;
      padding: 0 10px;
      font-size: 14px;
      border: 0;
      height: 32px;
      & + input {
        margin-top: 10px;
      }
    }
    button {
      flex-shrink: 0;
      width: 100px;
      height: 74px;
    }
    > div {
      flex: 1;
    }
  }
}

.verification-foot {
  background-color: #fff;
  position: fixed;
  z-index: 100;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  gap: 6px;
  padding: 14px 10px 16px;
  button {
    flex-shrink: 0;
    width: 70px;
  }
  .join-bar {
    flex: 1;
    height: 40px;
    background-color: #bfbfbf;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    > i {
      display: block;
      height: 100%;
      background-color: #1d2984;
    }
    > span {
      text-align: center;
      line-height: 40px;
      position: absolute;
      top: 0;
      left: 0;
      font-size: 18px;
      text-align: center;
      width: 100%;
      color: #fff;
    }
  }
  &.no-fixed {
    position: static;
  }
}

button.btn-zero-normal {
  color: #fff;
  border: 0;
  background-color: #a6a6a6;
  border-radius: 5px;
  padding: 0 10px;
  height: 32px;
  font-size: 14px;
  &.type-sky {
    background-color: #46b1e1;
  }
  &.type-gray {
    background-color: #bfbfbf;
  }
  &.type-black {
    background-color: #000;
  }
  &.btn-large {
    height: 40px;
    font-size: 18px;
  }
  &.btn-small {
    height: 26px;
    font-size: 14px;
  }
  &.btn-mid {
    height: 34px;
    font-size: 16px;
  }
}

.z-title-wrap {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .tit {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
  }
  label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    input {
      width: 14px;
      height: 14px;
      margin: 0;
    }
    .lbl {
      font-size: 14px;
      color: #000;
    }
  }
  .txt2 {
    flex-shrink: 0;
    font-size: 14px;
  }
}

.zero-form-box {
  margin-top: 10px;
  dl {
    display: flex;
    align-items: center;
    dt {
      width: 80px;
      flex-shrink: 0;
      font-size: 15px;
      color: #000;
    }
    dd {
      flex: 1;
    }
    & + dl {
      margin-top: 8px;
    }
  }

  .input-normal {
    width: 100%;
    font-size: 14px !important;
    height: 30px !important;
  }

  .input-group-search {
    display: flex;
    gap: 10px;
    button {
      flex-shrink: 0;
    }
  }
}

.zero-form-btns {
  margin-top: 10px;
}

.join-complete {
  display: block;
  margin-top: 10px;
  img {
    border-radius: 15px;
  }
}

.join-gray-box {
  margin: 10px;
  border-radius: 5px;
  font-size: 15px;
  text-align: center;
  color: #000;
  line-height: 1.4;
  padding: 10px;
  background-color: #e2e2e2;
}

header .header_new .notice_wrap .newsIconWrap {
  padding: 0;
  margin: 7px 7px 0 0;
}

.join-zero-wrap {
  .main-zero-containner {
    padding-top: 0;
  }
}

.payment-agree-doc {
  .title {
    font-size: 15px;
    color: #000;
  }
  .scroll-wrap {
    max-height: 70vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
    p {
      line-height: 1.4;
    }
  }
  .btn-footer {
    display: flex;
    margin-top: 15px;
    button {
      flex: 1;
    }
  }
}

.payment-agree-doc-wrap {
}


.partner-list {
  padding-bottom:50px;
  > li {
    border-top:6px solid #e2e2e2;
  }
  .btns {
    display:flex;
    padding:5px 0px;
    align-items: center;
    .btn-left {
      flex:1;
      min-width:0;
      display:flex;
      align-items: center;
    }
    .btn-right {
      min-width:0;
      flex-shrink: 0;
      display:flex;
      align-items: center;
      gap:10px;
      button img {
        width:22px;
      }
      .btn-event {
        >  img {
          width:36px;
        }
      }
    }
    .p-name {
      font-size:15px; 
      color:#000;
      font-weight: normal;
    }
    .p-total {
      margin-left:20px;
      display:inline-flex;
      align-items: center;
      font-size:14px; 
      color:#3b679b;
      letter-spacing: -0.03em;
      &::before {
        content:'';
        display:inline-block;
        width:20px;
        height:20px;
        margin-right:5px;
        background: url(/app/zeromart/img/icon-product.png) no-repeat center center/contain;
      }
    }
    button {
      margin:0;
      border:0;
      padding:0;
      appearance: none;
      background-color: transparent;
    }
    
  }
}


.business-info-pop {
  .title {
    font-size:18px;
    color:#000;
    font-weight:bold;
    text-align:center;
    margin-bottom:20px;
  }
  .bs-info {
    li {
      font-size:15px; 
      line-height:1.4;
      & + li {
        margin-top:4px;
      }
    }
  }
}

/* ###############################################
# 로딩 오버레이 CSS (검증/등록 중 화면 비활성화)
################################################ */
#loadingOverlay{
	display:none;
	position:fixed;
	left:0; top:0;
	width:100%; height:100%;
	background:rgba(0,0,0,0.45);
	z-index:99999;
	align-items:center;
	justify-content:center;
	flex-direction:column;
	backdrop-filter:saturate(140%) blur(2px);
}
#loadingOverlay .loader{
	border:6px solid rgba(255,255,255,0.3);
	border-top:6px solid #5E95D3;
	border-radius:50%;
	width:56px; height:56px;
	animation:spin 0.9s linear infinite;
	box-shadow:0 0 0 1px rgba(0,0,0,0.05) inset;
}
#loadingOverlay .loader-text{
	color:#fff;
	font-size:14px;
	margin-top:10px;
	letter-spacing:0.5px;
}
@keyframes spin{
	0%{transform:rotate(0deg);}
	100%{transform:rotate(360deg);}
}


/* 색상 헬퍼 */
.fc-blue{ color:#215D99; }
.fc-red{ color:#e74c3c; }

/* ✅ SweetAlert2 팝업 전체 글씨 크기 확대 */
/* .swal2-popup {
	font-size: 1.4rem; 
	padding: 2em 2.5em; 
}

.swal2-title {
	font-size: 2rem !important; 
	font-weight: bold;
}

.swal2-html-container {
	font-size: 1.5rem !important; 
	line-height: 1.6;
} */

/* ✅ 버튼 크기 & 글자 크게 */
/* .swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel,
.swal2-styled.swal2-deny {
	font-size: 1.4rem !important;
	padding: 12px 28px !important; 
	min-width: 120px; 
	border-radius: 6px;
} */

.gray-box .owner-icon {
  position: absolute;
  right: 8px;
  top: 8px;
}

.gray-box .edit-icon {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.check-partner-wrap {
  margin:0 10px 10px;
  .check-partner {
    padding:0 6px;
    height:28px;
    display:flex;
    align-items:center;
    border-radius:4px;
    color:#fff;
    font-size:13px;
    background-color: #1A2A84;
    flex-direction: row-reverse;
    >span {
      flex:1px;
    }
    input {
      border:0;
      width:16px;
      height:16px;
    }
  }
}