@charset "UTF-8";

/* product 섹션 */
.product .mo {
  display: none;
}

.product .deliver_cost {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.product .pcost {
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 500;
  display: inline-block;
}

.product {
  background-color: #f5f5f5;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.product .wrap {
  display: flex;
  justify-content: space-between;
  gap: 8rem;
}

.product .rightbox {
  margin-right: 10rem;
}

.product .leftbox img {
  width: 100%;
  height: auto;
  max-width: 60rem;
}

.product .leftbox {
  text-align: center;
}

.product h3 {
  margin-bottom: 2rem;
}

.product .topbox {
  margin-bottom: 6rem;
}

.product .topbox p {
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 400;
  color: #555;
}

.product .btngroup {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 6rem;
}

.product .btngroup img {
  max-width: 1.6rem;
}

.product .btnbox p {
  margin-bottom: 1rem;
  font-weight: 500;
}

.product .btnbox button {
  width: 100%;
  font-size: clamp(14px, 2vw, 16px);
  background: #fff;
  border-radius: 4px;
  padding: 2rem 2rem;
  min-width: 40rem;
  font-weight: 500;
  text-align: left;
  display: flex;
  justify-content: space-between;
  border: 1px solid #f1f1f1;
}

.product .price {
  display: flex;
  gap: 8rem;
}

.product .price p {
  min-width: 10rem;
}

.product .price .close {
  display: flex;
  background: none;
  border: none;
  margin-left: auto;
  cursor: pointer;
}

.product .downbox {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product .downbox p {
  font-weight: 500;
  font-size: clamp(12px, 2vw, 14px);
}

.product .ctabtn {
  margin-top: 4rem;
  text-align: center;
  display: flex;
  justify-content: center;
  color: #fff;
  background-color: #189993;
  font-size: clamp(14px, 2vw, 16px);
  border-radius: 4px;
  padding: 2rem 2rem;
  min-width: 62rem;
  font-weight: 500;
  width: 100%;
}

.product .select-wrapper {
  position: relative;
}

.product .select-options {
  font-size: clamp(12px, 2vw, 14px);
  display: none;
  flex-direction: column;
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 0;
  background: #fff;
  max-height: 20rem;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.product .select-options li {
  padding: 1.4rem;
  cursor: pointer;
}
.product .select-options li:hover {
  background-color: #f0f0f0;
}
.product .select-wrapper.open .select-options {
  display: flex;
}
.product .price img {
  max-width: 1rem;
}

.product .pp {
  display: flex;
}

/* 문진표 */
.survey {
  padding: 14rem 0;
  background: #fff;
}

.survey .wrap {
  max-width: 80rem;
  margin: 0 auto;
}

.survey .topbox {
  padding-bottom: 6rem;
  border-bottom: 1px solid #d9d9d9;
}

.survey .downbox {
  padding-top: 10rem;
}

.survey h2 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 4rem;
}

.survey h3 {
  margin-bottom: 6rem;
}

.survey .survey-group {
  margin-bottom: 4rem;
}

.survey span {
  font-size: clamp(12px, 2vw, 14px);
}

.survey .survey-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-size: clamp(14px, 2vw, 16px);
}

.survey .survey-group span {
  font-weight: 400;
  font-size: clamp(11px, 2vw, 13px);
  color: #777;
  margin-left: 0.5rem;
}

.survey .survey-group input[type="text"],
.survey .survey-group input[type="number"] {
  width: 100%;
  padding: 1.4rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: clamp(14px, 2vw, 16px);
}

.survey .survey-group ::placeholder {
  color: #a9a9a9;
  font-size: clamp(12px, 2vw, 14px);
}

.survey .survey-flex {
  display: flex;
  gap: 1rem;
}

.survey .survey-flex .survey-group {
  flex: 1;
}

.survey .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.survey .btn-group.multi button {
  background: #f2f2f2;
}

.survey .btn-group button {
  padding: 1.2rem 2.5rem;
  background: #eee;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: clamp(12px, 2vw, 14px);
  transition: background 0.2s, color 0.2s;
}

.survey .btn-group button:hover {
  background: #ccc;
}

.survey .btn-group button.active {
  background: #333;
  color: #fff;
}

.survey .survey-group small {
  display: block;
  margin-top: 1.2rem;
  color: #999;
  font-size: clamp(12px, 2vw, 14px);
}

.survey .submit-btn {
  display: block;
  width: 100%;
  background-color: #189993;
  color: white;
  padding: 1.6rem;
  font-size: 1.6rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  margin-top: 3rem;
  cursor: pointer;
}

/* 모달 스타일 */
#loginModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.login-modal-content {
  width: 480px;
  max-width: 90%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}
.login-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

iframe.login-frame {
  border: none;
  width: 100%;
  height: 520px;
}

/* 프리뷰 박스 */
.preview-box {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 12px;
  transform: translate(-50%, -50%);
  z-index: 10000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.preview-content {
  padding: 25px;
  max-height: 100vh;
  overflow-y: auto;
  font-size: 14px;
}
.preview-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  text-align: center;
}
.preview-inner p {
  margin: 8px 0;
}
.popup-actions {
  margin-top: 20px;
  text-align: center;
}
.submit-confirm-btn {
  padding: 10px 20px;
  background: #189993;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.preview-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 40px;
  color: #888;
  cursor: pointer;
}

/* 주문서 작성 */
.deliver {
  padding: 10rem 0;
}

.deliver .wrap {
  max-width: 80rem;
}

.deliver h3 {
  font-size: 2rem;
  font-weight: 600;
  /*margin-bottom: 3rem;*/
  border-left: 4px solid #333;
  padding-left: 1rem;
}

.deliver .input-group {
  /*margin-bottom: 2rem;*/
  position: relative;
}

.deliver .input-group ::placeholder {
  font-size: clamp(12px, 2vw, 14px);
  color: #a9a9a9;
}

.deliver .input-group input {
  width: 100%;
  padding: 1.5rem;
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: clamp(12px, 2vw, 14px);
  outline: none;
}

.deliver .address-group {
  display: flex;
  gap: 1rem;
}

.deliver .address-group input {
  flex: 1;
}

.deliver .search-btn {
  padding: 1rem 2rem;
  font-size: 1.4rem;
  background: #189993;
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 400;
  transition: all 0.2s ease;
}

.deliver .search-btn:hover {
  background-color: #189993;
}

.deliver .input-row {
  display: flex;
}

.deliver .input-row input {
  flex: 1;
  padding: 1.5rem;
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: 1.5rem;
  outline: none;
}

.cart {
  background-color: #f5f5f5;
  padding: 10rem 0;
}

.cart .wrap {
  max-width: 80rem;
}

.cart .downgroup {
  display: flex;
  flex-direction: column;
}

.cart h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  border-left: 4px solid #333;
  padding-left: 1rem;
}

.cart h4 {
  border-bottom: 1px solid #d9d9d9;
}

.cart h5 {
  font-family: "pretendard";
  color: #333;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
}

.cart p {
  font-weight: 500;
}

.cart .downbox {
  display: flex;
}

.cart img {
  max-width: 100px;
}

.cart .close {
  margin-left: auto;
}

.cart .close img {
  max-width: 20px;
}

#btnPay {
  font-size: clamp(12px, 2vw, 16px);
  font-weight: 500;
  background-color: #189993;
  padding: 2rem 3rem;
  border-radius: 6px;
  color: #fff;
  width: 100%;
  margin-top: 20px;
}

/* 모달 스타일 */
#loginModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.login-modal-content {
  width: 480px;
  max-width: 90%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}
.login-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 10;
}
iframe.login-frame {
  border: none;
  width: 100%;
  height: 520px;
}

/* 로그인 버튼 디자인 */
.login-btn {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
}

.input-group {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 15px;
}

.phone-inputs {
  display: flex;
  gap: 6px;
}

.phone-inputs input {
  width: 70px;
  padding: 8px;
  text-align: center;
}

.postcode-row {
  display: flex;
  gap: 10px;
}

.search-btn {
  padding: 8px 12px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
}

.phone:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

.dash {
  font-size: 18px;
  margin: 0 2px;
}

/* ---------------- 공통 인풋 ---------------- */
.input-group {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 15px;
}

.phone-inputs {
  display: flex;
  gap: 6px;
}

.phone-inputs input {
  width: 70px;
  padding: 8px;
  text-align: center;
}

.postcode-row {
  display: flex;
  gap: 10px;
}

.search-btn {
  padding: 8px 12px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
}

.phone:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

.dash {
  font-size: 18px;
  margin: 0 2px;
}

textarea.full-addr,
textarea[name="delivery_request"] {
  min-height: 60px;
  border: 1px solid #a9a9a9;
  border-radius: 4px;
}
section.deliver h3 {
  margin-top: 40px;
}

textarea:focus {
  outline: none;
  box-shadow: none;
}

/* ---------------- 주문 요약 테이블 ---------------- */
.order-summary,
.order-items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 60px;
}
.order-summary th,
.order-summary td,
.order-items th,
.order-items td {
  padding: 12px 16px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 15px;
}
.order-summary th {
  background: #f8f8f8;
  width: 150px;
  font-weight: bold;
}
.order-items th {
  background: #f0f0f0;
  font-weight: bold;
  text-align: center;
}
.order-items td:last-child,
.order-summary td:last-child {
  text-align: right;
}

/* ---------------- 공통 제목 간격 ---------------- */
h3 {
  margin: 0px 0 40px !important;
}

/* ---------------- 쿠폰 셀렉트 ---------------- */
.coupon-select-wrap {
  margin-bottom: 40px; /* ✅ 추가된 부분 */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fdfdfd;
}
.styled-coupon-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  appearance: none;
  background-image: url("/img/icon-down-short.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

/* ---------------- 결제 수단 행 정렬 ---------------- */
.order-total.row-flex {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #ddd;
  font-size: 18px;
  gap: 20px;
}
.order-total .order-title {
  flex-shrink: 0;
  width: 120px;
  font-weight: 600;
  margin: 0;
  height: 44px;
  display: flex;
  align-items: center;
}
.payment-method-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.radio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.radio-box input[type="radio"] {
  display: none;
}
.radio-box .radio-text {
  color: #222;
  font-size: 15px;
  text-align: center;
  width: 100%;
}
.radio-box.selected {
  background: #189993;
  border-color: #189993;
}
.radio-box.selected .radio-text {
  color: #fff;
}

.required {
  margin-bottom: 4rem;
}

.order-total.row-flex h3 {
  margin-bottom: 0 !important;
}

.temporary p {
  font-size: clamp(12px, 2vw, 15px);
}

/* 결제/배송/환불 정책 */
.policy {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-width: 340px;
  max-width: 1280px;
  height: auto;
  padding: 10rem 6rem 8rem 6rem;
  display: flex;
  gap: 6rem;
  justify-content: space-between;
  background-color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 99;
  border-radius: 12px;
  visibility: hidden;
}

.policy .topbox {
  margin-bottom: 4rem;
}

.policy span {
  display: block;
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 600;
  margin-bottom: 2rem;
}

.policy p {
  font-size: clamp(12px, 2vw, 14px);
  margin-bottom: 1rem;
}

.policy .close {
  position: absolute;
  top: 3rem;
  right: 3rem;
  cursor: pointer;
}

.underline-text {
  display: inline-block;
  border-bottom: 1px solid #999;
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1;
  padding: 0;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.policy_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  display: none;
}
