/* ==========================================================================
   Promotion 活動頁共用樣式
   原本分散在 resources/views/promotion/*.blade.php 的 inline <style>
   ========================================================================== */

/* --------------------------------------------------------------------------
   history.blade.php
   -------------------------------------------------------------------------- */
.prize_style {
    background: #999;
    padding: 10px;
    border-radius: 5px;
    color: #FFF;
    margin-bottom: 10px;
}

.font-bold {
    font-weight: bold;
}

.text-left {
    text-align: left;
}

.hide {
    display: none;
}

/* --------------------------------------------------------------------------
   redeem.blade.php
   -------------------------------------------------------------------------- */
/* 活動副標題 */
.promo-title .brief-name {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
}

.min-w-80 {
    min-width: 80px;
}

.w-300 {
    width: 300px;
}

.mb-10 {
    margin-bottom: 10px;
}

.break-word {
    word-break: break-word;
}

/* display 工具類加 !important：需壓過 .checksty input+label(flex)、.radiosty li(inline-block) 等既有規則，等同原本 inline style 的優先權 */
.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

/* 問卷「其他」選項的補充輸入框 */
input.answer_other {
    margin-left: 15px;
    border: none;
    border-bottom: 1px solid #000;
    outline: none;
}

/* 不符兌換資格時，頁面載入即顯示提示 lightbox（關閉時由 lightbox.js fadeOut 寫入 inline display:none） */
#modal_notice,
#modal_notice .lightbox {
    display: block;
}

/* --------------------------------------------------------------------------
   list.blade.php
   -------------------------------------------------------------------------- */
#member .listtb .item li.blcak_able {
    color: #000;
}

#redeem .promo .item li.able {
    color: #000;
}

#faq ul.item li {
    -ms-flex: 0 0 calc(100%);
    flex: 0 0 calc(100%);
    cursor: pointer;
}

@media screen and (max-width: 960px) {
    #faq ul.item li {
        padding: 15px;
    }
}

/* --------------------------------------------------------------------------
   redeem.blade.php / redeem_askagain.blade.php
   -------------------------------------------------------------------------- */
.form-group .item .note {
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   redeem.blade.php
   -------------------------------------------------------------------------- */
.checkbox i.checked {
    background: #EA2023;
    border-color: #EA2023;
}

.notCheckbox i.checked {
    background: #999;
    border-color: #999;
}

.checkbox i,
.notCheckbox i {
    display: block;
    width: 25px;
    height: 25px;
    border-radius: 25px;
    line-height: 20px;
    border: #ccc 3px solid;
    background: #ccc;
    position: relative;
    z-index: 2;
    margin: 0 auto 5px;
    color: #fff;
    font-size: 14px;
}

.flex-center {
    align-items: center;
    display: flex;
    justify-content: center;
}

.cursor-pointer {
    cursor: pointer;
}

#redeem-promotion .detailbox .condition {
    padding-bottom: 15px;
}

.td.sn div {
    margin-bottom: 15px;
}

.td.sn div:last-child {
    margin-bottom: 0;
}

.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: 11px;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}

.bg-secondary {
    background-color: #999999;
}

.select2-container .select2-selection--single {
    padding: 15px;
    height: 49px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    line-height: 17px;
    color: var(--color-gray-600);
    border: var(--color-gray-300);
}

/* 確認頁產品表格內的上傳檔案縮圖 */
.listtb .td img.prove-thumb {
    max-width: 120px;
    max-height: 120px;
}

/* 桌機版表格已有表頭，不需顯示每格的 data-title */
@media (min-width: 768px) {
    .listtb .tr .td:before {
        display: none;
    }
}
