/*
 * 상품권몰 페이지 (portal/giftcard 참조)
 */
.giftcard_wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 1080px;
    margin: 20px auto;
    padding: 0;
    box-sizing: border-box;
}

.giftcard_aside {
    flex-shrink: 0;
    width: 200px;
}

.giftcard_aside .aside_box {
    background: var(--color-white);
    border: 1px solid var(--color-bluegray2, #e0e0e0);
    border-radius: 10px;
    overflow: hidden;
}

.giftcard_aside .nav_subject {
    padding: 16px 20px;
    background: linear-gradient(135deg, #fbfbfb 0%, #ffffff 100%);
}

.giftcard_aside .nav_subject a.giftcard {
    /* color: var(--color-white); */
    color: #2e2e2e;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.giftcard_aside .nav {
    padding: 12px 0;
}

.giftcard_aside .nav_title {
    padding: 8px 20px;
    font-size: 17px;
    font-weight: bold;
    color: var(--color-gray11, #2e2e2e);
}

.giftcard_aside .nav_title a {
    color: var(--color-gray11);
    text-decoration: none;
}

.giftcard_aside .nav_title a:hover {
    color: #159EFD;
}

.giftcard_aside .nav_sub {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
}

.giftcard_aside .nav_sub li {
    margin: 0;
}

.giftcard_aside .nav_sub a {
    display: block;
    padding: 6px 20px 6px 28px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
}

.giftcard_aside .nav_sub a:hover {
    color: #159EFD;
    background: #f5f9ff;
}

.giftcard_aside .nav_sub .nav_badge {
    vertical-align: top;
    padding: 1px 5px 0 3px;
    margin-left: 2px;
    font-size: 11px;
    color: #fff;
    border-radius: 5px;
    background-color: #1DB8B4;
}

.giftcard_content {
    flex: 1;
    min-width: 0;
    margin-top: -20px;
}

.carousel_images { border-radius: 10px; }

.giftcard_list { overflow: hidden; width: 100%; max-width: 820px; }
.giftcard_list ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.giftcard_list li {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 190px;
    border: 1px solid #E0E0E0;
    background-color: #FFFFFF;
    border-radius: 10px;
}
.giftcard_list .active:hover { border: 1px solid #159EFD; }
.giftcard_list .active:last-child { margin-bottom: 0; }
.giftcard_list a {
    padding: 35px 21px;
    display: inline-block;
    width: 100%;
    height: 100%;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.giftcard_list a img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    vertical-align: middle;
}
.giftcard_list a .gift_text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 160px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-gray11, #2e2e2e);
}
.giftcard_list .flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 65px;
    height: 30px;
    border-radius: 10px 0 10px 0;
    font-size: 15px;
    color: var(--color-white);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}
.giftcard_list .flag.new { background-color: #1db8b4; }
.giftcard_list .flag.discount { background-color: var(--color-red7, #f03f52); }
.giftcard_list .cant_calture {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background-color: var(--color-red5, #d32f2f);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1.2;
    padding: 8px;
}
.giftcard_list li.empty {
    grid-column: 1 / -1;
    height: auto;
    padding: 40px 20px;
    text-align: center;
    color: #777;
}

.g_subtitle {
    margin: 32px 0 16px;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-gray11, #2e2e2e);
}

.use_guide {
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    min-height: 160px;
    padding: 28px 10px 22px;
    background-color: var(--color-white);
    border: 1px solid var(--color-bluegray2, #e0e0e0);
    border-radius: 10px;
    margin: 0 0 24px;
    list-style: none;
}
.use_guide li {
    float: left;
    width: 12%;
    font-size: 13px;
    text-align: center;
    color: var(--color-gray11, #555);
}
.use_guide .other_wd { width: 15%; }
.use_guide li .SpGiftGroup {
    display: inline-block;
    width: 70px;
    height: 54px;
    margin-bottom: 10px;
    background-image: url("https://img1.itemmania.com/new_images/portal/gift/sp_giftcard_20251204.png");
    background-repeat: no-repeat;
    background-size: 478px 239px;
}
.use_guide li .gift_guide1 { background-position: 0 -8px; }
.use_guide li .gift_guide2 { background-position: -60px -8px; }
.use_guide li .gift_guide3 { background-position: -120px -8px; }
.use_guide li .gift_guide4 { background-position: -180px -8px; }
.use_guide .arrow {
    width: 35px;
    height: 14px;
    background-position: 0 -130px;
}
.use_guide li span { display: block; height: 70px; text-align: center; }

.g_notice_new {
    padding: 20px 24px;
    background-color: #F5F7F8;
    border-radius: 10px;
}
.g_notice_new .notice_title {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-gray11, #2e2e2e);
}
.g_notice_new .notice_cont.g_list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.g_notice_new .notice_cont.g_list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
}
.g_notice_new .notice_cont.g_list li::before {
    content: "-";
    position: absolute;
    left: 0;
}

/* ---------- 상품권몰 상세 페이지 (sub_index 참조) ---------- */
.g_title_blue {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-gray10, #2e2e2e);
}
.gray_box {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 1px solid var(--color-bluegray2, #e0e0e0);
    border-radius: 10px;
    background-color: #f5f7f8;
    overflow: hidden;
}
.gray_box .img_area {
    position: relative;
    flex-shrink: 0;
    margin-right: 30px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 270px;
}
.gray_box .ribbon {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0;
    display: flex;
}
.gray_box .ribbon .flag {
    width: 80px;
    height: 30px;
    border-radius: 10px 0 10px 0;
    font-size: 15px;
    color: #fff;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gray_box .ribbon .flag.hot { background-color: #9675fa; margin-right: 5px; }
.gray_box .ribbon .flag.new { background-color: #1db8b4; margin-right: 5px; }
.gray_box .ribbon .flag.discount { background-color: var(--color-red7, #f03f52); }
.gray_box .img_area img {
    display: block;
    width: 270px;
    aspect-ratio: 27 / 28;
    object-fit: contain;
    object-position: center;
}
.gray_box .gift_txt {
    flex: 1;
    min-width: 0;
    padding-top: 30px;
    padding-right: 24px;
    padding-bottom: 24px;
}
.gray_box .gift_txt_title {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-gray10, #2e2e2e);
}
.gray_box .gift_txt_cont {
    min-height: 100px;
    padding-top: 15px;
    font-size: 16px;
    line-height: 170%;
    color: var(--color-gray8, #555);
    white-space: pre-line;
}
.g_btn_new {
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
}
.g_btn_new a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-sizing: border-box;
}
.g_btn_new .btn_info {
    border: 1px solid var(--color-bluegray5, #999);
    color: var(--color-gray10, #2e2e2e);
    background-color: #fff;
}
.g_btn_new .btn_list {
    background-color: var(--color-gray10, #2e2e2e);
    color: #fff;
}
.g_btn_new .btn_buy {
    background-color: #159EFD;
    color: #fff;
    border: none;
}
.g_btn_new .btn_info:hover { opacity: 0.9; }
.g_btn_new .btn_list:hover { opacity: 0.9; }
.g_btn_new .btn_buy:hover { opacity: 0.9; }

.g_subtitle_blue {
    margin: 28px 0 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-gray11, #2e2e2e);
}
.g_subtitle_blue .g_left { font-size: 18px; font-weight: bold; }

.g_big_box1 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 30px 24px;
    margin-top: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    font-size: 14px;
    color: #6e6e6e;
    list-style: none;
}
.g_big_box1 li {
    text-align: center;
    font-size: 14px;
    color: var(--color-gray11, #2e2e2e);
}
.g_big_box1 li.self_top { align-self: flex-start; }
.g_big_box1 li span {
    display: block;
    width: 70px;
    height: 54px;
    margin: 0 auto 10px;
    background-image: url("https://img1.itemmania.com/new_images/portal/gift/sp_giftcard_20251204.png");
    background-repeat: no-repeat;
    background-size: 478px 239px;
}
.g_big_box1 .icon_default1 { background-position: 0 -8px; }
.g_big_box1 .icon_default2 { background-position: -60px -8px; }
.g_big_box1 .icon_default3 { background-position: -120px -8px; }
.g_big_box1 .icon_default4 { background-position: -180px -8px; }
.g_big_box1 .arrow {
    width: 35px;
    height: 14px;
    background-position: 0 -130px;
    flex-shrink: 0;
}
.giftcard_detail .giftcard_aside .nav_sub a.on_active {
    color: #159EFD;
    font-weight: 600;
    background: #f0f8ff;
}

/* 상품권 상세: 게임 할인충전과 동일 2단(옵션 + 결제) 레이아웃 */
.giftcard_buy_flex {
    width: 100%;
    align-items: flex-start;
    margin-top: 28px;
    flex-wrap: wrap;
}
.giftcard_buy_flex .payment_info {
    margin-top: 0;
}
@media (max-width: 1024px) {
    .giftcard_buy_flex {
        flex-direction: column;
    }
    .giftcard_buy_flex .payment_info {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 24px;
    }
}

/* 금액선택(수량 스테퍼) — 상품권몰 */
.giftcard_amount_panel_wrap {
    margin-bottom: 40px;
}
.giftcard_amount_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}
.giftcard_amount_heading {
    margin: 0;
    font-size: 20px;
    color: #2e2e2e;
    font-weight: bold;
}
.giftcard_amount_reset {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
}
.giftcard_amount_reset:active {
    background: #f5f5f5;
}
.giftcard_amount_list {
    border: 1px solid #d0d8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.giftcard_amount_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5eaf2;
    box-sizing: border-box;
}
.giftcard_amount_row:last-child {
    border-bottom: none;
}
.giftcard_amount_row:nth-child(odd) {
    background: #fff;
}
.giftcard_amount_row:nth-child(even) {
    background: #f0f7ff;
}
.giftcard_amount_label {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2e2e2e;
    text-align: left;
}
.giftcard_amount_controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.giftcard_stepper {
    display: flex;
    align-items: center;
    border: 1px solid #c5ced9;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.giftcard_step_btn {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    border: none;
    background: #f8fafc;
    color: #333;
    cursor: pointer;
}
.giftcard_step_btn:disabled {
    color: #bbb;
    cursor: default;
    background: #f0f0f0;
}
.giftcard_step_btn:not(:disabled):active {
    background: #e8eef5;
}
.giftcard_step_val {
    min-width: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #111;
    padding: 0 6px;
}
.giftcard_quick_add {
    min-width: 48px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #6eb8ff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.giftcard_quick_add:active {
    opacity: 0.9;
}
.giftcard_amount_empty {
    padding: 20px;
    text-align: center;
    color: #666;
    border: 1px dashed #ccc;
    border-radius: 10px;
}
.payment_info .price_wrapper.giftcard_summary_line span#goods_name {
    font-size: 14px;
    white-space: normal;
    text-align: right;
    line-height: 1.35;
}
