/* ============ WTB LightBox ============ */
.wtb-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}
.wtb-lightbox.open { display: flex;  align-items: center; justify-content: center;}

.wtb-lightbox-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(5px);
}

.wtb-lightbox-inner {
    position: relative;
    max-width: 950px;
    width: calc(100% - 100px);
    max-height: 85vh;
    margin: auto;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    border: 1px solid #26262a;

}

body.wtb-lock { overflow: hidden; }

/* ---- ���O�]AllRegion / Detail �@�Ρ^ ---- */
.wtb-lightbox .gbt-cl-bnm-content {
    position: relative;
    background: #141416;
    color: #eaeaea;
    padding: 56px 56px 40px;
    max-height: 85vh;
    box-sizing: border-box;
    font-family: inherit;
}

.wtb-lightbox .gbt-cl-bnm-close,
.wtb-lightbox .back-icon {
    position: absolute;
    top: 30px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wtb-lightbox .gbt-cl-bnm-close { right: 30px; }
.wtb-lightbox .back-icon        { left: 30px; }

.wtb-lightbox .gbt-cl-bnm-close svg,
.wtb-lightbox .back-icon svg {
    width: 100%;
    height: 100%;
}

.wtb-lightbox .gbt-cl-bnm-header {
    padding: 4px 12px;
    margin-bottom: 20px;
    text-align: center;
}
.wtb-lightbox .gbt-cl-bnm-body-title {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

.wtb-lightbox .shop-online-text {
    margin: 0 0 18px;
    color: #ED5D00;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}
.wtb-lightbox .shop-online-text p { margin: 0; }

/* ---- Region ���|�϶� ---- */
.wtb-lightbox .gbt-cl-bnm-global {
    display: flex;
    flex-direction: column;
    gap: 0;
        max-height: 40dvh;
    overflow: hidden auto;

    padding-inline-end: 8px;
}

.wtb-lightbox .gbt-bnm-global-parent {
    border-bottom: 1px solid #26262a;
}
.wtb-lightbox .gbt-bnm-global-parent:first-child {
    border-top: 1px solid #26262a;
}

.wtb-lightbox .global-parent-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6px;
    cursor: pointer;
    user-select: none;
    color: #eaeaea;
    font-size: 18px;
    font-weight: 700;
}
.wtb-lightbox .global-parent-number {
    margin-left: 6px;
}

.wtb-lightbox .global-parent-icon svg {
    width: 20px;
    height: 20px;
    fill: #eaeaea;
    transition: transform .2s ease;
    transform: rotate(180deg);
}
.wtb-lightbox .gbt-bnm-global-parent.open .global-parent-icon svg {
    transform: rotate(0deg);
}

.wtb-lightbox .global-parent-dropdown {
    display: none;
    padding: 0 0 24px;
}
.wtb-lightbox .gbt-bnm-global-parent.open .global-parent-dropdown { display: block; transition: all ease .25s allow-discrete;}

.wtb-lightbox .global-parent-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.wtb-lightbox .global-parent-dropdown li {
    padding: 4px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.wtb-lightbox .global-parent-dropdown li:hover {
    background: rgba(255, 255, 255, .05);

    color: #fff;
}
.wtb-lightbox .wtb-pane-all li.disabled {
    pointer-events: none;
    opacity: .35;
}

/* ---- Detail Grid�]�ʶR�q���^ ---- */
.wtb-lightbox .gbt-cl-bnm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-block: 24px;
}
.wtb-lightbox .gbt-cl-bnm-grid-item { display: block; }

.wtb-lightbox .grid-item-link {
    display: block;
    background: transparent;
    padding-block: 30px;
    text-align: center;
    text-decoration: none;
    transition: background .15s ease;
}
.wtb-lightbox .grid-item-link:hover {
    background: #2B2C30;
}
.wtb-lightbox .grid-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.wtb-lightbox .grid-item-content img {
    width: 100%;
    height: 50px;
    object-fit: contain;
}
.wtb-lightbox .item-content-text {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    word-break: break-word;
}

/* ---- 分隔線 / 備註 ---- */
.wtb-lightbox .gbt-cl-bnm-divider {
    height: 1px;
    background: #2a2a2c;
    margin: 20px 0 12px;
}

/* ---- More Ways to Buy 按鈕 ---- */
.wtb-lightbox .wtb-more-ways-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0 16px;
}

.wtb-lightbox .wtb-btn-more-ways {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 20px;
    height: 44px;
    box-sizing: border-box;
    border: 1px solid #555555;
    border-radius: 5px;
    background: transparent;
    color: #eeeeee;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wtb-lightbox .wtb-btn-more-ways:hover {
    background: #252525;
    border-color: #555555;
    color: #eeeeee;
}

.wtb-lightbox .wtb-btn-more-ways .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.wtb-lightbox .wtb-btn-more-ways .btn-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.wtb-lightbox .gbt-cl-bnm-note {
    color: #9CA3AF;
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}
/* ---- ��� ---- */
@media (max-width: 960px) {
    .wtb-lightbox .gbt-cl-bnm-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ---- ��� ---- */
@media (max-width: 640px) {
    .wtb-lightbox-inner {
        width: calc(100% - 16px);
        margin: 3vh auto;
    }
    .wtb-lightbox .gbt-cl-bnm-content { padding: 40px 18px 20px; }
    .wtb-lightbox .global-parent-dropdown ul { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .wtb-lightbox .gbt-cl-bnm-grid { grid-template-columns: repeat(2, 1fr); }
}