﻿@charset "UTF-8";
/* *************************************
//
//   KGIB-Component -- Popup Tab
//   -> 凱基銀行 - Popup Tab
//
//   00.Global
//   01.Popup Tab
//
//
//
// ************************************/
/* -------------------------------------
//   0.Global
// -----------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap");
/* -------------------------------------
//   1.Popup Tab
// -----------------------------------*/
.popup-tab-overlay {
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1036;
    pointer-events: none;
}

@media (max-width: 768px) {
    .popup-tab-overlay:has(~ .kgisOther001) .popup-tab-box--sm-bottom {
        bottom: 80px;
    }
}

/* 隱藏整個彈窗 */
.popup-tab-wrapper.popup-hidden {
    display: none;
}

/* 隱藏特定 box */
.popup-tab-box.popup-box-hidden {
    display: none;
}

/* 基於滾動深度隱藏 */
.popup-tab-box.popup-depth-hidden {
    display: none;
}

.popup-tab-box {
    position: fixed;
    pointer-events: auto;
}

@media (min-width: 1200px) {
    .popup-tab-box--sm {
        display: none;
    }

    .popup-tab-box--xl-left-center {
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .popup-tab-box--xl-right-bottom {
        right: 20px;
        bottom: 90px;
        transform: translateY(0);
    }

    .popup-tab-box--xl-bottom-full {
        left: 0;
        bottom: 0;
        width: 100%;
    }

    .popup-tab-box--xl-bottom {
        left: 50%;
        bottom: 0;
        max-width: 80%;
        transform: translateX(-50%);
    }
}

@media (max-width: 1199.98px) {
    .popup-tab-box--xl {
        display: none;
    }

    .popup-tab-box--sm-left {
        left: 16px;
        bottom: 0;
        transform: translateY(-110px);
    }

    .popup-tab-box--sm-right {
        right: 16px;
        bottom: 0;
        transform: translateY(-110px);
    }

    .popup-tab-box--sm-bottom {
        padding: 0 12px;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100%;
        display: flex;
        justify-content: center;
    }

        .popup-tab-box--sm-bottom:has(.popup-tab--default) {
            padding: 0;
        }
}

.popup-tab {
    display: flex;
    font-size: 1rem;
}

.popup-tab-box--sm-left .popup-tab + .popup-tab, .popup-tab-box--sm-right .popup-tab + .popup-tab, .popup-tab-box--xl-left-center .popup-tab + .popup-tab, .popup-tab-box--xl-right-bottom .popup-tab + .popup-tab {
    margin-top: 4px;
}

.popup-tab__icon img {
    display: block;
    width: 20px;
    height: auto;
    max-height: 16px;
}

.popup-tab__text {
    overflow: hidden;
}

.popup-tab__text--center {
    margin: auto;
    text-align: center;
}

.popup-tab__text--left {
    margin-right: auto;
    text-align: left;
}

.popup-tab__text--right {
    margin-left: auto;
    text-align: end;
}

.popup-tab-box--vertical .popup-tab {
    width: 40px;
    max-height: 180px;
    padding: 8px 10px;
    align-items: center;
    background-color: #04327A;
    color: white;
    letter-spacing: 2px;
    text-orientation: upright;
    writing-mode: vertical-rl;
    overflow: hidden;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .popup-tab-box--vertical .popup-tab:hover {
        background-color: #041C43;
        color: white;
        text-decoration: none;
    }

    .popup-tab-box--vertical .popup-tab:not([href]) {
        cursor: default;
    }

        .popup-tab-box--vertical .popup-tab:not([href]):hover {
            background-color: #04327A;
            color: white;
            text-decoration: none;
        }

.popup-tab-box--vertical .popup-tab__icon:has(img) {
    margin-bottom: 0.25rem;
}

    .popup-tab-box--vertical .popup-tab__icon:has(img) + .popup-tab__text {
        max-height: 144px;
    }

.popup-tab-box--vertical .popup-tab__text {
    white-space: nowrap;
    max-height: 162px;
}

.popup-tab-box--horizontal .popup-tab {
    max-width: 200px;
    max-height: 72px;
    padding: 12px 20px;
    background-color: #04327A;
    color: white;
    display: flex;
    align-items: center;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .popup-tab-box--horizontal .popup-tab:hover {
        background-color: #041C43;
        color: white;
        text-decoration: none;
    }

    .popup-tab-box--horizontal .popup-tab:not([href]) {
        cursor: default;
    }

        .popup-tab-box--horizontal .popup-tab:not([href]):hover {
            background-color: #04327A;
            color: white;
            text-decoration: none;
        }

    .popup-tab-box--horizontal .popup-tab .popup-tab__icon:has(img) {
        margin-right: 0.25rem;
    }

    .popup-tab-box--horizontal .popup-tab .popup-tab__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 1.5;
    }

@media (max-width: 1199.98px) {
    .popup-tab-box--horizontal.popup-tab-box--sm-left .popup-tab__text, .popup-tab-box--horizontal.popup-tab-box--sm-right .popup-tab__text {
        display: block;
        text-align: center;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

.popup-tab--default {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 10px 20px;
    background-color: #fff;
    color: #041C43;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .popup-tab--default:hover {
        background-color: #EBF7FE;
        color: #041C43;
        text-decoration: none;
    }

    .popup-tab--default .popup-tab__text {
        text-align: center;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.popup-tab--rounded {
    border-radius: 10px;
}

.popup-tab-box--vertical .popup-tab--elliptical {
    border-radius: 60px;
}

.popup-tab-box--horizontal .popup-tab--elliptical {
    border-radius: 36px;
}

@media (max-width: 1199.98px) {
    .popup-tab-box--horizontal .popup-tab--elliptical {
        border-radius: 72px;
    }
}

.popup-tab-box--xl-left-center.popup-tab-box--horizontal .popup-tab--elliptical:last-child,
.popup-tab-box--sm-left.popup-tab-box--horizontal .popup-tab--elliptical:last-child {
    border-radius: 30px 30px 30px 0;
}

.popup-tab-box--xl-right-bottom.popup-tab-box--horizontal .popup-tab--elliptical:last-child,
.popup-tab-box--sm-right.popup-tab-box--horizontal .popup-tab--elliptical:last-child {
    border-radius: 30px 30px 0 30px;
}

@media (max-width: 1199.98px) {
    .popup-tab-box--sm-bottom.popup-tab-box--horizontal {
        flex-grow: 0;
        flex-shrink: 0;
        padding: 12px 12px 0 12px;
        font-size: 0.9375em;
    }

        .popup-tab-box--sm-bottom.popup-tab-box--horizontal .popup-tab {
            font-size: 1em;
            padding: 12px 8px;
        }

        .popup-tab-box--sm-bottom.popup-tab-box--horizontal:has(.popup-tab:nth-last-child(1)) {
            width: auto;
        }

        .popup-tab-box--sm-bottom.popup-tab-box--horizontal:has(.popup-tab:nth-last-child(2)) {
            width: 100%;
        }

            .popup-tab-box--sm-bottom.popup-tab-box--horizontal:has(.popup-tab:nth-last-child(2)) .popup-tab {
                flex-basis: 50%;
                max-width: 50%;
            }

                .popup-tab-box--sm-bottom.popup-tab-box--horizontal:has(.popup-tab:nth-last-child(2)) .popup-tab + .popup-tab {
                    margin-left: 0.5rem;
                }

        .popup-tab-box--sm-bottom.popup-tab-box--horizontal:has(.popup-tab:nth-last-child(3)) {
            width: 100%;
        }

            .popup-tab-box--sm-bottom.popup-tab-box--horizontal:has(.popup-tab:nth-last-child(3)) .popup-tab {
                flex-basis: 33.33%;
                max-width: 33.33%;
            }

                .popup-tab-box--sm-bottom.popup-tab-box--horizontal:has(.popup-tab:nth-last-child(3)) .popup-tab + .popup-tab {
                    margin-left: 0.5rem;
                }
}

.popup-tab__close {
    display: block;
    border-color: transparent;
    -o-border-image: initial;
    border-image: initial;
    width: 24px;
    height: 24px;
    padding: 0;
    position: absolute;
    top: -12px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    transition: background-color 0.15s ease-in-out;
}

.popup-tab-box--xl-bottom-full .popup-tab__close {
    right: 8px;
}

.popup-tab-box--xl-bottom .popup-tab__close, .popup-tab-box--xl-left-center .popup-tab__close, .popup-tab-box--xl-right-bottom .popup-tab__close, .popup-tab-box--sm-left .popup-tab__close, .popup-tab-box--sm-right .popup-tab__close {
    right: -12px;
}

.popup-tab-box--sm-bottom .popup-tab__close {
    right: 0px;
    top: 0px;
}

.popup-tab__close:hover::after, .popup-tab__close:hover::before, .popup-tab__close:not(:disabled):not(.disabled):focus::after, .popup-tab__close:not(:disabled):not(.disabled):focus::before, .popup-tab__close:not(:disabled):not(.disabled):hover::after, .popup-tab__close:not(:disabled):not(.disabled):hover::before {
    background-color: white;
}

.popup-tab__close::after, .popup-tab__close::before {
    position: absolute;
    margin: auto 0;
    top: 50%;
    /* 相對於父元素垂直居中 */
    left: 50%;
    /* 相對於父元素水平居中 */
    transform: translate(-50%, -50%) rotate(-45deg);
    /* 結合平移和旋轉 */
    content: " ";
    height: 10px;
    width: 2px;
    background-color: #fff;
    transition: opacity 0.5s ease-in-out, transform 0.45s ease-in-out;
}

.popup-tab__close::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.popup-tab__close::after {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.popup-tab__close:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.65);
}
/*# sourceMappingURL=popup-tab.css.map */
