@keyframes animFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes animFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.preload {
    overflow: hidden;
}

.preload-container {
    width: 100%;
    height: 100%;
    background: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 99999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preload-container.fade-in {
    animation: animFadeIn 0.5s ease-out forwards;
}

.preload-container.fade-out {
    animation: animFadeOut 0.5s ease-out forwards;
}

.preload-container.hide {
    opacity: 0;
    pointer-events: none;
    transition: all 150ms ease !important;
}

.jq-toast-wrap {
    width: auto;
    max-width: 100%;
}


.jq-toast-single {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    border-radius: 100px;
    position: relative;
    pointer-events: all !important;
    background-color: #444;
    color: #fff;
    font-size: 0.875rem;
    font-family: "Pretendard" !important;
    line-height: var(--bs-body-line-height);
}

.jq-has-icon {
    padding: 7px 16px 7px 29px;
    background-repeat: no-repeat;
    background-position: 10px
}

.jq-icon-info {
    background-image: url(../img/icon/ico_toast.svg);
    background-color: rgba(28, 28, 28, 0.75);
    color: #fff;
}


.jq-icon-warning {
    background-image: url(../img/icon/ico_toast.svg);
    background-color: rgba(28, 28, 28, 0.75);
    color: #fff;
}

.jq-icon-error {
    background-image: url(../img/icon/ico_toast.svg);
    background-color: rgba(28, 28, 28, 0.75);
    color: #fff;
}

.jq-icon-success {
    background-image: url(../img/icon/ico_toast.svg);
    background-color: rgba(28, 28, 28, 0.75);
    color: #fff;
}


/*
파일 업로드
*/
.upload-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0px;
}

.upload-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: url(../img/img_plus_125px.png) no-repeat center / cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.upload-box.hidden {
    display: none;
}

.upload-box .plus {
    font-size: 24px;
    margin-bottom: 5px;
}

.upload-box .text {
    color: #333;
}

.upload-box .upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-box .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.preview-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    cursor: move;
    border-radius: 10px;
}

.preview-box img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.preview-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sortable-ghost {
    opacity: 0.5;
}

.filepond--root {
    display: none;
}

.vivio-preview-box {
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    position: relative;
    overflow: hidden;
    cursor: move;
}

.vivio-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vivio-preview-box a {
    display: block;
    width: 100%;
    height: 100%;
}

/*no drag*/
.no_drag {
    -ms-user-select: none;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.wh-pre {
    white-space: pre-line;
}

/* 검색창 */
.header_menu .btn_back {
    display: none;
}

.header_menu.search_page .btn_back {
    display: inline-block;
}

.header_menu.search_page .logo {
    display: none;
}

.recent_search.none {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    z-index: 99;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    margin-top: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.recent_search.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.recent_inner {
    position: relative;
    max-width: 576px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.bottom-sheet {
    max-height: 600px;
    overflow-y: auto;
}

/* 리뷰별점 */
.star-box .star {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: url(../../assets/img/icon/ico_empty_star_50px.png) no-repeat center/contain;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.star-box .star.on {
    background: url(../../assets/img/icon/ico_full_star_50px.png) no-repeat center/contain;
}

.star-box.small .star {
    width: 20px;
    height: 20px;
}

.star-wrap {
    display: flex;
    width: 280px;
    justify-content: space-between;
    cursor: pointer;
}

.star-box {
    position: relative;
    width: 50px;
    height: 1em;
    font-size: 46px;
}

.star-box > i {
    color: #ccc;
    position: absolute;
    top: 0;
    left: 0;
}

.star-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    line-height: 1;
    pointer-events: none;
}

.star-fill i {
    color: gold;
}


.v-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
}

.choice-taste-bar {
    width: 100%;
    display: flex;
    gap: 2px;
}

.choice-taste-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:10px;
    flex: 1 1  20%;
    border: none;
}

.choice-taste-btn:focus,
.choice-taste-btn:focus-visible {
    outline: none;
    box-shadow: none;
}



.choice-taste-btn .ct-color {
    display: inline-block;
    width: 100%;
    height: 15px;
    background-color: #EAEAEE;
    border-radius: 0;
}

.choice-taste-btn.active .ct-color {
    background-color: #87090A; /* 예시 색상 */
}

.choice-taste-btn:first-child .ct-color {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.choice-taste-btn:last-child .ct-color {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}


.choice-taste-btn .ct-txt {
    width: 100%;
    color: #85838F;
    font-weight: 500;
    font-size: 12px;
}


.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sns_share li{width:5.0rem;overflow:hidden;}
.sns_share li img {max-width: 100%;display: block;height: auto;}



.graph-box {
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}



.ft-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 100px;
    background-color: #333;
}
.ft-wrapper ul.foot01 {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: column;
}
.ft-wrapper ul.foot01 li {
    margin: 0 0 5px;
}
.ft-wrapper ul.foot01 li p.tit {
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 300;
    color: #b8bfc2;
    white-space: nowrap;
}
.ft-wrapper ul.foot01 li p.txt {
    padding-left: 5px;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 500;
    color: #b8bfc2;
}
.ft-wrapper ul.foot01 li:last-child {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #585858;
}
.ft-wrapper .copyright {
    margin: 20px 0 0 0;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 500;
    color: #b8bfc2;
}

.footer_link {
    padding: 0 10px 10px;
    margin-bottom: 10px;
    background-color: #333;
}
.footer_link ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    gap: 10px;
}
.footer_link ul li {
    flex-shrink: 0;
    padding: 0 10px;
    text-align: center;
}
.footer_link ul li a {
    font-size: clamp(10px, 3vw, 12px);
    font-weight: 400;
    color: #fff;
}

@media screen and (min-width: 768px) {
    .footer_link ul {
        flex-wrap: nowrap;
    }
    .footer_link ul li {
        flex: 1 1 auto;
    }
}

.profile_setting .thumb {
    position: relative;
    text-align: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.profile_setting .thumb .upload {
    position: absolute;
    bottom: 0;
    right: 0;
}

.camera-upload-preview {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.camera-upload-preview .img_con {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
}

.camera-upload-preview .img_con::before {
    content: "";
    display: block;
    padding-bottom: 100%;
}
.camera-upload-preview .img_con img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #fff;
}

.camera-upload-preview .upload {
    position: absolute;
    bottom: 0;
    right: 22px;
}


/* ✅ 기본: 모바일용 (최우선 적용) */
.wine-swiper-prev,
.wine-swiper-next {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
}

.wine-swiper-prev { left: 8px; }
.wine-swiper-next { right: 8px; }

/* ✅ 데스크탑 확장: 576px 이상 */
@media (min-width: 576px) {
    .wine-swiper-prev,
    .wine-swiper-next {
        width: 44px;
        height: 44px;
        margin-top: -22px;
        font-size: 18px;
    }
}

.wine-swiper-count {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
}

.badge-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 정사각형 */
    background-color: #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
}

.badge-img-wrap img {
    position: absolute;
    width: 90%;
    height: 90%;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.badge-img-text {
    position: absolute;
    top: 72%;
    left: 52%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    padding: 0 6px;
    text-shadow: 0 0 4px rgba(0,0,0,0.6);
    pointer-events: none;
}

.badge-caption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-gray5);
    font-weight: 500;
    line-height: 1.2;
    word-break: keep-all;
}

.pairing-icon {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}


.pairing-icon img {
    position: absolute;
    width: 90%;
    height: 90%;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.landing-logo-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255,255,255,0.5);
    z-index: 999;
    text-align: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.landing-logo {
    display: block;
    width: 100%;
    max-width: 60px;
    margin: 10px 0;
}

.landing-wrap {
    padding-top: 40px;
    max-width: 100%;
    margin: 0 auto;
}

.landing-image {
    display: block;
    width: 100%;
    height: auto;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none; /* 기본은 숨김 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.landing-ft-wrap {
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 100px;
    background-color: #333;
}

/* 선택된 국가 미리보기 */
.selected-preview-label {
    position: sticky;
    top: -15px;
    z-index: 10;
    background-color: #fff; /* 배경을 줘야 스크롤 시 가려지지 않음 */
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}


/* 국가 그룹 제목 */
.country-group .group-title {
    padding-left: 4px;
    color: #555;
}

/* 전체 국가 리스트 - grid */
.grid-country-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important;
}
.grid-country-list .btn {
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid var(--color-gray3);
    border-radius: 100px;

}
.grid-country-list .btn.active {
    border: 1px solid var(--color-main);
    background-color: var(--color-pink);
    color: var(--color-main);
}

