.iconBtn {
    display: block;
    width: 40px;
    height: 40px;
    padding: 0px;
    box-sizing: border-box;
}

.iconBtn img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.iconBtn.light img {
    background: var(--white);
    background: rgba(255, 255, 255, 0.4);
}

.iconBtn.deep img {
    background: var(--gray4);
    background: rgba(142, 142, 142, 0.4);
}

.iconBtn:hover img {
    background: var(--brandPink2);
}

button {
    border: none;
    font-family: inherit;
    font-size: inherit;
    box-sizing: content-box;
}

.btn,
input[type=submit] {
    min-width: calc(4em + 40px);
    max-width: calc(10em + 40px);
    text-align: center;
    padding: 8px 20px;
    box-sizing: border-box;
    border-radius: 36px;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    line-height: calc(1em + 8px);
    text-decoration: none;
}

.btn.secondary,
input[type=submit].secondary {
    min-width: calc(4em + 32px);
    max-width: calc(10em + 32px);
    padding: 8px 16px;
    font-size: 14px;
    line-height: calc(1em + 4px);
}

.btn.bgColor {
    background: var(--brandPink1);
    color: var(--white);
    border: none;
    box-shadow: none;
}

.btn.bgColor:hover {
    background: var(--brandPink2);
}

.btn.outLine {
    background: var(--white);
    color: var(--brandPink1);
    border: 1px solid var(--brandPink1);
}

.btn.outLine:hover {
    background: var(--brandPink1);
    color: var(--white);
}

.btn.disable {
    background-color: var(--gray4);
    color: var(--white);
    border: none;
    cursor: auto;
}

.btn .withIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn .withIcon img {
    display: block;
    width: 20px;
    height: 20px;
}

.btn.outLine .withIcon img {
    color: var(--white);
    filter: brightness(0) saturate(100%) invert(59%) sepia(24%) saturate(7124%) hue-rotate(326deg) brightness(103%) contrast(90%);
}

.btn.outLine:hover .withIcon img {
    filter: none;
}


/* 大小網按鈕共存 mobile/wideSite */

.btnBox {
    display: flex;
}


/* 按鈕群組 - 上下排 */

.btnGroup {
    display: grid;
    justify-content: center;
    align-content: center;
    gap: 16px;
    text-align: center;
}


/* 按鈕群組 - 左右排 */

.btnGroup.inline {
    display: flex;
}


/* Tab / 頁籤 */

.tab {
    min-width: 2em;
    text-align: center;
    padding: 4px 16px;
    border-radius: 24px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    line-height: calc(1em + 4px);
    text-decoration: none;
    cursor: pointer;
    background-color: var(--white);
    color: var(--gray3);
}

.tabBox .tab,
.tabRowBox .tab {
    background-color: var(--gray7);
}

.tabLeader {
    min-width: 2em;
    text-align: center;
    padding: 8px 24px;
    border-radius: 32px;
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    line-height: calc(1em + 8px);
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    color: var(--gray3);
}

.tab:hover,
.tabLeader:hover {
    background: var(--brandPink1);
    color: var(--white);
}

.tab.selected,
.tabLeader.selected {
    background: var(--brandPink1);
    color: var(--white);
}


/* tab群組 */

.tabBox {
    display: flex;
    gap: 12px;
}

.tabRowBox.owl-carousel {
    width: auto;
}

.tabRowBox.owl-carousel .owl-stage-outer {
    overflow: visible;
    /* 需配合外層.wrap overflow: hidden; */
}

.tabLeaderBox {
    width: max-content;
}

.tabLeaderBox.tabLeaderInBox,
.tabLeaderBox.tabLeaderRowBox.owl-carousel .owl-stage-outer .owl-stage {
    background-color: var(--white);
    border: 1px solid var(--gray6);
    border-radius: 32px;
}

.tabLeaderBox.tabLeaderInBox {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, auto));
}

.tabLeaderBox.tabLeaderRowBox.owl-carousel {
    border: none;
    border-radius: initial;
    width: auto;
}


/* carousel 視覺調整 */

.tabLeaderBox.tabLeaderRowBox.owl-carousel .owl-stage-outer {
    overflow: visible;
    /* 需配合外層.wrap overflow: hidden; */
}

@media screen and (min-width: 1024px) {
    .iconBtn {
        width: 64px;
        height: 64px;
        padding: 6px;
    }
    .btn,
    input[type=submit] {
        min-width: calc(4em + 48px);
        max-width: calc(10em + 48px);
        padding: 12px 24px;
        font-size: 18px;
    }
    .btn.secondary,
    input[type=submit].secondary {
        min-width: calc(4em + 48px);
        max-width: calc(10em + 48px);
        padding: 8px 24px;
        font-size: 16px;
        line-height: calc(1em + 8px);
    }
    /* Tab */
    .tab {
        font-size: 16px;
        line-height: calc(1em + 8px);
    }
    .tabLeader {
        min-width: 9em;
        padding: 8px 32px;
        font-size: 24px;
        line-height: calc(1em + 12px);
    }
    /* carousel 視覺調整 */
    .tabLeaderBox.tabLeaderRowBox.owl-carousel .owl-stage-outer {
        overflow: hidden;
    }
}