:root {
    --gutter-md: 12px;
    --button-curve: 24px;
    --fds-animation-function: cubic-bezier(0.32, 0.72, 0, 1);
    --fds-animation-duration: 200ms;
}

#promo_wrap ol {
    list-style-type: decimal;
    padding-left: 35px;
    line-height: 18px;
}

table.myTable {
    border-collapse: collapse;
}

table.myTable td {
    border: 1px solid yellowgreen;
    padding: 5px;
}

table.myTable th {
    border: 1px solid yellowgreen;
    padding: 5px;
    background-color: #089701;
    color: #fff;
}

#promo_wrap img.daftar-skrg {
    width: 100px;
    margin-bottom: -14px;
}

.promotion-wrap {
    margin: -94px 0 0;
    position: relative;
    background: url("../images/promotion/promotion_bg.jpg") 50% 0 no-repeat #1d0002;
    width: auto;
    min-width: 990px;
    height: auto;
    padding: 124px 0 0;
}

.promo-content {
    background: rgb(28, 28, 30) !important;
    height: auto;
    min-height: 800px;
    text-align: left;
    border-radius: 16px;
}

.promo-content-wrap {
    padding: 18px;
}

.promo-content h2 {
    color: #ffef63;
    padding: 10px 0;
    font-size: 1.5rem;
}

.promo-header {
    background: #590100;
    height: 40px;
    width: 100%;
    color: #ffef63;
    text-align: left;
    padding: 12px;
    border-radius: 16px 16px 0px 0px;
    box-sizing: border-box;
}

.promo-banner {
    width: 955px;
    height: 316px;
    display: block;
    border-radius: 24px;
}

.promo-info-wrap {
    background: rgb(44, 44, 46) !important;
    width: 955px;
    height: auto;
    padding: 22px;
    color: #b6b6b6;
    margin: 10px 0;
    font-size: 14px;
    display: none;
    border-radius: 24px;
    box-sizing: border-box;
}

.promotion-wrap .promotion-filter-section {
    width: 100%;
    max-width: 1366px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 20px;
}

.promotion-wrap .promotion-filter-section .section-filter {
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 16px;
    padding-right: 16px;
}

.promotion-wrap .promotion-filter-section .section-filter-pill-reward {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.promotion-wrap .promotion-filter-section .section-filter-pill-reward .button {
    width: auto;
    min-width: 70px;
}

@media (max-width: 734px) {
    .promotion-wrap .promotion-filter-section .section-filter {
        padding-top: 16px;
        padding-bottom: 16px;
        padding-left: 0px;
        padding-right: 0px;
    }

    .promotion-wrap .promotion-filter-section .section-filter-pill-reward {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        white-space: nowrap;
        scrollbar-width: none;
        scroll-behavior: smooth;
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

.promotion-wrap #btn-promo-join {
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.022em;
    height: 44px;
    line-height: normal;
    padding-left: var(--gutter-md);
    padding-right: var(--gutter-md);
    background-color: rgb(249, 206, 55);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: var(--button-curve);
    transition: all var(--fds-animation-function) var(--fds-animation-duration);
    width: fit-content;
    min-width: 135px;
    text-decoration: none;
    vertical-align: middle;
    display: inline-flex;
    display: <?php echo $join_btn ?>;
}

.promotion-wrap #btn-promo-info {
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.022em;
    height: 44px;
    line-height: normal;
    padding-left: var(--gutter-md);
    padding-right: var(--gutter-md);
    background-color: rgb(108, 108, 115);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: var(--button-curve);
    transition: all var(--fds-animation-function) var(--fds-animation-duration);
    width: fit-content;
    min-width: 135px;
    cursor: pointer;
    margin: 0 0 0 5px;
    vertical-align: middle;
    display: inline-flex;
}


.button {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    width: auto;
    min-width: 70px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.022em;
    white-space: nowrap;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding-left: var(--gutter-md);
    padding-right: var(--gutter-md);
    border: none;
    border-radius: 999px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.button:active {
    transform: scale(0.9);
    transition: transform 0.05s ease;
}

.button-medium {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
}

/* 按鈕：選中狀態 (實心) */
.button-filled {
    background-color: rgb(249, 206, 55);
    color: rgb(0, 0, 0);
}

.button-filled:focus,
.button-filled:hover,
.button-filled:active {
    background-color: rgb(255, 198, 0);
}

.button.button-label-filled {
    color: rgb(0, 0, 0);
}

.button-tinted {
    background-color: rgba(249, 206, 55, 0.2);
}

.button-tinted:focus,
.button-tinted:hover,
.button-tinted:active {
    background-color: rgba(249, 206, 55, 0.25);
    border-color: rgba(249, 206, 55, 0.5);
}

.button.button-label-tinted {
    color: rgb(249, 206, 55);
}

@keyframes tabClickPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.tab-clicked {
    animation: tabClickPulse 0.3s ease-out;
}

.promotion-wrap .card-prediction {
    transition: transform var(--fds-animation-duration) var(--fds-animation-function),
        opacity var(--fds-animation-duration) var(--fds-animation-function);
}

.promotion-wrap .card-prediction.show {
    -webkit-transform: scale(1) !important;
    transform: scale(1) !important;
    opacity: 1;
}

.promotion-wrap .card-prediction.hide {
    -webkit-transform: scale(0.8) !important;
    transform: scale(0.8) !important;
    opacity: 0;
}