#thankful {
    background-image: url('/eshop/2026_thankful/images/bg.jpg');
    background-repeat: repeat;
    color: #7E343C;
}
#direct_checkout .copy-btn, #direct_checkout .btn_ws {
    display: none;
}
#direct_checkout {
   margin-top: 118px;
}
#checkout {
   margin: 100px auto 1em; 
   display: none;
}

#loading {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: rgb(255, 255, 255);
    z-index: 9999;
}

.loading-img {
    width: 100px;
    display: flex;
    justify-content: center;
    transition: all 250ms;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.loading-deco {
    position: absolute;
}

.loading-deco {
    animation: spin 4s linear infinite;
}
.font_highlight {
    color: #AA173A;
    font-weight: bold;
}

#thankful .logo-img {
    padding-top: unset;
}

.wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 50px auto;
    padding: 0 2%;
}

.thankful_container {
    background-color: #FFFEF7;
    padding-top: 20px;
    padding-bottom: 50px;
}

.section_banner_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5%;
}

.banner_img {
    transform: translateX(-80px) scale(115%);
}

.content {
    background-color: #FCF0F1;
    border-radius: 39px;
    margin: 0 5%;
    padding: 4%;
}

.title {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.info_card {
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    border-radius: 30px;
    padding: 30px 100px;
    margin: 30px 30px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 30px;
    line-height: 1.6em;
    text-align: center;
    gap: 28px;
    position: relative;
}

.info_card::before {
    content: '';
    background: url('/eshop/2026_thankful/images/deco.png') no-repeat center / cover;
    width: 170px;
    aspect-ratio: 1/1;
    position: absolute;
    left: -40px;
    top: -30px;
}
.buy_now_btn,
.thankful_btn,
.thankful_highlight {
    background-color: #CA2524;
    color: white;
    padding: 8px 32px;
    border-radius: 50px;
    border: unset;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
    transition: all 300ms;
}

.buy_now_btn:hover,
.thankful_btn:hover,
.thankful_highlight:hover  {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    background-color: #e44d4d;
    color: white;
}

.info_card .thankful_highlight {
    font-size: 40px;
    padding: 18px 45px;
    margin-bottom: -70px;
    position: relative;
}

.info_card .thankful_highlight::before {
    content: '';
    background: url('/eshop/2026_thankful/images/deco_arrow.png') no-repeat center / cover;
    width: 70px;
    aspect-ratio: 1/1;
    position: absolute;
    right: 100%;
    top: -40px;
}

.info_card .thankful_highlight::after {
    content: '';
    background: url('/eshop/2026_thankful/images/deco_heart.png') no-repeat center / cover;
    width: 57px;
    aspect-ratio: 52/63;
    position: absolute;
    left: 105%;
    top: -60px;
}

#shared_register_form {
    width: 100%;
}

.cards_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cards_row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card {
    margin-bottom: 25px;
}
.card.is_ended .card_date_gp {
    margin-bottom: -5px;
}

.ended_btn {
    opacity: 0.8;
    filter: grayscale(1);
}
.card.is_ended .card_date {
    border-radius: 40px;
    background-color: white;
}
.pd_img {
    width: 100%;
    max-width: 186px;
    position: relative;
    margin: 0 auto;
}
[id="2026TF-Debug"] .pd_img , [id="2026TF-VIO"] .pd_img, [id="2026TF-UA_BKNL"] .pd_img {
    max-width: 260px;
}
.soldout .pd_img img {
    opacity: 0.4;
    filter: grayscale(1);
}
.soldout .pd_img::after{
    content: '';
    background: url(/eshop/2026_thankful/images/sold_out.png) center center / cover;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 100%;
    aspect-ratio: 11 / 5;
    max-width: 210px;
}

.text_soldout{
    font-size: 30px;
    letter-spacing: 2px;
    padding: 0 40px;
}
.card.is_ended .thankful_btn {
    pointer-events: none; 
    cursor: not-allowed;
}
.is_today {
    margin: 15px 0 70px;
}
.card.w-100 {
    width: 100%;
}

.card.w-50 {
    width: calc(50% - 10px);
}

.card_date_gp {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -10px;
    position: relative;
    z-index: 3;
}

.card_date_gp::before {
    content: '';
    background: url('/eshop/2026_thankful/images/deco_ribbon.png') no-repeat center / cover;
    width: 200px;
    aspect-ratio: 23 / 6;
    display: inline-block;
}

.card_date {
    background-color: white;
    width: 270px;
    font-size: 40px;
    border-radius: 30px 30px 0 0;
    outline: 3px solid #CE3131;
}

.card_time {
    background-color: #AA173A;
    font-size: 30px;
    color: white;
    padding: 5px 38px;
    border-radius: 10px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card_content {
    border-radius: 30px;
    border: 1px solid #8B2525;
    background-color: white;
    padding:30px 30px 20px;
    margin-top: -26px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.card_content .for_seo {
    margin-bottom: 15px;
}

.card_title {
    line-height: 1.6em;
    position: relative;
    display: inline;
    width: 100%;
}

.title-bg {
    display: inline-block;
    background-color: white;
    position: relative;
    z-index: 2;
    padding: 0 18px;
    margin: 10px 5px;
}

.card_title::before {
    content: '';
    display: block;
    height: 1px;
    background-color: #8B2525;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.pd_row {
    width: 100%;
    display: flex;
    justify-content: center;
}
.pd_row > .pd-col:first-child:nth-last-child(2) {
    margin-left: -15px;
    margin-right: 15px;
}
.pd_row > .pd-col:nth-child(2):last-child {
    padding-left: 15px;
    margin-right: -15px;
}
.pd-col {
    /* padding: 20px; */
    width: 100%;
}

.pd-col+.pd-col .pd_detail {
    /* content: '';
    display: flex;
    height: 70%;
    align-items: center; */
    border-left: 1px solid #707070;
}

.pd_info {
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.pd_detail {
    width: 100%;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pd_name {
    line-height: 1.5em;
    margin-top: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd_name span {
    background-color: #CE3131;
    padding: 2px 6px;
    
    aspect-ratio: 1/1;
    border-radius: 20px;
    color: white;
    margin: 0 2px;
}

.card.w-100:not(:has([id="2026TF-VIO"],[id="2026TF-Debug"])) br {
    display: none !important;
}
.pd_price big {
    font-size: 32px;
}

.pd_original_price {
    font-size: 14px;
    line-height: 1.2rem;
    color: #967374;
    flex: 1;
}

.content_footer {
    padding: 20px;
    font-size: 24px;
    text-align: center;
    line-height: 1.6em;
}

.content_footer .for_seo {
    margin: 0 auto;
    max-width: 620px;
    width: 100%;
    display: block;
}

.footer_deco {
    position: relative;
    width: 100%;
    margin: 0 auto 20px;
}

.footer_deco img {
    width: 26%;
}

.footer_deco::after {
    content: '';
    height: 2px;
    background-color: #EFABC3;
    position: absolute;
    left: 0;
    right: 65%;
    top: 50%;
    transform: translateY(-50%);
}

.footer_deco::before {
    content: '';
    height: 2px;
    background-color: #EFABC3;
    position: absolute;
    right: 0;
    left: 65%;
    top: 50%;
    transform: translateY(-50%);
}

.form_container {
    padding: 40px;
}

.form_group_wrapper {
    display: flex;
}

.form_inner {
    background-color: white;
    padding: 20px 60px 30px;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    position: relative;
}

.form_inner::after {
    content: '';
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-bottom: 50px solid white;
    position: absolute;
    bottom: 100%;
    left: 20%;
    filter: drop-shadow(0px -4px 3px rgba(0, 0, 0, 0.08));
}

/* 右側按鈕對應的表單箭頭位置 */
.form_inner.is_right::after {
    left: auto;
    right: 20%;
}

.form_inner::before {
    content: '';
    background: url('/eshop/2026_thankful/images/deco.png') no-repeat center / cover;
    width: 120px;
    aspect-ratio: 1 / 1;
    position: absolute;
    left: -50px;
    top: -30px;
    transition: all 300ms;
}

.form_title {
    margin: 10px 0;
    position: relative;
}

.form_title::after {
    content: '';
    height: 2px;
    position: absolute;
    top: 50%;
    left: 200px;
    right: 0;
    background-color: #CA2524;
}

#buy_now_form .form_title {
    text-align: center;
}
#buy_now_form .form_title span {
    background-color: white;
    position: relative;
    z-index: 2;
    padding: 0 18px;
}

#buy_now_form .form_title::before {
    content: '';
    height: 2px;
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    background-color: #CA2524;
}
.form_group {
    width: 50%;
}

.form_group label {
    width: 100%;
}

.tel_input .field_row {
    padding: 0 4px;
}

.checkbox_label {
    color: #846064;
}

.btn-submitForm {
    margin-top: 20px;
    padding: 8px 50px;
}
.checkout-info .row {
    margin-right: -15px;
    margin-left: -15px;
}
#buy_now_form .checkout-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    
}
/* 欄位紅框與背景 */
#thankful .field01.is-invalid,
#thankful .select01.is-invalid {
    border: 2px solid #e74c3c !important;
    background-color: #fff6f6;
}

#thankful .error-msg-inline {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

#thankful .checkbox_label.is-invalid {
    outline: 2px solid #e74c3c;
    background-color: #fff6f6;
    padding: 2px 4px;
    outline-offset: 3px;
}
/* Card Head 基礎設定 */
.card_head {
    width: 100%;
    margin-bottom: 10px;
}

/* 頂部「只限今天 搶購中」膠囊標籤 */
.card_today_badge {
    display:flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    font-size: 38px;
}

.card_today_badge .badge_red {
    background-color: #c02525;
    border: 2px solid #c02525;
    color: #ffffff;
    font-weight: bold;
    padding: 4px 8% 4px 40px;
    border-radius: 50px 0 0 50px;
}

.card_today_badge .badge_clock::after {
    content: '';
    background: url('/eshop/2026_thankful/images/time_icon.png') center center / cover;
    aspect-ratio: 1/1;
    z-index: 2;
    position: absolute;
    top: 37%;
    right: 40%;
    left: 44%;
    transform: translateY(-50%);
}

.card_today_badge .badge_yellow {
    background-color: #ffe082;
    color: #c02525;
    font-weight: bold;
    padding: 4px 40px 4px 8%;
    border-radius: 0 50px 50px 0;
    border: 2px solid #c02525;
    border-left: none;
}

/* 「最後X個」粉紅標籤 (在 renderProductInfo 內自動生成) */
.stock_tag {
    background-color: #f65373;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 3px 16px;
    border-radius: 25px;
    margin: 0 auto 10px auto;
    width: 100%;
    max-width: 280px;
}
.is_expired .stock_tag {
    display: none;
}
/* 🎯 倒數計時器樣式 */
.countdown_box {
    text-align: center;
    margin-bottom: 10px;
    color: #AA173A;
}

.countdown_title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.countdown_timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
}

.time_unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time_unit .digit {
    background: #fdeeee;
    color: #AA173A;
    font-weight: bold;
    font-size: 30px;
    width: 56px;
    height: 44px;
    line-height: 44px;
    border-radius: 15px;
    text-align: center;
}

.time_unit .label {
    font-size: 16px;
    color: #AA173A;
    margin-top: 4px;
}

.countdown_timer .colon {
    font-weight: bold;
    font-size: 18px;
    color: #AA173A;
    line-height: 38px;
    margin: 0 3px;
}

/* 🎯 時段按鈕容器與樣式 */
.time_slots_container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.time_slot_btn {
    background: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 6px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #505050;
    min-width: 80px;
    text-align: center;
    outline: none;
}
.time_slot_btn:hover {
    border-color: #999999;
}
/* 被選取時的樣式 */
.time_slot_btn.selected {
    background: #c02525; /* 可依品牌色調調整（例如綠色/紫色/主題色） */
    color: #ffffff;
    border-color: #c02525;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    .wrapper {
        margin: 20px auto;
        overflow: hidden;
    }

    .logo-img {
        width: 160px;
    }

    .content {
        padding: 2%;
        margin: 0 3%;
    }

    .banner_img {
        transform: translateX(-20px) scale(115%);
    }

    .info_card {
        padding: 30px 85px;
        margin: 30px 0px 70px;
        font-size: 22px;
    }

    .info_card::before {
        width: 100px;
        left: -20px;
    }

    .info_card .thankful_highlight {
        font-size: 24px;
    }

    .card_date {
        width: 50%;
        min-width: 140px;
        max-width: 190px;
        font-size: 30px;
    }

    .card_date_gp::before {
        width: 180px;
    }

    .card_time {
        font-size: 22px;
        padding: 5px 15px;
    }

    .title-bg {
        padding: 0 8px;
    }

    .card_content {
        padding: 30px 24px 20px;
    }

    .pd-col+.pd-col .pd_detail {
        border-left: unset;
    }

    .pd-col+.pd-col {
        border-left: 1px solid #707070;
    }
    .buy_now_btn,
    .thankful_btn,
    .thankful_highlight {
        font-size: 22px;
    }

    h2 {
        font-size: 24px;
    }

    .content_footer {
        font-size: 18px;
    }

    .form_inner .form_title::after {
        left: 140px;
    }

    .tel_input .field_row:first-child {
        padding-left: 15px;
    }
    .tel_input .field_row:last-child {
        padding-right: 15px;
    }
    .card_today_badge {
        font-size: 24px;
    }
   
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
    #direct_checkout {
        margin-top: unset;
    }

    .info_card {
        padding: 30px 60px;
        font-size: 20px;
    }

    .info_card .thankful_highlight {
        font-size: 20px;
        padding: 8px 20px;
        margin-bottom: -57px;
    }

    .info_card .thankful_highlight::before {
        width: 50px;
        left: -26%;
    }

    .info_card .thankful_highlight::after {
        width: 50px;
        left: unset;
        right: -27%;
    }
    .buy_now_btn,
    .thankful_btn,
    .thankful_highlight {
        font-size: 18px;
        padding: 6px 18px;
    }
    
    .pd_detail {
        font-size: 18px;
    }
    .pd_name span {
        padding: 2px 5px;
    }
    .pd_price big {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    .card.w-50 {
        width: 100%;
    }

    .card_date_gp::before {
        width: 150px;
    }

    .page_con {
        font-size: 18px;
    }

   
    .form_container {
        padding: 30px 0px;
    }

    .form_inner {
        padding: 20px 30px 20px;
    }

    .form_inner::before {
        width: 83px;
        left: -30px;
        top: -30px;
    }
   .card_today_badge {
        font-size: 20px;
    }
    .card_today_badge .badge_clock::after{
        top: 47%;
        right: 38%;
        left: 43%;
    }
    .card_today_badge .badge_yellow {
        padding: 4px 20px 4px 8%;
    }
    .card_today_badge .badge_red {
        padding: 4px 8% 4px 20px;
    }
}