:root {
    --main: #342E37;
    --border1: #D7D7D7;
    --border3: #EBEBEB;
    --background1: #ffffff;
    --background2: #EBEBEB;
    --text2: #555555;
    --text3: #8A8A8A;
    --text4: #333333;
    --icon: #555555;
    --blue: #5788DD;
    --gray: #999999;
    --darkgray: #797784;
    --green: #1A8B2E;
    --red: #C33131;
    --yellow: #342E37;
}
/* ===== 기본 크기 지정 ===== */
html {
    font-size: 62.5%; /* 기본: 1rem = 10px */
    text-size-adjust: none;
}

/* ========== 미디어 쿼리 - 레이아웃 ========== */

@media (min-width: 320px) and (max-width: 767px) {
    html {
        font-size: 62.5%; /* 1rem = 10px */
    }
    .aside {
        width: 0;
    }
    .orderTypes {
        grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    }
}
@media (min-width: 768px) {
    html {
        font-size: 68.75%; /* 1rem = 11px */
    }
    .aside {
        width: 0;
    }
    .orderTypes {
        grid-template-columns: repeat(4,1fr);
    }
}
@media (min-width: 1200px) {
    html {
        font-size: 68.75%; /* 1rem = 11px */
    }
    .aside {
        width: 24rem;
    }
    .orderTypes {
        grid-template-columns: repeat(4,1fr);
    }
}
a {
    text-decoration: none;
    color: var(--text4);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
button {
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
}
input {
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 1.3rem;
    height: 100%;
}
body {
    font-family: 'Pretendard',sans-serif;
    line-height: 1.4;
    font-weight: 500;
    font-size: 1.4rem;
    background-color: #FAFAFA;
    color: var(--text4);

    overflow-x: auto;
}
.aside {
    min-height: 100vh;
    background-color: #fff;
    border-right: 1px solid var(--border3);
    /* width: 24rem; */
    transition: width 0.3s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}
.mainLogo {
    text-align: center;
    border-bottom: 1px solid var(--border3);
    height: 8rem;
}
.mainLogo > img {
    width: 7.6rem;
    object-fit: contain;
}
.aside-toggle-btn-wrap {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.aside-toggle-btn {
    width: 2rem;
    height: 2rem;
    background-color: #8A8A8A;
    mask-image: url(/assets/image/icon/icon-hamburger-menu.svg);
    -webkit-mask-image: url(/assets/image/icon/icon-hamburger-menu.svg);
    background-size: 2rem;
}
.aside-toggle-btn:hover {
    background-color: #111;
}
.layout {
    display: flex;
}
.nav-item > a, .nav-item > button {
    display: block;
    height: 8rem;
    padding: 0 2.6rem;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--text3);
    border-bottom: 1px solid var(--border3);

    display: flex;
    align-items: center;
}
.nav-item > button {
    width: 100%;
    text-align: left;
    justify-content: space-between;
}
.nav-item.active > a, .nav-item.active > button {
    color: var(--main);
}
.subMenu {
    border-bottom: 1px solid var(--border3);
    display: none;
}
.subMenu.active {
    display: block;
}
.subMenu > li > a {
    display: block;
    padding: 2rem 4.6rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text3);
}
.subMenu > li.active > a {
    color: var(--main);
}
.content {
    min-width: calc(100% - 24rem);
    width: 100%;
    container-type: inline-size;
}
@container (max-width: 399px) {
    .content {
        /*overflow-x: auto;*/
    }
    .content * {
        flex-shrink: 0;
    }
}
.header {
    background-color: var(--background1);
    border-bottom: 1px solid var(--border3);
    box-shadow: 0 4px 5px rgba(0,0,0,0.03);

    padding: 0 2.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8rem;
}
.header-name {
     font-size: 2rem;
     font-weight: 700;
 }
.loginInfo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.loginInfo > button.logout {
    color: var(--text3);
}
.wrapBox {
    position: relative;
    /* min-width: 700px; */
    margin-top: 1.6rem;
    background-color: var(--background1);
    border: 1px solid var(--border3);
    box-shadow: 0 0 10px rgba(235,235,235,1);
    border-radius: 0.8rem;
    overflow-x: auto ;
}
.wrapBoxPadding {
    padding: 2.4rem;
}
.roundBox {
    border-radius: 999px;
}
.darkBtn {
    background-color: var(--text4);
    color: #fff;
}
.blueBtn {
    background-color: var(--blue);
    color: #fff;
}
.redBtn {
    background-color: var(--red);
    color: #fff;
}
.greenBtn {
    background-color: var(--green);
    color: #fff;
}
.btnSmall {
    height: 3.2rem;

    font-size: 1.3rem;
    padding: 0 0.8rem;
    border-radius: 0.5rem;

    display: flex;
    justify-content: center;
    align-items: center;
}
.btnDefault {
    height: 4rem;
    font-size: 1.4rem;
    font-weight: 400;
    padding: 0 1.6rem;
    border-radius: 0.8rem;

    display: flex;
    justify-content: center;
    align-items: center;
}
.registerBtnWrap {
    display: flex;
    justify-content: flex-end;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.statsBox {
    position: relative;
    margin-top: 2rem;
    padding: 1.6rem 2.4rem;
    width: 28rem;
    background-color: var(--background1);
    border: 1px solid var(--border3);
    box-shadow: 0 0 10px rgba(235,235,235,1);
    border-radius: 0.8rem;
}
.statsBox > p.number {
    font-size: 1.6rem;
    text-align: right;
    margin-top: 2rem;
}
.statsBox > p.number > strong {
    font-size: 1.8rem;
}
/* IE */
select::-ms-expand {
    display: none;
}
select {
    -o-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
}
.selectBox > select {
    font-size: 1.3rem;
    color: var(--text3);

    width: 100%;
    height: 100%;
    padding: 0 2.8rem 0 1.6rem;
}
.selectBox {
    height: 4rem;
    /*padding: 0 1.2rem 0 1.6rem;*/

    background-color: var(--background1);
    border: 1px solid var(--border3);
    border-radius: 0.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 1.6rem;
    position: relative;
    overflow: hidden;
}
.selectBox.roundBox {
    border-radius: 999px;
}
.selectBox .icon-dropdown {
    position: absolute;
    right: 0.4rem;
    pointer-events: none;
}
.select-wrap {
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.6rem;
}
.select-wrap > select {
    text-align: center;
    height: 100%;
}
.icon {
    display: block;
    background-repeat: no-repeat;
}
.icon-dropdown {
    width: 2.4rem;
    height: 2.4rem;
    background-image: url(../assets/image/icon/dropdown.svg);
    background-size: 2.4rem;
}
.inputBox {
    height: 4.2rem;
    padding: 0 1.6rem;
    border: 1px solid var(--border3);
    border-radius: 0.5rem;
    color: var(--text3);
    box-sizing: border-box;
    min-width: 20rem;
}
.addBtn {
    height: 4.2rem;
    padding-left: 2rem;
    padding-right: 0.8rem;
    background-image: url(../assets/image/icon/plus.svg);
    background-size: 2.4rem;
    background-repeat: no-repeat;
    background-position: calc(100% - 0.8rem) center;
    border: 1px solid var(--main);
}
.border5Box{
    border-radius: 0.5rem;
}
.main {
    padding: 1.6rem;
}
.productListFilter {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.productListFilter * {
    flex-shrink: 0;
}
.flexButtonWrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.searchFilter {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.btnLists {
    display: flex; /* Flexbox를 사용 */
    justify-content: flex-end; /* 내용물을 오른쪽(끝) 정렬 */
    gap: 1rem; /* 버튼 간 간격 */
}
.btnListsMargin {
    margin-bottom: 2rem;
}
.searchBox {
    /*position: relative;*/
    /*max-width: 35rem;*/
    background-color: var(--background1);
    border: 1px solid var(--border3);
    height: 4rem;
    padding: 0 1.2rem 0 1.6rem;
    font-size: 1.3rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

/*.searchBox > button {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    right: 16px;*/
/*}*/
.filter-toggle {
    background-color: var(--background1);
    border: 1px solid var(--border3);
    border-radius: 999px;
    height: 4rem;
    padding: 0 1.6rem;
    font-size: 1.3rem;
    font-weight: 400;
    display: flex;
    justify-content: center;
    align-items: center;
}
.saveOrder {
    height: 4rem;
    padding: 0 1.6rem;
    font-size: 1.3rem;
    color: var(--text4);
    background-color: var(--background1);
    border: 1px solid var(--text4);
}
.uploadExcelBtn {
    color: #fff;
    background-color: var(--green);
}
/* 테이블 요소 */
table {
    width: 100%;
    table-layout: fixed;
    min-width: 90rem;
}
table.giftManageTable {
    min-width: auto;
}
.table {
    width: 100%;
    container-type: inline-size;
}
/*@container (max-width: 90rem) {*/
/*    table {*/
/*        overflow-x: auto;*/
/*    }*/
/*}*/
.table > tr {
    border-bottom: 1px solid var(--border3);
}
/*.table > tr > th, .table > tr > td {*/
/*    flex-shrink: 0;*/
/*}*/
.table > tr > td {
    padding: 2rem 1rem;
    vertical-align: middle;
    box-sizing: border-box;
}
.table > tr > th {
    padding: 2rem 1rem;
    vertical-align: middle;
    box-sizing: border-box;
}
.tableCenter {
    text-align: center;
}
/*td:has(a) {*/
/*    position: relative;*/
/*}*/
td > a {
    display: block;
    width: 24px;
    height: 24px;
    /*position: absolute;*/
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
}
td > a:has(.cartNum) {
    position: relative;
}
.cartNum {
    display: block;
    width: 16px;
    height: 16px;
    line-height: 17px;
    text-align: center;
    border-radius: 50%;
    background-color: #FF4B4B;
    font-size: 8px;
    color: #ffffff;

    position: absolute;
    top: -5px;
    right: -5px;
}
/*.tableImage {*/
/*    position: relative;*/
/*    text-align: center;*/
/*    padding: 20px 25px;*/
/*}*/
/*.tableImage > button > img {*/
/*    width: 80px;*/
/*    border-radius: 5px;*/
/*}*/
.tableImage img {
    width: 8rem;
    aspect-ratio: 1/1;

    border-radius: 0.5rem;
}
.productOrder {
    display: flex;
    justify-content: space-between;
    padding: 0 0.8rem;
    max-width: 7.6rem;
    height: 2.4rem;
    border: 1px solid var(--border3);
    border-radius: 0.3rem;
}
.productOrder > input {
    width: 100%;
}
.productName > span {
    font-size: 1.4rem;
    color: var(--text2);
}
.productName > button {
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: var(--text4);
}
.productNameDetail {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 모달 */
.modalWrap{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: 0.3s;
}
.modalBackground {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-height: 600px;
    overflow-y: scroll;
    background-color: var(--background1);
    border-radius: 12px;
    padding: 24px;
}
.modalHeader {
    display: flex;
    justify-content: space-between;
}
.modalHeader > h3 {
    font-size: 16px;
    font-weight: 500;
}
.modalContent {
    padding-top: 40px;
}
.tagBox {
    width: 430px;
    margin: 0 auto;
}
.tagSearch {
    position: relative;
}
.tagSearch > input {
    width: 100%;
    padding: 11px 16px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid var(--border1);
}
.tagSearch > button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
}
.tags {
    display: flex;
    gap: 8px;
}
.tagName {
    width: calc(100% - 40px);
    border: 1px solid var(--border1);
    border-radius: 5px;
    color: var(--text4);
    padding: 8px;
    background-image: url(../assets/image/icon/next.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 8px) center;
    font-size: 14px;
    font-weight: 400;
}
.removeTag {
    width: 40px;
    height: 40px;
    background-color: var(--background2);
    border-radius: 5px;
}
.addTag {
    width: 40px;
    height: 40px;
    background-color: rgba(87,136,221,0.1);
    border-radius: 5px;
}
.completeBtn {
    width: 180px;
    height: 40px;
    border-radius: 5px;
    margin: 50px auto 0 auto;
}
.rightBottomBtn {
    position: absolute;
    bottom: 50px;
    right: 50px;
}
.rightBottomBtn2 {
    position: absolute;
    bottom: 50px;
    right: 250px;
}
.addedTag, .tagList {
    padding-top: 40px;
}
.addedTag > ul, .tagList > ul {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 태그별 상세 페이지  */
.tagTitle > div {
    display: flex;
    gap: 24px;
    align-items: center;
}
.pageTitle {
    font-size: 24px;
    font-weight: 700;
}
.pageTitleWrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tagTitleEdit {
    position: relative;
    width: 300px;
}
.tagTitleEdit > input {
    width: 100%;
    padding: 11px 20px;
    box-sizing: border-box;
    border-radius: 5px;
}
.tagTitleEdit > button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

/* 태그 리스트(태그 관리) 페이지 */
.tagListFilter {
    display: flex;
}
.tagListFilter > form > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.filter-btn > input {
    display: none;
}
.filter-btn > input[type=checkbox]:checked + label {
    color: var(--blue);
}
.tagActiveBtn {
    text-align: center;
}
.tagActiveBtn > input {
    display: none;
}
.tagActiveBtn > label {
    margin: 0 auto;
    background-color: var(--gray);
    color: #fff;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 400;
    border-radius: 20px;
    white-space: nowrap;
}
.tagActiveBtn > label::after {
    content: "키워드 비사용";
}
.tagActiveBtn > input[type=checkbox]:checked + label {
    background-color: var(--blue);
}
.tagActiveBtn > input[type=checkbox]:checked + label::after {
    content: "키워드 사용";
}

.categoryActiveBtn {
    text-align: center;
}
.categoryActiveBtn > input {
    display: none;
}
.categoryActiveBtn > label {
    margin: 0 auto;
    background-color: var(--gray);
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 20px;
    white-space: nowrap;
}
.categoryActiveBtn > label::after {
    content: "카테고리 비사용";
}
.categoryActiveBtn > input[type=checkbox]:checked + label {
    background-color: var(--blue);
}
.categoryActiveBtn > input[type=checkbox]:checked + label::after {
    content: "카테고리 사용";
}
.categoryImg {
    width: 5rem;
    aspect-ratio: 1/1;
    border-radius: 0.5rem;
    overflow: hidden;
}
.categoryImg > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* 상품 등록 페이지 */
.registerWrap {
    padding: 40px;
}
.registerList {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 70%;
    max-width: 700px;
    margin-bottom: 100px;
}
.registerList > li {
    display: flex;
    align-items: center;
    gap: 4px;
}
.list-title {
    width: 120px;
    flex-shrink: 0;
}
.list-input-wrap {
    width: calc(100% - 120px);
}
.list-input-wrap > input {
    width: 100%;
}
.registerProductLink {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.registerProductLink > input {
    border-radius: 0.5rem;
    width: calc(100% - 9rem);
}
.registerProductLink > a {
    display: block;
    width: 9rem;
    border-radius: 5px;
    font-size: 1.3rem;
    color: var(--text2);
    border: 1px solid var(--border3);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.imgUploadBtn {
    width: 12rem;
    height: 4.2rem;
    background-color: var(--text3);
    color: #fff;
    border-radius: 5px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}
.icon-download {
    width: 2rem;
    height: 2rem;
    background-image: url(../assets/image/icon/upload.svg);
    background-size: 2rem;
}
.optionList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.productOption {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.productOption > .inputBox {
    min-width: 12rem;
}
.addOptionWrap {
    margin-top: 1.2rem;
}
.addOptionBtn {
    background-color: var(--icon);
    color: white;
    border: none;
    width: 120px;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}
.addOptionBtn:hover {
    background-color: #0056b3;
}

.addOptionBtn svg {
    flex-shrink: 0;
}

.addOptionBtn svg {
    width: 20px;
    height: 20px;
    fill: white;
}
.registerProductDetail {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.registerProductDetail > div {
    width: 50%;
}
.detailSectionCode > textarea {
    width: 320px;
    height: 600px;
    max-height: 600px;
    border-radius: 5px;
    box-sizing: border-box;
}
.detailSectionImg {
    padding: 10px;
    border: 1px solid var(--text4);
    border-radius: 5px;

    height: 600px;
    box-sizing: border-box;
    overflow-y: scroll;
}
/* 국민클럽에서 가져오기 */
.productFromKB {
    margin-top: 20px;
}
.productFromKB > li {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border3);
}
.productFromKB > li:last-child {
    border-bottom: 1px solid var(--border3);
}
.productFromKB img {
    width: 80px;
    border-radius: 5px;
}
.KBproductName {
    width: 200px;
}
.KBproductName > span {
    color: var(--text3);
}
.productFromKB button {
    border-radius: 30px;
    padding: 6px 10px;
}

/* 주문 및 결제 관리 */
.orderTypes {
    margin-top: 4rem;
    gap: 1.2rem;
    font-size: 1.6rem;
    width: 100%;
    display: grid;
}
.orderTypes > li {
    height: 8rem;
    padding: 2.4rem;
    background-color: var(--background1);
    border: 1px solid var(--border3);
    box-shadow: 0 0 10px rgba(235,235,235,1);
    border-radius: 0.5rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.orderTypeName {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.orderNumber {
    font-size: 1.6rem;
    text-align: right;
    margin-top: 2rem;
}
.orderNumber > strong {
    font-size: 1.8rem;
}
.excelDownloadBtn {
    display: flex;
    gap: 8px;
    color: #21A366;
}
.orderFilter {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.orderFilterList {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.searchDate {
    height: 4.2rem;
    padding: 0 1.6rem;
    border-radius: 999px;
    background-color: #fff;
    border: 1px solid var(--border3);
    color: var(--text3);
}
.wrapBox.giftFor {
    min-width: 0;
    flex: 1;
}
.giftFor {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.giftFor p.name {
    display: flex;
    font-size: 18px;
    gap: 5px;
}
.giftFor span.loginType {
    position: relative;
    /*display: inline-block;*/
    padding-left: 2rem;
    font-size: 1.4rem;
    color: var(--text3);

    display: flex;
    align-items: center;
}
.giftFor span.loginType::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--gray);
    border-radius: 50%;
}
.wrapBox.giftDeliveryInfo {
    min-width: 0;
    width: 50%;
}
.giftDeliveryInfo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.withLogo {
    display: flex;
    gap: 8px;
    align-items: center;
}
.order-detail-wrap {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}
.wrapBox.giftPayInfo {
    /*min-width: 0;*/
    min-width: 24rem;
    flex: 1;
}
.giftPayInfo > h4 {
    font-size: 18px;
    font-weight: 500;
}
.giftPayInfoList {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.giftPayInfoList > li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3.2rem;
}
.giftPayInfoList > li > p.info {
    text-align: right;
}
.wrapBox.giftGiftInfo {
    min-width: 55%;
    /*max-width: calc(100% - 35.6rem);*/
    flex: 1;
}
.giftGiftInfo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.giftGiftInfo h4 {
    font-size: 18px;
    font-weight: 500;
}
.giftManageTable  tr > th, .giftManageTable  tr > td {
    text-align: left;
    padding: 12px;
}
.giftManageTable > tbody {
    border: 1px solid var(--border3);
    border-radius: 5px;
}
.giftPackBtn {
    display: flex;
    gap: 4px;
    border: 1px solid var(--border3);
    border-radius: 5px;
    padding: 2px 12px;
    align-items: center;
    color: var(--gray);
}
.giftInfoBtn {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 8px;
}
.giftInfoBtn > button {
    padding: 0 16px;
    box-sizing: border-box;
}
.wrapBox.giftRefundInfo {
    min-width: 0;
    width: 350px;
}
.giftRefundInfo > h4 {
    font-size: 18px;
    font-weight: 500;
}
.refundTextarea {
    width: 100%;
    height: 10rem;
    border: 1px solid var(--border3);
    border-radius: 8px;
    margin-top: 12px;
    padding: 12px;
    box-sizing: border-box;
    resize: none;
}
.wrapBox.giftRefundManage {
    min-width: 0;
    width: calc(100% - 350px);
}
.giftRefundManage > h4 {
    font-size: 18px;
    font-weight: 500;
}
/* 로그인 페이지 */
.loginBox {
    width: 700px;
    background-color: var(--background1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 100px 40px;
    box-sizing: border-box;
    border: 1px solid var(--background2);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(235,235,235,0.1);
}
.loginBox h2 {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: flex-end;
    font-size: 20px;
}
.loginBox h2 > img {
    width: 74px;
}
.loginInputWrap {
    width: 80%;
    margin: 0 auto;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.loginInputWrap > div {
    width: 100%;
}
.loginInputWrap p {
    font-size: 16px;
}
.loginBtn {
    margin: 0 auto;
    margin-top: 50px;
    height: 40px;
    line-height: 40px;
    width: 180px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
}

.loginBtnWrap {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.kakaoLogin, .naverLogin {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    border-radius: 9px;
    padding: 5px 20px;
    justify-content: center;
    gap: 1.2rem;
}
.kakaoLogin {
    background-color: #FEE500;
}
.kakaoLogin > span.img {
    display: block;
    width: 20px;
    margin-left: 10px;
}
.kakaoLogin > span.img > svg {
    width: 100%;
}
.kakaoLogin > span.text {
    color: #191600;
}
/* 쿠폰 리스트 페이지 */
.couponListFilter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.couponListFilter > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.couponListFilter > form > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
/*.availableFilterBtn > input {*/
/*    appearance: none;*/
/*}*/
/*.availableFilterBtn > input[type=checkbox]:checked + label {*/
/*    color: var(--blue);*/
/*}*/
/*.availableFilterBtn > label {*/
/*    background-color: #fff;*/
/*    padding: 11px 20px;*/
/*    font-size: 1.3rem;*/
/*    font-weight: 400;*/
/*}*/


.couponTableHeader > tr {
    border-bottom: 1px solid var(--border3);
}
.couponTableHeader > tr > th {
    padding: 12px 0;
}

.couponTableBody > tr > td {
    border-bottom: 1px solid var(--border3);
}
.couponTableBody > tr > td {
    text-align: center;
    padding: 15px 11px 25px 11px;
}
.positionInTable {
    position: relative;
    top: 8px;
    margin: 0 auto;
}

/* 쿠폰 등록 페이지 */
.discountOption > input {
    display: none;
}
.discountOption > label {
    padding: 11px 20px;
    border-radius: 5px;
}
.discountOption > input:checked + label {
    color: var(--blue);
}
.input-option > input {
    display: none;
}
.input-option > label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 4.2rem;
    padding: 0 1.6rem;
    border: 1px solid var(--border3);
    border-radius: 0.5rem;
    font-size: 1.3rem;
    box-sizing: border-box;
}
.input-option > input:checked + label {
    color: var(--blue);
}
.input-pseudo-label {
    position: relative;
}
.input-pseudo-label::after {
    content: '';
    position: absolute;
    right: 1.6rem;
    font-size: 1.3rem;
}
.input-pseudo-label.condition::after {
    content: "원 이상 결제 시";
}
.input-pseudo-label.expire-date::after {
    content: "일까지";
}
/* 회원 관리 */
.memberInfo {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 40px 40px 40px 0;
}
.memberInfo > li:not(:last-child) {
    border-right: 1px solid var(--border1);
}
.memberInfo > li {
    width: 200px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.memberInfo p.name {
    display: flex;
    font-size: 18px;
    gap: 5px;
}
.memberInfo span.loginType {
    position: relative;
    display: inline-block;
    padding-left: 20px;
    font-size: 14px;
    color: var(--gray);
}
.memberInfo span.loginType::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--gray);
    border-radius: 50%;
}
.infoContent {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    width: 200px;
}
.tableWrap {
    margin-top: 50px;
}
.tableTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tableTitle > p {
    font-size: 18px;
}
.tableBg {
    margin-top: 20px;
    background-color: var(--background1);
}
.showListBy {
    border: none;
    background-color: transparent;
}

.orderTableHeader > tr {
    border-bottom: 1px solid var(--border3);
}
.orderTableHeader > tr > th {
    padding: 12px 0;
}

.orderTableBody > tr > td {
    border-bottom: 1px solid var(--border3);
}
.orderTableBody > tr > td {
    text-align: center;
    padding: 15px 11px 25px 11px;
}
.tableDropdown {
    position: relative;
}
.tableDropdown > svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.tableDropdown.active > svg {
    transform: rotate(180deg) translateY(50%);
}
.tableSelect {
    background-color: transparent;
    border: none;
    width: 50px;
}
.giftState {
    display: none;
    padding: 3px 10px;
    border-radius: 3px;
}
.giftState.active {
    display: block;
}
.giftState.gray {
    background-color: #f5f5f5;
    color: #585858;
}
.giftState.green {
    background-color: #F0FFEF;
    color: #1A8B2E;
}
.giftState.blue {
    background-color: #F4F9FF;
    color: #3173C3;
}
.giftState.red {
    background-color: #FFF4F4;
    color: #C33131;
}
.orderState {
    display: flex;
    align-content: center;
    gap: 4px;
}
.orderState > button {
    width: 28px;
    height: 28px;
}
.orderState > .giftState.active {
    display: inline-block;
}
/* 회원 목록 */
.memberListFilter {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: 40px;
}

/* 회원별 쿠폰 */
.memberCoupon {
    display: flex;
    gap: 24px;
    align-items: center;
}
.memberCoupon > button {
    padding: 8px 20px;
    border-radius: 8px;
}
.memberCouponListFilter {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.memberCouponListFilter > form > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.memberCouponTableHeader > tr {
    border-bottom: 1px solid var(--border3);
}
.memberCouponTableHeader > tr > th {
    padding: 12px 0;
}

.memberCouponTableBody > tr > td {
    border-bottom: 1px solid var(--border3);
}
.memberCouponTableBody > tr > td {
    text-align: center;
    padding: 20px 11px;
}
.couponSelect {
    display: block;
    width: 300px;
    margin: 0 auto;
    border-radius: 5px;
}
/* 꾸러미 정보 */
.packageListTable  tr > th, .packageListTable  tr > td {
    text-align: left;
    padding: 24px 40px;
}
.packageListTable > tbody > tr {
    border: 1px solid var(--border3);
}

/* 메세지 템플릿 등록 */
.messageTextarea {
    width: calc(100% - 120px);
    height: 10rem;
    resize: none;
    border: 1px solid var(--border3);
    border-radius: 5px;
    padding: 11px 16px;
    box-sizing: border-box;
}
.pagination {
    margin: 20px 0;
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 이벤트 등록 */
.eventImg {
    height: 50px;
}
.eventImg > img {
    display: block;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}



/* 토글버튼 공통화 */
.toggleBtn .toggle {
    display: none;
}
.toggleBtn .toggle,
.toggleBtn .toggle:after,
.toggleBtn .toggle:before,
.toggleBtn .toggle *,
.toggleBtn .toggle *:after,
.toggleBtn .toggle *:before,
.toggleBtn .toggle+.toggleBtn {
    box-sizing: border-box;
}

.toggleBtn .toggle::selection,
.toggleBtn .toggle:after::selection,
.toggleBtn .toggle:before::selection,
.toggleBtn .toggle *::selection,
.toggleBtn .toggle *:after::selection,
.toggleBtn .toggle *:before::selection,
.toggleBtn .toggle+.toggleBtn::selection {
    background: none;
}

.toggleBtn .toggle+.toggleBtn {
    outline: 0;
    display: block;
    width: 70px;
    height: 26px;
    position: relative;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    margin: 0 auto;
}
.toggleBtn.mainShow .toggle+.toggleBtn {
    width: 80px;
}
.toggleBtn .toggle+.toggleBtn:after,
.toggleBtn .toggle+.toggleBtn:before {
    position: relative;
    display: block;
    content: "";
    width: 20px;
    height: 20px;
}

.toggleBtn .toggle+.toggleBtn:after {
    left: 2px;
}

.toggleBtn .toggle+.toggleBtn:before {
    display: inline;
    position: absolute;
    top: 6px;
}

.toggleBtn .toggle:checked+.toggleBtn:after {
    left: 68%;
    background-color: var(--blue);
}
.toggleBtn.mainShow .toggle:checked+.toggleBtn:after {
    left: 70%;
}
.toggleBtn .toggle2+.toggleBtn {
    background-color: rgba(153, 153,153,0.1);
    border-radius: 20rem;
    padding: 2px;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.toggleBtn .toggle2+.toggleBtn:after {
    border-radius: 2em;
    top: 1px;
    background: var(--gray);
    transition: left 0.3s , padding 0.3s , margin 0.3s ;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.toggleBtn .toggle2+.toggleBtn:before {
    content: "미노출";
    left: 30px;
    color: var(--gray);
    transition: left 0.3s;
    width: auto;
}
.toggleBtn.mainShow .toggle2+.toggleBtn:before {
    content: "메인 켜기"
}
.toggleBtn.available .toggle2+.toggleBtn:before {
    content: "사용"
}
.toggleBtn .toggle2+.toggleBtn:active {
    box-shadow: inset 0 0 0 30px rgba(0, 0, 0, 0.1);
}

.toggleBtn .toggle2+.toggleBtn:active:after {
    padding-right: 0.4em;
}

.toggleBtn .toggle2:checked+.toggleBtn {
    background-color: rgba(87,136,221,0.1);
}

.toggleBtn .toggle2:checked+.toggleBtn:active {
    box-shadow: inset 0 0 0 30px rgba(0, 0, 0, 0.1);
}

.toggleBtn .toggle2:checked+.toggleBtn:active:after {
    margin-left: -0.4em;
}

.toggleBtn .toggle2:checked+.toggleBtn:before {
    content: "노출";
    left: 11px;
    color: var(--blue);
}
.toggleBtn.mainShow .toggle2:checked+.toggleBtn:before {
    content: "메인끄기"
}
.toggleBtn.available .toggle2:checked+.toggleBtn:before {
    content: "미사용"
}

/* 카테고리 하위 카테고리 페이지 */
.categoryDepthWrap {
    padding: 24px 0;
}
.categoryDepth {
    display: flex;
    gap: 8px;
    align-items: center;

    font-size: 24px;
    font-weight: 700;
}
.categoryDepthHome {
    padding: 5px;
}
.categoryDepthHome:hover > svg > path {
    fill: #333;
}
.categoryDepthItems:hover {
    text-decoration: underline;
}


/* 꾸러미 상품 목록 */
/* ========== 상품 목록 모달 ========== */
.item-list-items {
    padding: 2rem 1.2rem;
    border-top: 1px solid #E0E0E0;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}
.item-list-items > .gift-info {
    flex: 1;
    cursor: pointer;
}

.item-list-items .gift-img {
    width: 8rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.gift-brand {
    font-size: 1.2rem;
    color: #8A8A8A;
    overflow: hidden;
    height: 1.4em;
}
.gift-name {
    margin-top: 0.8rem;
    font-size: 1.3rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 줄 수 */
    -webkit-box-orient: vertical;
    height: 2.8em; /* 줄 높이 */
}
.gift-price {
    margin-top: 0.8rem;
    font-size: 1.2rem;
}
.gift-price.discount {
    display: flex;
    gap: 0.8rem;
}
.gift-price.discount > .percent {
    color: #C33131;
}
.gift-price.highlight {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    font-size: 1.8rem;
}
.gift-price.highlight > .percent {
    font-size: 1.2rem;
}