@charset "utf-8";

/* --- 바텀 시트(Bottom Sheet) 스타일 시작 --- */
.bottomSheetOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  /* 팝업 닫힐 때: opacity(0.3s)가 먼저 끝난 후 visibility: hidden이 적용되어 부드러운 애니메이션 완성 */
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.bottomSheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 80vh;
  background-color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 1001;
  transform: translateY(100%); /* 초기 상태: 화면 아래로 숨김 */
  /* 부산은행 예시와 유사한 부드러운 애니메이션 효과 */
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.4, 1);
  display: flex;
  flex-direction: column;
  /* iOS 안전 영역 하단 처리를 위해 시트 자체에 패딩 추가 */
  padding-bottom: 34px;
}

/* 활성화 상태: 오버레이 투명도 변경 및 시트 슬라이드 업 */
.bottomSheetOverlay.active {
  opacity: 1;
  visibility: visible;
  /* 팝업 열릴 때: visibility 지연 없이 바로 적용 */
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.bottomSheetOverlay.active .bottomSheet {
  transform: translateY(0);
}

.layer_header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: relative;
}

.layer_title {
  font-size: 1.125rem;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

/* 콤보 리스트 스타일 */
.combo_list {
}
.combo_list li {
  border-bottom: 1px solid #f3f4f6;
}
.combo_list li:last-child {
  border-bottom: none;
}
.combo_list button {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem;
  text-align: left;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.combo_list button[aria-pressed="true"] {
  background-color: #f4f4f4;
  color: #da3131;
}
.combo_list button .nick {
  font-weight: 700;
}
.combo_list button .code {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* 메인 공지사항 팝업 */
.evt {
  display: block;
}

.evt img {
  width: 100%;
}

.btn_layer_wrap04 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #eee;
}

.btn_layer_wrap04 [class^="inp_check"] {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  min-height: 24px;
  padding: 0 0 0 24px;
}

.btn_layer_wrap04 [class^="inp_check"] > input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  opacity: 0;
  z-index: 1;
}

.btn_layer_wrap04 [class^="inp_check"] [class^="label_txt"] {
  display: inline-block;
  box-sizing: border-box;
  vertical-align: top;
}

.btn_layer_wrap04 [class^="inp_check"] [class^="label_txt"]:before {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff url(../_img/ico_checkbox.png) no-repeat 0 0 / 24px auto;
  transition: border 0.3s ease, background 0.2s ease;
}

.btn_layer_wrap04 [class^="inp_check"] [class^="label_txt"] > em {
  display: block;
  padding: 0 0 0 8px;
  color: #111;
}

.btn_layer_wrap04 [class^="inp_check"] [class^="label_txt"]:after {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 0;
  height: 24px;
  border-radius: 6px;
  background: url(../_img/ico_checkbox_on.png) no-repeat 0 0 / 24px auto;
  transition: width 0.3s ease;
  transition-delay: 0.1s;
}
.btn_layer_wrap04 .sheet-close-button {
  position: relative;
  top: 0;
  right: 0;
  transform: none;
}

.evt_pop_box p {
  padding: 24px;
}

/* --- 바텀 시트(Bottom Sheet) 스타일 종료 --- */

/* ---  FULL RIGHT POP-UP 스타일 --- */

/* OVERLAY (Background) */
.fullPopupOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* FULL POPUP CONTAINER */
.fullPopup {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background-color: #fff;
  border-radius: 0;
  z-index: 1001;
  /* 오른쪽 화면 밖에서 시작 (오른쪽에서 왼쪽으로 슬라이드) */
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.4, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  overflow: hidden;
}

/* ACTIVATION */
.fullPopupOverlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.fullPopupOverlay.active .fullPopup {
  transform: translateX(0);
}

/* LAYER BOX (FLEX CONTAINER FOR HEADER/CONTENT) */

/* HEADER - 상단 노치/안전 영역에 대응하도록 패딩 추가 */
.fullPopup .layer_header {
  /*padding: calc(1rem + var(--safe-area-top)) 1.5rem 1rem;*/
  padding: 1rem 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: relative;
  flex-shrink: 0;
}

.fullPopup .layer_title {
  font-size: 1.125rem;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
  margin: 0;
}

/* SCROLLABLE CONTAINER */
.fullPopup .layer_container {
  padding: 0 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
  /* 하단 버튼 영역과 안전 영역을 고려한 패딩 */
  padding-bottom: calc(4.5rem + 34px);
}
.fullPopup .layer_contents {
  padding: 1rem 0;
}

/* 하단 고정 동의 버튼 */
.fullPopup .btn_layer_wrap {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  flex-shrink: 0;
}
.fullPopup .btn_layer_wrap .btn_primary {
  width: 100%;
  cursor: pointer;
}

/* ---  FULL RIGHT POP-UP 스타일 종료 --- */

/* ---  공통 스타일 --- */

.layer_box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* CLOSE BUTTON (X 아이콘) */
.sheet-close-button {
  width: 24px;
  height: 24px;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: url(../_img/ico_layer_close.png) no-repeat center;
  background-size: cover;
}

/* 불필요한 요소 숨김 처리 */
.layer_close,
.btn_layer_expanded {
  display: none !important;
}

/* ---  공통 스타일 종료 --- */

/* 모든 페이지 검색영역 하단 리스트 */
.layer_search_box .inp_bundle_search {
  width: 100%;
}
.layer_search_box.fixed .inner {
  /*position: fixed;*/
  left: 0;
  right: 0;
  top: 44px;
  padding: 24px;
  background-color: #fff;
  z-index: 50;
}
.layer_search_wrap .list_view_box {
  /*margin-top: 70px;*/
}
.layer_search_wrap .list_view_box .list_box {
  display: block;
  padding: 6px 0;
}
.color_red {
  color: #fe6d64 !important;
}

/* --- 3. 알림 팝업 스타일 --- */
.alertPopupOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.alertPopupOverlay.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.alertPopup {
  width: 100%;
  max-width: 300px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.alertPopupOverlay.show .alertPopup {
  transform: scale(1);
  opacity: 1;
}

.alertPopup .btn_layer_wrap {
  padding: 0;
  border-top: 1px solid #eee;
}
.alertPopup .btn_col {
  justify-content: center;
}
.alertPopup .confirmButton {
  width: 100%;
  background-color: transparent;
  border-radius: 0 0 12px 12px;
  padding: 12px;
  box-shadow: none;
}

.alertPopup .confirmButton span {
  color: #4f46e5;
  font-weight: 700;
}
.alertPopup .confirmButton:hover {
  background-color: #f0f0f0;
}
/* 알림 팝업 컨텐츠 패딩 조정 */
.alertPopup .layer_container {
  padding: 32px 24px;
  text-align: center;
  flex-grow: 0;
}

/* 메뉴 풀팝업 */
.mainMenu .sheet-close-button {
  background-image: url(../_img/ico_layer_close_w.png);
}

/* ----------------------------------------------------------- */
/* 공통 팝업 오버레이 스타일 (카멜케이스 적용) */
/* ----------------------------------------------------------- */
.popupOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s 0.2s;
}

.popupOverlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s 0s;
}

/* Alert 팝업 스타일 */
.alertPopup {
  width: 90%;
  max-width: 300px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  /* 애니메이션 */
  transform: scale(0.9);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.popupOverlay.active .alertPopup {
  transform: scale(1);
}

/* 팝업 내부 구조 */
.popupBox {
  display: flex;
  flex-direction: column;
}

/* 팝업 헤더 */
.popupHeader {
  padding: 16px 20px 0;
  text-align: center;
}
.popupTitle {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

/* 팝업 내용 */
.popupContent {
  padding: 10px 20px 20px;
  text-align: center;
}
.popupMessage {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
}

/* 팝업 버튼 영역 */
.popupActionsWrap {
  display: flex;
  border-top: 1px solid #eee;
}
.popupActionButton {
  flex: 1;
  padding: 14px 10px;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  transition: background-color 0.1s;
}
.popupActionButton:not(:last-child) {
  border-right: 1px solid #eee;
}
.popupActionButton.primary {
  color: #2c64b4;
  font-weight: 700;
}
.popupActionButton:active {
  background-color: #f0f0f0;
}

/* 옵션 바텀시트 */
.option .bottomSheet {
  padding-bottom: 0;
}

/* ---------------- 옵션선택 팝업 --------------- */

/* 5. 텍스트 및 옵션 섹션 */
.option .info-section {
  display: flex;
  flex-direction: column;
}

.option .product-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #1f2937;
}
.option .product-category {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0 4px;
  border: 1px solid #dc2626;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: 0.05em;
}
.option .product-description {
  font-size: 0.875rem;
  color: #4b5563;
  padding-top: 8px;
  line-height: 1.6;
}
.option .option-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 24px;
}

.option .option-group + .option-group {
  padding-top: 14px;
  border-top: 1px solid #ececec;
}
.option .option-title {
  font-size: 1.125rem;
  font-weight: 700;
}

/* 6. 온도 선택 버튼 */
.option .temp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.option .temp-btn {
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  transition: all 200ms ease-in-out;
  border: none;
}
.option .temp-hot {
  color: #4b5563;
  background-color: #f3f4f6;
}
.option .temp-selected {
  background-color: #015bab;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* 7. 일반 선택 버튼 (사이즈, 컵, 시럽) */
.option .size-cup-syrup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem; /* gap-3 */
}
.option .select-btn {
  padding: 0.75rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 200ms ease-in-out;
  background-color: #fff;
  color: #1f2937;
  white-space: nowrap;
}
.option .select-btn.selected {
  border-color: #015bab;
  color: #333;
}

/* 8. 고정 푸터/주문 바 */
.option .footer-content {
  display: flex;
  flex-direction: column;
  position: relative;
  bottom: -1px;
  margin: 0 auto;
  padding: 0;
  height: auto;
  border-bottom: 1px solid #ddd;
}

/* 5-1. 상단 줄: 수량 및 단가 */
.option .quantity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px;
}

.option .quantity-control {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  gap: 16px;
}

/* 갯수 카운트/가격 */
.option input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.option input[type="number"]::-webkit-inner-spin-button,
.option input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.option .number-input {
  display: inline-flex;
  align-items: center;
}

.option .number-input,
.option .number-input * {
  box-sizing: border-box;
}

.option .number-input button {
  -webkit-appearance: none;
  background-color: transparent;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  margin: 0;
  position: relative;
  border: 1px solid #c9c9c9;
  border-radius: 50%;
}

.option .number-input button:before,
.option .number-input button:after {
  display: inline-block;
  position: absolute;
  content: "";
  width: 0.7rem;
  height: 2px;
  background-color: #848383;
  transform: translate(-50%, -50%);
}
.option .number-input button.plus:after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.option .number-input input[type="number"] {
  font-family: sans-serif;
  max-width: 4rem;
  margin-top: 0;
  padding: 0.5rem;
  height: 3rem;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.option .item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

/* 5-2. 하단 줄: 장바구니/가격/주문 버튼 */
.option .action-row {
  display: flex;
  width: 100%;
}

.option .footer-icons {
  display: flex;
  border: 1px solid #d1d5db;
  overflow: hidden;
}
.option .icon-btn {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: default;
  padding: 0;
  background-color: #fff;
  border: none;
}

/* .order-bar CSS 수정: 가격 영역 제거로 배경색 제거 및 정렬 조정 */
.option .order-bar {
  flex-grow: 1;
  display: flex;
  align-items: stretch;
  height: 64px;
  background-color: transparent;
  color: #fff;
}

.option .order-button02 {
  flex-grow: 1;
  height: 100%;
  background-color: #015bab;
  border: 1px solid #015bab;
  border-radius: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  cursor: default;
}

.option .option-group .inline-radio {
  background-color: transparent;
  border-radius: 0;
}

.option .option-group .inline-radio input {
  height: 48px;
}

.option .option-group .inline-radio label {
  background-color: #efefef;
  font-size: 0.9rem;
  color: #a3a3a3;
}

.option .option-group .inline-radio input:checked + label {
  background: #635aef;
  font-weight: 500;
  color: #fff;
}

/* ------------------------------------------- */
/* 1. 탑 시트 오버레이 스타일 (Top Sheet Overlay) */
/* ------------------------------------------- */
.topSheetOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 상단에서 시작하도록 정렬 변경 */
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.topSheetOverlay.active {
  opacity: 1;
  visibility: visible;
}

/* ------------------------------------------- */
/* 2. 탑 시트 본체 스타일 (Top Sheet Body) */
/* ------------------------------------------- */
.topSheet {
  background-color: white;
  width: 100%;
  max-width: 480px;
  /* 하단 모서리만 둥글게 처리 */
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;

  /* 초기 위치: 화면 상단 위로 숨김 */
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); /* 그림자 방향 변경 */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.topSheetOverlay.active .topSheet {
  transform: translateY(0); /* 활성화 시 제자리로 이동 */
}

/* 안전 영역 패딩 적용 (상단 노치 디자인 대응) */
.topSheet .layer_box {
  padding-top: var(--safe-area-top);
}

.topSheet .layer_contents {
  padding: 24px 0;
}
