@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2")
    format("woff2");
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2")
    format("woff2");
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2")
    format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2")
    format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2")
    format("woff2");
  font-weight: 900;
  font-display: swap;
}

body {
  font-family: "NanumSquareNeoBold";
}

@media screen and (min-width: 992px) {
  .pc_nav_inner_wrapper {
    padding-left: 20px;
  }

  .pc_nav_wrapper {
    box-shadow: none;
    padding: 18px 0;
    /* background: white; */
  }

  .pc_nav_left_wrapper {
    gap: 48px;
    width: auto;
  }

  .pc_nav_right_wrapper {
    width: auto;
  }

  .navicredit {
    width: auto;
    display: flex;
    gap: 4px;
    height: 36px;
    border: 1px solid #d9d9d9;
    border-radius: 99px;
    align-items: center;
    padding-left: 8px;
    padding-right: 8px;
    cursor: pointer;
  }

  .navicredit.select {
    border: 1px solid #b0d7dd;
    box-shadow: 0px 2px 6px 0px #0000001f;
  }

  .navicredit:hover {
    border: 1px solid #d9d9d9;
    background: #f5f5f5;
    box-shadow: 0px 2px 6px 0px #0000001f;
  }

  .navicrediticon {
    width: 20px;
  }

  .naviusercredit {
    font-size: 13px;
    font-family: "NanumSquareNeoExtraBold";
    color: #141415;
  }

  .pc_nav_link_list {
    gap: 44px;
    margin-left: 0px;
  }

  .pc_nav_link_items {
    min-width: fit-content;
    font-size: 15px;
  }

  .pc_nav_link_items:hover {
    color: #00a0b6;
  }

  .pc_nav_search {
    width: 295px;
    height: 36px;
  }

  .searchcont {
    border: 1px solid #d9d9d9;
    border-radius: 99px;
    overflow: visible;
    height: 100%;
    width: 100%;
    transition: border-color 0.2s;
    background: #fff;
  }

  .searchcont:focus-within {
    border-color: #00a0b6;
  }

  .selectsearch {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: fit-content;
    height: 20px;
    border-right: 1px solid #d9d9d9;
    padding-right: 4px;
  }

  .headersearch-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: "NanumSquareNeoBold";
    color: #57585a;
    white-space: nowrap;
  }

  .headersearch-btn svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .headersearch-btn.open svg {
    transform: rotate(180deg);
  }

  .headersearch-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0px;
    background: #fff;
    border-radius: 4px;
    list-style: none;
    margin: 0;
    padding: 8px;
    width: 92px;
    z-index: 9999;
    border: 1px solid #d9d9d9;
    box-shadow: 3px 5px 4px 0px #0000000f;
  }

  .headersearch-dropdown.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .hs-option {
    padding: 4px;
    font-size: 13px;
    font-family: "NanumSquareNeoBold";
    color: #57585a;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
  }

  .hs-option:hover {
    background: #f1f8f9;
  }

  .hs-option.selected {
    background: #f1f8f9;
    border: none;
  }

  .subsearchcont {
    padding-right: 14px;
  }

  .pc_search_input {
    border: none;
    padding-right: 20px;
    padding-left: 8px;
    font-size: 13px;
    font-family: "NanumSquareNeoBold";
  }

  .pc_submit_button {
    right: 14px;
  }

  .sellerrequstbtn,
  .sellerrequstbtn2,
  .loginbtn1 {
    cursor: pointer;
    height: 30px;
    align-items: center;
    justify-content: center;
    display: flex;
    border-radius: 8px;
    background-position-y: 6px;
  }

  .loginbtn {
    height: 36px;
    border-radius: 8px;
  }

  .rightheader {
    gap: 4px;
  }

  .pc_mypage_link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mainaction {
    width: 100%;
    max-width: 1280px;
    margin: auto;
    margin-top: 48px;
  }

  .mainbtnarea {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 20px;
    height: 112px;
  }
  .mainbtnarea .mainbtnitem {
    flex: 1;
    min-width: 0;
    min-height: 1px;
    display: flex;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    max-width: 406px;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.25s ease;
  }
  .mainbtnarea .mainbtnitem:not(.noboard):hover {
    box-shadow:
      1px 2px 6px 0px #1c1f280a,
      0px 3px 8px 0px #1c1f281a;
  }
  .mainbtnarea .mainbtnitem .mainbtnimg img {
    transition: transform 0.25s ease;
  }
  .mainbtnarea .mainbtnitem:not(.noboard):hover .mainbtnimg img {
    transform: scale(1.1);
  }
  .mainbtnarea .mainbtnitem.noboard {
    cursor: default;
  }

  .maibbtnartcreate {
    margin-left: 20px;
  }

  .mainbtntext {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .btntext {
    font-size: 14px;
    font-family: "NanumSquareNeoExtraBold";
  }

  .btntext_title {
    font-size: 18px;
    font-family: "NanumSquareNeoBold";
    color: #141415;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .main-omav-list {
    width: 100%;
    max-width: 1280px;
    margin: auto;
    overflow: hidden;
    margin-top: 64px;
  }

  .main-title {
    font-size: 22px;
  }

  .main-sec > .tagarea > .tagitem {
    height: 36px;
    line-height: 30px;
    border-radius: 20px;
    margin-left: 0px;
    margin-right: 5px;
    transition: transform 0.2s ease;
    cursor: pointer;
  }

  .main-sec > .tagarea > .tagitem:hover {
    transform: scale(1.05);
  }

  .main-sec > .tagarea > .tagitemactive {
    color: #141415;
    background-color: #f1f8f9;
    border: 1px solid #b0d7dd;
  }

  .main-sec > .tagarea > .tagitem > .tagtype {
    width: 20px;
    float: left;
    margin-top: 4px;
    margin-left: 8px;
    margin-right: 5px;
    border-radius: 79px;
    overflow: hidden;
    height: 20px;
  }

  .main-sec > .tagarea > .tagitem > .tagname {
    font-size: 14px;
    font-family: "NanumSquareNeoBold";
  }

  .main-design {
    max-width: 1280px;
    padding: 10px 0px;
  }

  .sub_tap {
    display: flex;
    margin-top: 12px;
    gap: 8px;
    color: #9e9e9e;
    font-family: "NanumSquareNeoBold";
    font-size: 14px;
    align-items: center;
  }

  .guideline {
    width: 1px;
    height: 12px;
    background: #d9d9d9;
  }

  .subtabitem {
    cursor: pointer;
  }

  .subtabitem.select {
    color: #141415;
  }

  #tag_subtap {
    gap: 10px;
  }

  #tag_subtap .subtabitem {
    font-size: 18px;
    padding: 0px 2px;
  }

  .librarycontent {
    margin-left: 0px;
    margin-right: 0px;
    width: 100%;
    gap: 8px;
  }

  .main-sec-limit {
    margin-top: 64px;
  }

  .main-sec {
    padding: 0px;
  }

  .content_top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .contentList {
    padding: 0px;
    margin-top: 20px !important;
  }

  #salelist,
  #bestlist,
  #newlist {
    padding: 0px;
    margin-top: 32px;
    gap: 12px;
    padding-bottom: 1px;
  }

  #salelist > .item,
  #newlist > .item,
  #bestlist > .item {
    margin: 0px;
    padding: 0px;
    flex: 1;
  }

  .imgarea .style_img {
    transition: transform 0.3s ease;
  }

  .imgarea:hover .style_img {
    transform: scale(1.05);
  }

  .artist-swiper {
    max-width: 1280px;
    margin-top: 20px;
    overflow: visible;
    padding: 4px 4px;
  }

  #artistList {
    padding: 0px;
    gap: 32px;
  }

  .main-sec .main-title {
    font-size: 22px;
    font-family: "NanumSquareNeoExtraBold";
    align-items: center;
    display: flex;
    gap: 4px;
  }

  .mainsubtitle {
    font-size: 14px;
    color: #57585a;
    font-family: "NanumSquareNeoBold";
    margin-top: 10px;
  }

  .artist-slider {
    max-width: 190px;
  }

  .main-new-box {
    width: 100%;
  }

  .main-new-box-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    background: #e9e9e9;
    border: 1px solid #e9e9e9;
    border-radius: 50%;
    overflow: hidden;
  }

  .main-new-box-img .artist_img {
    transition: transform 0.3s ease;
  }

  .main-new-box-img:hover .artist_img {
    transform: scale(1.05);
  }

  .artist_img {
    width: 100%;
    height: 100%;
  }

  .main-new-box-name {
    font-size: 14px;
    font-family: "NanumSquareNeoBold";
  }

  .aplus-swiper {
    margin-top: 0px;
  }

  #basefavlist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 22px;
  }

  .maingiftlistitem {
    height: auto;
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 22px;
  }

  .giftlistitem {
    gap: 16px;
  }

  .giftitemcont {
    max-width: 144px;
    width: 100%;
  }

  .giftItem > .iconarea {
    width: 100%;
    max-width: 144px;
  }

  .giftimgarea {
    max-width: 144px;
  }

  .pc_logo_box {
    width: 128px;
  }

  .swiper-wrapper {
    margin-top: 32px;
  }

  .creditpopup {
    position: fixed;
    z-index: 9999999;
    background: white;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.12);
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    width: 360px;
    padding: 20px;
  }

  .creditpopup_cont {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .popup_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .popup_top > .credit > span {
    margin-left: 5px;
    font-family: "NanumSquareNeoExtraBold";
    font-size: 16px;
  }

  .creditmorebtn {
    width: 130px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a0b6;
    font-size: 13px;
    font-family: "NanumSquareNeoBold";
    border-radius: 99px;
    border: 1px solid transparent;
    cursor: pointer;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(118.3deg, #ad84ff 1.65%, #3de8ff 103.81%) border-box;
  }

  .popup_cont {
    display: flex;
    flex-direction: column;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
  }

  .popup_cont_title {
    background: #f5f5f5;
    border-bottom: 1px solid #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    font-size: 12px;
    color: #141415;
    font-family: "NanumSquareNeoBold";
  }

  .popup_cont_desc {
    padding: 12px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .popup_cont_item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-family: "NanumSquareNeoBold";
    color: #57585a;
  }

  .pc_nav_icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
  }

  .home-more-btn {
    cursor: pointer;
  }
}

.scrollLock {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

.noboard {
  border: none !important;
}

.defailtcolor {
  color: #00a0b6;
}

.redsecondcolor {
  color: #ea4de0;
}

#omavlist {
  gap: 0px;
}

.slider-more-txt {
  color: #141415;
}
/* omavlist contentitem */
#omavlist .contentitem {
  position: relative;
  width: 242px !important;
  height: 326px;
  overflow: hidden;
  border-radius: 12px;
  flex-shrink: 0;
  margin-left: 0px !important;
}
#omavlist .contentitemimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
#omavlist .contentitem:hover .contentitemimg {
  transform: scale(1.05);
}
#omavlist .contentdetail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 70%,
    rgba(0, 0, 0, 0.45) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  box-sizing: border-box;
}
#omavlist .contentnewicon {
  position: absolute;
  bottom: 44px;
  left: 12px;
  background: #00a0b6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #ffffff;
  width: 50px;
  font-family: "NanumSquareNeoExtraBold";
  height: 28px;
  margin-left: 2px;
}

.contentdetailtitle {
  color: white;
  font-size: 16px;
  font-family: "NanumSquareNeoExtraBold";
  margin-bottom: 8px;
  margin-left: 2px;
}

#omavlist .omav-more-slide .slider-more-btn {
  height: 325px;
  cursor: pointer;
}

/* librarylist items */
#librarylist .libraryitem {
  width: 242px !important;
  height: 325px;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  margin-left: 0px !important;
  margin-right: 0px !important;
}
#librarylist .librarycont {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: none;
  display: block;
  cursor: pointer;
}
#librarylist .librarycont-imgwrap {
  width: 100%;
  height: 100%;
}
#librarylist .librarycont-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
#librarylist .librarycont:hover .librarycont-img {
  transform: scale(1.05);
}
#librarylist .librarycont-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.05) 75%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#librarylist .librarycont:hover .librarycont-detail {
  opacity: 1;
}
/* 상단 유저 + 통계 */
#librarylist .lc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
#librarylist .lc-user {
  display: flex;
  align-items: center;
  gap: 6px;
}
#librarylist .lc-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #5b5fe8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#librarylist .lc-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#librarylist .lc-avatar-initial {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}
#librarylist .lc-username {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: "NanumSquareNeoExtraBold";
}
#librarylist .lc-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}
#librarylist .lc-like,
#librarylist .lc-comment {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #ffffff;
  font-size: 13px;
  font-family: "NanumSquareNeoBold";
}
#librarylist .lc-like img,
#librarylist .lc-comment img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
/* 하단 엔진 + 태그 */
#librarylist .lc-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
#librarylist .lc-engine {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
  font-family: "NanumSquareNeoBold";
}
#librarylist .librarycont-tag {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "NanumSquareNeoBold";
}
#librarylist .gift-product-more-slide .slider-more-btn {
  height: 325px;
  cursor: pointer;
}

/* 장바구니 갯수 뱃지 */
.pc_basket_new {
  position: absolute;
  top: 5px !important;
  right: 12px !important;
  transform: translateX(50%);
  background: #fc5555;
  border-radius: 12px;
  min-width: 14px;
  height: 14px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  font-family: "SF Pro Display";
  padding: 0 3px;
  box-sizing: border-box;
  width: auto;
}
/* =============================================
 * newmainbanner — fade slider
 * ============================================= */
.newmainbanner {
  position: relative;
  width: 100%;
  overflow: visible;
  margin-top: 20px;
}
.nmb-outer {
  position: relative;
  max-width: 1280px;
  margin: auto;
}
.nmb-slider {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.nmb-slide.active {
  background-color: white !important;
}

.nmb-slider.dragging {
  cursor: grabbing;
}
/* 좌우 버튼 */
.nmb-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nmb-outer:hover .nmb-btn {
  opacity: 1;
}
.nmb-btn img {
  width: 52px;
  height: 52px;
  display: block;
}
.nmb-prev {
  left: 0;
  transform: translate(-50%, -50%);
}
.nmb-next {
  right: 0;
  transform: translate(50%, -50%);
}
.nmb-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.nmb-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.nmb-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
}
/* 하단 그라디에이션 오버레이 */
.nmb-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #14141500 0%, #1414154d 100%);
  pointer-events: none;
  z-index: 1;
}
@keyframes nmb-text-slide-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.nmb-text {
  position: absolute;
  bottom: 48px;
  left: 48px;
  right: 20px;
  color: #fff;
  z-index: 2;
  opacity: 0;
}
.nmb-slide.active .nmb-text {
  animation: nmb-text-slide-in 0.45s ease 0.2s both;
}
.nmb-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  font-family: "Pretendard";
}
.nmb-desc {
  font-family: "Pretendard";
  font-size: 20px;
  font-weight: 500;
  opacity: 1;
  line-height: 1.5;
}
/* 인디케이터 */
.nmb-indicators {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 2;
  display: flex;
  gap: 6px;
  align-items: center;
}
.nmb-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #ffffff66;
  cursor: pointer;
  transition:
    width 0.3s ease,
    background 0.3s ease,
    border-radius 0.3s ease;
}
.nmb-dot.active {
  width: 25px;
  height: 8px;
  border-radius: 4px;
  background: #ffffff !important;
}

.libraryresultimg .imgcont img {
  transition: transform 0.3s ease;
}
.libraryresultimg:hover .imgcont img {
  transform: scale(1.05);
}

#maincontestlist {
  display: flex;
  flex-direction: row;
  gap: 12px;

  margin-top: 16px;
}

#maincontestlist .contestmainitem {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 0;
  display: flex;
  border: 1px solid #e9e9e9;
  box-shadow:
    1px 2px 8px 0px rgba(28, 31, 40, 0.06),
    0px 1px 4px 0px rgba(28, 31, 40, 0.04);
  padding: 20px 14px;
  gap: 12px;
  border-radius: 12px;
}

.contestmainimg {
  max-width: 145px;
  border-radius: 8px;
  overflow: hidden;
}

.contestmainimg > img {
  width: 100%;
}

.contestmaintitle {
  font-size: 14px;
  color: #141415;
  font-family: "NanumSquareNeoBold";
}

.contestmaincompany {
  margin-top: 4px;
  font-size: 13px;
  color: #57585a;
  font-family: "NanumSquareNeoBold";
}

.contestmaindesc {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.contestmaincredit {
  background: #f5f5f5;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 57px;
  width: fit-content;
  padding: 0px 8px;
  font-size: 13px;
  color: #57585a;
  font-family: "NanumSquareNeoBold";
}

.contestmaindday {
  font-size: 13px;
  color: #57585a;
  font-family: "NanumSquareNeoBold";
}

.contestmainremain {
  margin-top: 12px;
  border: 1px solid #e9e9e9;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #57585a;
  font-family: "NanumSquareNeoBold";
  height: 29px;
}

.contest-join-btn {
  margin-top: 30px;
  border: 1px solid #00a0b6;
  width: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: 00a0b6;
  border-radius: 99px;
  font-family: "NanumSquareNeoBold";
  font-size: 14px;
  gap: 8px;
}

#maincontestlist .contestmainitem--empty {
  border: none;
  box-shadow: none;
}

.contestcredit {
  background: #f5f5f5;
  padding: 4px 6px;
  border-radius: 999px;
  color: #57585a;
  font-size: 13px;
  font-family: "NanumSquareNeoBold";
}

.credit {
  background-image: url(../img/crediticon.png);
  background-size: contain;
  padding-left: 16px;
  background-repeat: no-repeat;
}

.mobilemode {
  display: none;
}

.pcmode {
  display: block;
}

.aipopupdetail {
  margin-top: 20px;
  gap: 16px;
}

.artcreateinfo {
  display: flex;
  font-size: 13px;
  color: #57585a;
  gap: 8px;
  align-items: center;
  font-family: "NanumSquareNeoBold";
}

.division {
  width: 1px;
  height: 12px;
  background: #d9d9d9;
}

.popupprompt {
  margin-top: 0px;
}

.prompttitle {
  font-size: 14px;
  font-family: "NanumSquareNeoBold";
}

.noprompt {
  font-size: 14px;
  font-family: "NanumSquareNeoBold";
  color: #57585a;
}

.main-see-all-btn {
  top: 45px !important;
}

.banner_pc {
  width: 100%;
  max-width: 1300px;
  display: flex;
  align-items: center;
  margin: auto;
  justify-content: center;
}

.banner_pc > img {
  width: 100%;
}

.banner_mobile {
  display: none;
}

.btnpromptlike {
  width: 34px;
  height: 34px;

  background: url(../img/prompt_unlike.png);
  background-size: contain;
}

.btnpromptlike.likeon {
  background: url(../img/prompt_like.png);
  background-size: contain;
}

/* ===== 오마브 추천 커뮤니티 스와이프 섹션 ===== */
#goodscommunity .main-design {
  overflow-x: visible;
}
.omavfav-outer {
  position: relative;
  overflow: visible;
}
.omavfav-swiper {
  width: 100%;
  overflow: hidden;
  padding-bottom: 32px;
}
.omavfav-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 0;
}
.omavfav-outer:hover .omavfav-nav-btn {
  opacity: 1;
}
.omavfav-nav-btn img {
  width: 52px;
  height: 52px;
  display: block;
}
.omavfav-prev {
  left: 0;
  transform: translate(-50%, -50%);
}
.omavfav-next {
  right: 0;
  transform: translate(50%, -50%);
}
.omavfav-pagination {
  bottom: 6px !important;
}
.omavfav-pagination .swiper-pagination-bullet {
  background: #d9d9d9;
  opacity: 1;
}
.omavfav-pagination .swiper-pagination-bullet-active {
  background: #00a0b6;
}
.omavfav-swiper .swiper-slide {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
.omavfav-slide-inner {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 4px 0;
  width: 100%;
  box-sizing: border-box;
}
.omavfav-slide-inner > .omavfav-item {
  flex: 1;
  min-width: 0;
}
.omavfav-item {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 20px 14px;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  box-shadow:
    1px 2px 8px 0px rgba(28, 31, 40, 0.06),
    0px 1px 4px 0px rgba(28, 31, 40, 0.04);
  background: #fff;
  cursor: pointer;
  align-items: flex-start;
}
.omavfav-img-wrap {
  flex-shrink: 0;
  width: 145px;
  height: 145px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.omavfav-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.omavfav-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.omavfav-title {
  font-size: 14px;
  font-weight: 600;
  color: #141415;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0;
  font-family: "NanumSquareNeoBold";
}
.omavfav-profile {
  display: flex;
  align-items: center;
  gap: 6px;
}
.omavfav-profile-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.omavfav-user {
  font-size: 12px;
  color: #57585a;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: "NanumSquareNeoBold";
}
.omavfav-text {
  font-size: 13px;
  color: #9e9e9e;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-family: "NanumSquareNeoBold";
}
.omavfav-stats {
  display: flex;
  gap: 10px;
  align-items: center;
}
.omavfav-stat {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: "NanumSquareNeoBold";
  font-size: 12px;
  color: #57585a;
}
.omavfav-stat-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.omavfav-remaining {
  font-size: 11px;
  color: #00a0b6;
  font-weight: 500;
  margin: 0;
  font-family: "NanumSquareNeoBold";
}
.omavfav-like-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: url("../img/gift_list_hart.png") 100% 100% no-repeat;
  background-size: 32px auto;
  cursor: pointer;
  padding: 0;
}
.omavfav-like-btn i {
  display: none;
}
.omavfav-like-btn.on {
  background: url("../img/gift_list_hart_on.png") 100% 100% no-repeat;
  background-size: 32px auto;
  width: 32px;
  height: 32px;
}

.mainbubble::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera*/
}

@media screen and (max-width: 992px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .home-header {
    z-index: 10;
    background: transparent;
    padding-left: 20px;
    padding-right: 10px;
    /* justify-content: space-between; */
  }
  .header-loggedin {
    justify-content: space-between;
  }

  .newmainbanner {
    margin-top: 0px;
    position: absolute;
    top: 0px;
    left: 0px;
  }

  .nmb-slider {
    border-radius: 0px;
  }

  .nmb-text {
    left: 20px;
    bottom: 24px;
  }

  .nmb-title {
    font-size: 22px;
    font-weight: 600;
  }

  .nmb-desc {
    font-size: 15px;
    font-weight: 400;
  }

  .nmb-indicators {
    right: 20px;
    bottom: 29px;
  }

  .nmb-dot {
    width: 4px;
    height: 4px;
  }

  .nmb-dot.active {
    width: 16px;
    height: 4px;
  }

  .rightheader {
    gap: 4px;
  }

  .home-basket-sec {
    width: 40px;
    height: 40px;
    margin-right: 0px;
  }

  .pc_mypage_link {
    width: 40px;
    height: 40px;
    padding: 5px;
  }

  .navicredit {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 5px;
  }

  .mainsubtitle {
    font-family: "NanumSquareNeoBold";
    font-size: 14px;
    counter-reset: #57585a;
  }

  .navicrediticon {
    width: 22px;
  }

  .naviusercredit {
    color: white;
    font-family: "NanumSquareNeoExtraBold";
    font-size: 13px;
  }

  .mobilemode {
    display: block;
  }

  .pcmode {
    display: none;
  }

  .mainaction {
    margin-top: 250px; /* fallback; overridden by JS */
    padding: 20px;
  }

  /* [변경] 모바일 creditpopup: 기존 top/right fixed 팝업 → 하단 바텀시트 슬라이드업 */
  .creditpopup {
    position: fixed;
    z-index: 9999999;
    background: white;
    box-shadow: 0px -4px 20px 0px rgba(0, 0, 0, 0.12); /* [변경] 위쪽 그림자 */
    border: 1px solid #e9e9e9;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    padding: 0px 20px 32px 20px;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: -100% !important; /* 기본: 화면 아래 숨김 */
    transition: bottom 0.3s cubic-bezier(0.32, 0.72, 0, 1); /* [신규] 슬라이드 애니메이션 */
  }

  /* 열림 상태: 맨 아래로 슬라이드업 */
  .creditpopup.open {
    bottom: 0 !important;
  }

  /* [신규] 어두운 배경 오버레이 */
  .creditpopup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999999;
  }
  .creditpopup-overlay.show {
    display: block;
  }

  .mobile-popup-bottom-arrow-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 44px;
  }

  .creditpopup_cont {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .btnpromptuser_credit {
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 4px;
    display: flex;
  }

  .popup_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
  }

  .omavfav-outer {
    margin-top: 10px;
  }

  .popup_top > .credit > span {
    margin-left: 8px;
    font-family: "NanumSquareNeoExtraBold";
    font-size: 16px;
  }

  .creditmorebtn {
    width: 130px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a0b6;
    font-size: 13px;
    font-family: "NanumSquareNeoBold";
    border-radius: 99px;
    border: 1px solid transparent;
    cursor: pointer;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(118.3deg, #ad84ff 1.65%, #3de8ff 103.81%) border-box;
  }

  .popup_cont {
    display: flex;
    flex-direction: column;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
  }

  .popup_cont_title {
    background: #f5f5f5;
    border-bottom: 1px solid #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    font-size: 12px;
    color: #141415;
    font-family: "NanumSquareNeoBold";
  }

  .popup_cont_desc {
    padding: 12px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .popup_cont_item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-family: "NanumSquareNeoBold";
    color: #57585a;
  }

  .mainbtnarea {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 80px;
  }

  .mainbtnitem {
    flex: 1;
    background: #f4f5f6;
    border-radius: 9px;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
  }

  .maibbtnartcreate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .mainbtntext {
    font-size: 13px;
    font-family: "NanumSquareNeoBold";
    color: #141415;
  }

  .mainartbadge {
    position: absolute;
    right: 0px;
    top: 0px;
    background: #63b1bc;
    width: 65px;
    border-bottom-left-radius: 8px;
    color: white;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "NanumSquareNeoExtraBold";
    font-size: 11px;
  }

  .content_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .main-title {
    font-size: 18px !important;
  }

  .home-more-btn {
    width: 16px;
    height: 16px;
  }

  #omavlist .contentitem {
    margin-right: 8px;
    width: 130px !important;
    height: 175px;
    border-radius: 8px;
  }

  #omavlist .contentnewicon {
    font-size: 10px;
    padding: 4px;
    width: 33px;
    height: 18px;
    border-radius: 4px;
    bottom: 36px;
  }

  .contentdetailtitle {
    font-size: 13px;
    margin-bottom: 0px;
  }

  #omavlist .omav-more-slide .slider-more-btn {
    height: 175px;
  }

  .main-omav-list {
    width: 100%;
    overflow: hidden;
  }

  .main-sec {
    gap: 6px;
    padding: 12px 20px;
    margin-top: 0px;
  }

  .sub_tap {
    display: flex;
    gap: 8px;
    color: #9e9e9e;
    font-family: "NanumSquareNeoBold";
    font-size: 14px;
    align-items: center;
  }

  .guideline {
    width: 1px;
    height: 12px;
    background: #d9d9d9;
  }

  .subtabitem.select {
    color: #141415;
  }

  .aplus-swiper {
    margin-top: 0px;
  }

  .contentList {
    padding: 0px;
  }

  #librarylist .libraryitem {
    width: 130px !important;
    height: 175px;
  }

  #librarylist .gift-product-more-slide .slider-more-btn {
    height: 175px;
  }

  #tag_subtap {
    font-size: 16px;
    margin-left: 4px;
  }

  .tagarea {
    padding: 0px;
  }

  .main-sec > .tagarea > .tagitem {
    height: 32px;
    line-height: 27px;
    border-radius: 20px;
    margin-left: 0px;
    margin-right: 5px;
    transition: transform 0.2s ease;
    cursor: pointer;
  }

  .main-sec > .tagarea > .tagitemactive {
    color: #141415;
    background-color: #f1f8f9;
    border: 1px solid #b0d7dd;
  }

  .main-sec > .tagarea > .tagitem > .tagtype {
    width: 20px;
    float: left;
    margin-top: 3px;
    margin-left: 6px;
    margin-right: 5px;
    border-radius: 79px;
    overflow: hidden;
    height: 20px;
  }

  .main-sec > .tagarea > .tagitem > .tagname {
    font-size: 12px;
    font-family: "NanumSquareNeoBold";
  }

  .librarycontent {
    padding-top: 4px;
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
  }

  .librarycont-detail {
    display: none !important;
  }

  .main-pc-section,
  .omavfav-item {
    position: relative;
  }

  .omavfav-slide-inner,
  #maincontestlist {
    flex-direction: column;
  }

  .omavfav-like-btn {
    position: absolute;
    left: 120px;
    top: 33px;
  }

  #maincontestlist .contestmainitem--empty {
    display: none;
  }

  .main-pc-section {
    margin-top: 20px;
  }

  .designer-slide-btn-wrapper {
    display: none;
  }

  .artist-swiper {
    margin-left: 0px;
    margin-right: 0px;
    width: 100%;
  }

  .main-new-box {
    width: 100%;
  }

  .main-new-box-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    background: #e9e9e9;
    border: 1px solid #e9e9e9;
    border-radius: 50%;
    overflow: hidden;
  }

  .main-new-box-name {
    font-size: 12px;
    font-family: "NanumSquareNeoBold";
  }

  .banner_pc {
    display: none;
  }

  .banner_mobile {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .banner_mobile > img {
    width: 100%;
  }

  .main-see-all-btn {
    top: 26px !important;
  }
  .giftitem > .new {
    top: 10px;
  }

  .bgblur {
    position: absolute;
    left: -10%;
    top: -10%;
    width: 120%;
    z-index: 0;
    overflow: hidden;
    height: 120%;
  }

  .bgblur > img {
    -webkit-filter: blur(10px);
    opacity: 0.6;
    height: 120%;
    width: auto;
  }

  .pc-top-inner-section {
    display: flex;
    max-width: 100%;
    width: 100%;
    flex-direction: column-reverse;
    padding-bottom: 20px;
  }

  #scroll-container {
    margin-top: 60px !important;
  }

  .maintitle {
    position: relative !important;
  }

  .scroll-content img {
    width: 160px;
    height: auto;
    margin-right: 10px;
    user-select: none;
    -webkit-user-drag: none;
  }

  .artbtn {
    font-size: 20px !important;
  }

  #scroll-container {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto !important; /* iOS 터치 허용 */
    user-select: auto !important; /* 드래그 허용 */
    position: relative;
    z-index: 10;
  }

  #imageScroller {
    white-space: nowrap;
    align-items: flex-start;
  }

  .scroll-content {
    white-space: nowrap;
    align-items: flex-start;
  }

  .style-item {
    display: inline-block;
    margin-right: 10px;
    position: relative;
    vertical-align: top;
    width: 160px;
    height: 148px;
  }

  .style-item img.mainstyleimg {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    margin-top: 13px;
  }

  .newstyleguard {
    position: absolute;
    top: 0px;
    width: 165px;
    height: 133px;
    background: url(img/newguard.png) no-repeat;
    background-size: cover;
    z-index: 20;
    left: -2px;
  }

  .tooltiparea {
    margin-right: 0px;
    top: 48px !important;
  }

  .mobileuser {
    display: flex;
    align-items: center;
    position: relative;
  }

  .mobileuser .tooltiparea {
    left: 0px !important;
    right: 0;
    transform: none;
  }

  .tooltiparea {
    top: 35px !important;
  }

  .mobileuser .tooltiparea .tooltip {
    max-width: 70vw;
    min-width: 50vw;
    white-space: normal;
    width: max-content;
  }

  #bestlist,
  #salelist,
  #newlist {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #bestlist::-webkit-scrollbar,
  #salelist::-webkit-scrollbar,
  #newlist::-webkit-scrollbar {
    display: none;
  }

  #bestlist > .item,
  #salelist > .item,
  #newlist > .item {
    min-width: 150px;
    width: 150px;
    flex-shrink: 0;
  }
  .nmb-slide::after {
    background: linear-gradient(
      179.59deg,
      rgba(20, 20, 21, 0.45) 1.24%,
      rgba(20, 20, 21, 0.07) 31.76%,
      rgba(20, 20, 21, 0.07) 52.14%,
      rgba(20, 20, 21, 0.4) 80.19%
    );
  }

  .omavfav-img-wrap {
    width: 112px;
    height: 112px;
  }

  .omavfav-like-btn {
    left: 90px;
    top: 24px;
  }

  .contestmainimg {
    max-width: 112px;
    height: fit-content;
  }

  .loginbtn {
    font-family: "NanumSquareNeoBold";
    font-size: 13px;
    padding: 6px 9px;
    border-radius: 8px;
  }

  .popupbtnarea > .loginbtn {
    width: 100%;
    border-radius: 4px;
  }

  .sellerrequstbtn,
  .loginbtn1,
  .sellerrequstbtn2,
  .sellerrequstbtn1 {
    display: flex;
    align-items: center;
    border-radius: 8px;
    background-image: url(../img/sellercheckimg1.png);
    height: 30px;
    background-repeat: no-repeat;
    font-family: "NanumSquareNeo";
    background-size: 16px 16px;
    background-position-y: 5px;
    background-position-x: 5px;
    padding-left: 25px;
  }
}

/* ===== 팝업 레시피 태그리스트 ===== */
.popup-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.popup-tagitem {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #3c949a;
  border-radius: 4px;
  background: #eaf6f6;
  font-size: 12px;
  font-weight: bold;
  cursor: default;
  max-width: 220px;
}

.popup-tagitem img {
  width: 16px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.popup-tagitem-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup-tagitem-text {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #f9f9f9;
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
}

.popup-tagitem-text.expanded {
  height: auto;
  overflow: visible;
  align-items: flex-start;
  padding: 6px 8px;
  flex-wrap: wrap;
}

.popup-tagitem-text .popup-tag-textval {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.popup-tagitem-text.expanded .popup-tag-textval {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  max-width: 100%;
}

.popup-tagitem-text .popup-tag-more {
  flex-shrink: 0;
  color: #00a0b6;
  cursor: pointer;
  font-size: 11px;
}

.popupbtnarea {
  flex-direction: column;
  height: auto;
  align-items: end;
  gap: 10px;
}

.creditmininfo {
  align-items: center;
}

.prompttip {
  width: 110px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #e9e9e9;
  border-radius: 99px;
  font-size: 12px;
  color: #57585a;
  margin-right: 10px;
  font-family: "NanumSquareNeoBold";
  cursor: pointer;
}

/* ===== 댓글 섹션 ===== */
.popup-comment-section {
  margin-top: 0px;
  padding-top: 20px;
  border-top: 1px solid #e9e9e9;
}

.popup-comment-title {
  font-size: 14px;
  font-family: "NanumSquareNeoBold";
  margin-bottom: 20px;
}

/* 댓글 입력 */
.popup-comment-edit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f0f0;
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-family: "NanumSquareNeoBold";
  margin-bottom: 4px;
}

.popup-comment-edit-close {
  background: none;

  color: #999;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  position: absolute;
  right: 20px;
}

.popup-comment-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.popup-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #d9d9d9;
}

.popup-comment-input-inner {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0 12px;
  gap: 6px;
  min-height: 40px;
}

.popup-comment-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12px;
  outline: none;
  min-width: 0;
  color: #141415;
}

.popup-comment-input::placeholder {
  color: #aaa;
}

.popup-comment-submit-web {
  display: none;
  background: #d0d0d0;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-family: "NanumSquareNeoExtraBold";
  cursor: default;
  flex-shrink: 0;
  transition: background 0.15s;
  width: 51px;
  height: 40px;
  font-size: 14px;
}

.popup-comment-input-wrap:focus-within .popup-comment-submit-web,
.popup-comment-input-wrap.has-text .popup-comment-submit-web {
  display: block;
}

.popup-comment-submit-web:not([disabled]) {
  background: #00a0b6;
  cursor: pointer;
}

.popup-comment-submit-web.edit-mode:not([disabled]) {
  background: #00a0b6;
}

.popup-comment-submit-mobile {
  display: none;
  background: none;
  border: none;
  color: #c0c0c0;
  font-size: 18px;
  cursor: default;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.popup-comment-submit-mobile:not([disabled]) {
  color: #00a0b6;
  cursor: pointer;
}

/* 대댓글 바 */
.popup-reply-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d9d9d9;
  padding: 6px 10px;
  font-size: 12px;
  color: #57585a;
  margin-bottom: 8px;
  font-family: "NanumSquareNeoBold";
  position: relative;
  z-index: 100;
}

.popup-reply-bar button {
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  position: absolute;
  right: 20px;
}

/* 댓글 없음 */
.popup-no-comment {
  text-align: center;
  color: #9e9e9e;
  font-size: 14px;
  padding: 20px 0;
  font-family: "NanumSquareNeoBold";
}

/* 댓글 목록 스크롤 (PC만) */
#popupCommentList {
  max-height: 320px;
  overflow-y: auto;
}
@media screen and (max-width: 992px) {
  #popupCommentList {
    max-height: none;
    overflow-y: visible;
  }
}

/* 댓글 아이템 */
.popup-comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.popup-comment-item.reply {
  padding-left: 32px;
}

.popup-comment-item .pc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
}

.popup-comment-body {
  flex: 1;
  min-width: 0;
}

.popup-comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.popup-comment-name {
  font-size: 13px;
  font-family: "NanumSquareNeoExtraBold";
  color: #57585a;
}

.popup-comment-author-badge {
  font-size: 12px;
  color: #00a0b6;
  font-family: "NanumSquareNeoBold";
  border-radius: 3px;
  padding: 2px 4px;
  background: #f1f8f9;
}

.popup-comment-text {
  font-size: 14px;
  color: #57585a;
  line-height: 1.5;
  word-break: break-all;
  font-family: "NanumSquareNeoBold";
}

.popup-comment-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.popup-comment-date {
  font-size: 12px;
  color: #9e9e9e;
  font-family: "SF Pro Display";
}

.popup-comment-like {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: #9e9e9e;
  cursor: pointer;
  font-family: "NanumSquareNeoBold";
  background: none;
  border: none;
  padding: 0;
}

.popup-comment-like.liked {
  color: #00a0b6;
}

.popup-comment-like.liked svg path {
  fill: #00a0b6;
}

.popup-comment-reply-btn {
  font-size: 14px;
  color: #9e9e9e;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: "NanumSquareNeoBold";
  display: flex;
  gap: 2px;
}

.popup-comment-more {
  margin-left: auto;
  background: none;
  border: none;
  color: #bbb;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
}

/* PC 드롭다운 */
.popup-comment-dropdown {
  position: fixed;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 2000000;
  min-width: 142px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
}

.popup-dropdown-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  color: #141415;
  font-family: "NanumSquareNeoBold";
}

.popup-dropdown-btn:hover {
  background: #f5f5f5;
}

.popup-dropdown-btn-delete {
  color: #ff6b64;
}

/* 모바일 액션 시트 */
.popup-action-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000001;
}

.popup-action-sheet-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.popup-action-sheet-cont {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 8px 0 24px;
}

.popup-action-sheet-arrow {
  text-align: center;
  font-size: 22px;
  color: #ccc;
  line-height: 1;
  margin-bottom: 4px;
}

.popup-action-btn {
  display: block;
  width: calc(100% - 40px);
  padding: 14px 20px;
  background: white;
  border: 1px solid #e9e9e9;
  font-size: 14px;
  cursor: pointer;
  color: #141415;
  margin-left: 20px;
  margin-bottom: 8px;
  text-align: center;
  font-family: "NanumSquareNeoBold";
}

.popup-action-btn-delete {
  color: #ff3b3b;
}

.aipopuptitle {
  display: none;
}

.mobileclearfix {
  display: none;
}

.mobilediv {
  display: none;
}

#omavpopup-info > span {
  display: flex;
  font-size: 13px;
  color: #57585a;
  gap: 8px;
  align-items: center;
  font-family: "NanumSquareNeoBold";
  padding: 8px;
  background: #f5f5f5;
  border-radius: 4px;
}
/* 반응형 */
@media screen and (max-width: 768px) {
  .aipopuptitle {
    display: flex;
    width: 100%;
    height: 64px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: "NanumSquareNeoBold";
    color: #141415;
    position: fixed;
    z-index: 10;
    background: #fff;
  }

  .omavpopup-inner {
    padding-bottom: 100px;
  }

  .btn_main_close {
    width: 100%;
    text-align: right;
    position: fixed;
    top: 12px;
    right: 10px;
    padding: 0px;
    z-index: 10;
  }

  .popup-comment-section {
    border-top: none;
    padding-bottom: 80px;
  }

  .aipopupcont {
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 64px;
  }

  .aipopupcont > .imagearea {
    width: 100%;
    border-radius: 0px;
  }

  .aipopupcont > .imagearea > img {
    border-radius: 0px !important;
  }

  .popupbtnareatop {
    width: 100%;
    flex-direction: row-reverse;
    gap: 8px;
  }

  .btnpromptopenarea {
    flex: 1;
  }

  .main-sec-limit {
    margin-top: 8px;
  }

  .btnpromptopen_credit {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .btnpromptopen_credit > .creditarea {
    margin: initial;
  }

  .creditmininfo {
    width: 100%;
  }

  .mobileclearfix {
    flex: 1;
    display: block;
  }

  .aipopupdetail {
    padding-left: 20px;
    padding-right: 20px;
  }

  .btn_main_close button {
    width: 40px;
    height: 40px;
    background-size: 24px;
  }

  .main-dseign-boxes {
    margin-top: 14px;
  }

  .main-sec .main-title {
    display: flex;
    gap: 4px;
  }

  .contest-join-btn {
    border: none;
    margin-top: 0px;
    width: fit-content;
    margin-left: 4px;
  }

  .mobilediv {
    display: block;
    width: calc(100% + 40px);
    height: 8px;
    background: #f5f5f5;
    margin-left: -20px;
    margin-top: 4px;
  }

  .popup-comment-input-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-left: 0;
    margin-bottom: 0px;
    height: 56px;
    padding: 8px 20px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    z-index: 100;
    box-sizing: border-box;
  }

  .popup-reply-bar {
    position: fixed;
    bottom: 44px;
    left: 0px;
    width: 100%;
  }

  .popup-comment-edit-bar {
    position: fixed;
    bottom: 50px;
    left: 0px;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
  }

  .popup-comment-submit-web {
    display: none !important;
  }
  .popup-comment-submit-mobile {
    display: none;
  }
  .popup-comment-input-wrap:focus-within .popup-comment-submit-mobile,
  .popup-comment-input-wrap.has-text .popup-comment-submit-mobile {
    display: block;
  }
  .popup-comment-dropdown {
    display: none !important;
  }

  .pc_nav_icon {
    width: 100%;
    height: 100%;
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
  }
}

.uploadiconpopup {
  position: absolute;
}

@media screen and (min-width: 769px) {
  .popup-comment-submit-mobile {
    display: none !important;
  }
  .popup-action-sheet {
    display: none !important;
  }
}
.recipe-tip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9000;
}
.recipe-tip-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9001;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9e9e9;
  padding: 28px 28px 24px;
  width: 460px;
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
  z-index: 10000000;
}
.recipe-tip-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #57585a;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.recipe-tip-title {
  font-size: 18px;
  font-family: "NanumSquareNeoExtraBold", "NanumSquareNeoBold";
  color: #00a0b6;
  margin-bottom: 16px;
}
.recipe-tip-list {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recipe-tip-list li {
  font-size: 14px;
  color: #57585a;
  font-family: "NanumSquareNeo";
  list-style: disc;
}
.recipe-tip-list li img {
  vertical-align: middle;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .recipe-tip-popup {
    border: none;
    padding: 24px 20px 20px;
    width: 320px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  }
  .recipe-tip-title {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .recipe-tip-list li {
    font-size: 13px;
  }
}

/* ===== 신고하기 팝업 ===== */
.report-comment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000010;
}
.report-comment-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  padding: 28px 24px 24px;
  z-index: 2000011;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}
.report-comment-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  line-height: 1;
}
.report-comment-title {
  text-align: center;
  font-size: 18px;
  font-family: "NanumSquareNeoBold";
  margin-bottom: 20px;
}
.report-comment-subtitle {
  font-size: 16px;
  font-family: "NanumSquareNeoBold";
  margin-bottom: 14px;
}
.report-comment-reasons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.report-comment-reasons label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  color: #141415;
}
.report-comment-reasons input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #00a0b6;
  cursor: pointer;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: radio;
}
.report-comment-memo {
  width: 100%;
  height: 90px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  resize: none;
  box-sizing: border-box;
  font-family: "NanumSquareNeo";
  color: #141415;
  margin-bottom: 20px;
}
.report-comment-memo::placeholder {
  color: #b0b0b0;
}
.report-comment-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: #00bcd4;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-family: "NanumSquareNeoBold";
  cursor: pointer;
}
.report-comment-submit:hover {
  background: #00a6ba;
}
