.open-custom-modal{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:180px;
  height:48px;
  padding:0 24px;
  border:0;
  border-radius:999px;
  background:#67cde3;
  color:#fff;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}

.customizer-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}

.customizer-modal.is-open{
  display:block;
}

.customizer-modal__dim{
  position:absolute;
  inset:0; 
  background:rgba(0,0,0,0.45); 
}

.customizer-modal__dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(1180px, calc(100% - 40px));
  min-height:760px;
  max-height:calc(100vh - 40px);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 30px 60px rgba(0,0,0,0.22);
  padding:46px 40px 46px 46px;
  background:
    radial-gradient(circle at 50% 38%, #ffffff 0%, #f2f2f0 58%, #e7e5e1 100%);
}

.customizer-modal__dialog::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.88) 0%,
      rgba(255,255,255,0.72) 24%,
      rgba(255,255,255,0.20) 54%,
      rgba(255,255,255,0.42) 100%);
}

.customizer-modal__dialog::after{
  content:"";
  position:absolute;
  left:18%;
  right:21%;
  bottom:64px;
  height:88px;
  z-index:1;
  pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0.08) 38%, rgba(0,0,0,0) 75%);
  filter:blur(16px);
}

.customizer-modal__close{
  position:absolute;
  right:18px;
  top:14px;
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  color:#666;
  z-index:4;
}

.customizer-wrap{
  position:relative;
  z-index:2;
  min-height:668px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:36px;
  pointer-events:none;
}

.customizer-left{
  width:min(430px, 40%);
  flex:0 0 auto;
  min-width:0;
  position:relative;
  z-index:3;
  pointer-events:auto;
}

.customizer-right{
  width:276px;
  flex:0 0 276px;
  margin-left:auto;
  padding-top:80px;
  padding-bottom:10px;
  position:relative;
  z-index:3;
  pointer-events:auto;
}

.customizer-subtitle{
  margin:0 0 8px;
  font-size:14px;
  color:#777;
}

.customizer-title{
  margin:0 0 14px;
  font-size:40px;
  font-weight:700;
  color:#333;
}

.customizer-desc{ 
  font-size:16px;
  line-height:1.7;
  color:#666;
}

.customizer-viewer{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  border-radius:inherit;
  pointer-events:auto;
}

#viewer{
  display:block;
  width:100%;
  height:100%;
  background:transparent;
  --poster-color: transparent;
}

.part-group{
  background:rgba(255,255,255,0.86);
  border:1px solid rgba(255,255,255,0.55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-radius:14px;
  padding:19px 25px;
  margin-bottom:10px;
  box-shadow:0 8px 20px rgba(0,0,0,0.03);
}

.part-group__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.part-group__head strong{
  font-size:15px;
  color:#444;
}

.part-group__name{
  font-size:13px;
  color:#9a9a9a;
}

.swatches{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:space-around;
}

.swatch2{
  width:24px;
  height:24px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,0.08);
  cursor:pointer;
  padding:0;
  transition:transform .15s ease, box-shadow .15s ease;
}

.swatch2:hover{
  transform:scale(1.08);
}

.swatch2.is-active{
  box-shadow:0 0 0 3px rgba(103,205,227,.35);
}

.swatch2[data-color="white"]{ background:#f4f4f4; }
.swatch2[data-color="beige"]{ background:#e7dcc8; }
.swatch2[data-color="green"]{ background:#9fe3da; }
.swatch2[data-color="blue"]{ background:#b6dbef; }
.swatch2[data-color="pink"]{ background:#f3c5d8; }

.customizer-cart-btn{
  width:100%;
  height:52px;
  border:0;
  border-radius:999px;
  background:#67cde3;
  color:#fff;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  margin-top:6px;
}

body.modal-open{
  overflow:hidden;
}

@media (max-width: 1024px){
  .customizer-modal__dialog{
    width:calc(100% - 24px);
    min-height:auto;
    max-height:calc(100vh - 24px);
    padding:24px 20px 24px;
    overflow:auto;
  }

  .customizer-modal__dialog::before,
  .customizer-modal__dialog::after{
    display:none;
  }

  .customizer-wrap{
    min-height:auto;
    flex-direction:column;
    gap:20px;
    pointer-events:auto;
  }

  .customizer-left,
  .customizer-right{
    width:100%;
    flex:1 1 auto;
  }

  .customizer-right{
    padding-top:0;
    margin-left:0;
  }

  .customizer-viewer{
    position:relative;
    inset:auto;
    width:100%;
    height:420px;
    border-radius:18px;
    margin:8px 0 16px;
  }

  .customizer-title{
    font-size:28px;
  }

  .customizer-desc{
    font-size:14px;
  }

  .customizer-desc br{
    display:none;
  }
}

/* 버튼누를때매다 submit 되서 방지하기위한 추가CSS */
.customizer-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}