/* 會員／購物車模組（2026-10 新增）：只補功能性樣式，版面沿用網站既有 class */
.shop-alert {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 4px;
    line-height: 1.6;
}

.shop-alert ul {
    margin: 0;
    padding-left: 1.2em;
}

.shop-alert--success {
    background: #edf7ed;
    color: #1e4620;
    border: 1px solid #c3e6c3;
}

.shop-alert--warning {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c2c0;
}

.member-box {
    max-width: 760px;
    padding: 30px;
    margin: auto;
    border-radius: 10px;
    border: 1px solid #ccc;
    .form-selection {
        position: relative;
        .form-selection__input {
            width: 100%;
            height: 20px;
            margin-top: 5px;
            cursor: pointer;
            z-index: 1;
        }
    }
    input[type=date i]::after {
        content: "\e911";
        color: #454743;
        top: 12px;
    }
}
@media (max-width: 600px) {
    .member-box {
        padding: 10px;
    }
}

.member-box--narrow {
    max-width: 460px;
    margin: auto;
}

.member-switch {
    margin-top: 15px;
    text-align: center;
    .member-text {
        margin-right: 15px;
    }
    .member-btn {
        i {
            margin-right: 5px;
            color: #454743;
        }
    }
}

.member-link {
    float: right;
    i {
        margin-right: 5px;
        color: #454743;
    }
}

.member-resend {
    /*margin-top: 12px;*/
    .btnbox {
        padding-top: 0;
    }
}

.member-subtitle {
    margin: 40px 0 16px;
}

.member-logout {
    width: 100%;
    background: none;
    border: 0;
    padding: 15px 20px;
    cursor: pointer;
    color: #454743;
    text-align: left;
    transition: all 500ms ease-in-out;
    &:hover {
        padding-left: 22px;
        color: #777973;
    }
}
.member-summary__hello {
    width: 96%;
    margin: 0 auto 20px;
}
.member-summary__list {
    width: 96%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.member-summary__list dt {
    padding: 5px;
    color: #888;
    background: #f7f7f7;
}
.member-summary__list dd {
    padding: 5px;
}

.form__radio,
.form__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    cursor: pointer;
}

.form__help {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 0.875em;
}

@media (max-width: 768px) {
    .member-summary__list {
        grid-template-columns: 100px 1fr;
    }
}

/* Header 右上角購物車抽屜（沿用原詢問車 .cart-drawer 版型） */
.shop-drawer__empty {
    padding: 24px 0;
    color: #888;
    text-align: center;
}

.shop-drawer__total {
    margin: 16px 0 8px;
    text-align: right;
}

.cart-drawer .btnbox {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-drawer .btnbox .btnset {
    flex: 1;
    text-align: center;
}

/* 商品頁加入購物車 */
.shop-add .pdt-price__original {
    margin-right: 8px;
    color: #999;
    font-size: 0.7em;
}

.shop-add__soldout {
    padding: 10px 20px;
    color: #c0392b;
}

.shop-add__message {
    margin-top: 12px;
}

.shop-add__message a {
    margin-left: 8px;
    text-decoration: underline;
}

.shop-add button.btnset {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.shop-add button.btnset[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 表格（購物車、訂單） */
.shop-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    a {
        color: #6d4d1f;
    }
}

.shop-table th,
.shop-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: middle;
}

.shop-table thead th {
    background: #f7f7f7;
    font-weight: bold;
    white-space: nowrap;
}

.shop-table__num {
    /*text-align: right !important;*/
    white-space: nowrap;
}

.shop-table__qty {
    width: 110px;
    /*text-align: center !important;*/
}

.shop-table__img {
    width: 80px;
}

.shop-table__img img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.shop-table__spec {
    color: #888;
    font-size: 0.9em;
}

.shop-table__btn {
    text-align: center !important;
    .shop-link {
        margin-top: 0;
        border: none;
        background: none;
        cursor: pointer;
    }
}

.shop-qty-input {
    width: 80px;
    text-align: center;
}
@media (max-width: 768px) {
    .shop-qty-input {
        height: auto;
        padding: 6px 10px;
    }
}

.shop-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 3px;
    background: #f3e5d8;
    color: #8a5a2b;
    font-size: 12px;
}

.shop-link {
    margin-top: 10px;
    text-align: right;
    a {
        border: 0;
        padding: 0;
        color: #8a5a2b;
        cursor: pointer;
        i {
            margin-right: 10px;
        }
    }
}

.shop-cart__empty {
    padding: 40px 0;
    text-align: center;
    color: #888;
}

.shop-cart__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.shop-cart__total strong {
    font-size: 1.3em;
}

/* 加價購 */
.shop-addons {
    margin: 24px 0;
    padding: 16px;
    background: #faf7f3;
    border-radius: 4px;
}

.shop-addons__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.shop-addons__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}

.shop-addons__item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.shop-addons__info {
    flex: 1;
    font-size: 0.9em;
}

/* 結帳 */
.shop-checkout__row {
    align-items: flex-start;
    .form-selection {
        position: relative;
/*
        input[type=checkbox] + .form-selection__label > .form-selection__text--checkbox .form-selection__option::before {
            display: block;
        }
        input[type=checkbox]:checked + .form-selection__label > .form-selection__text--checkbox .form-selection__option::before {
            display: none;
        }
/**/
        .form-selection__input {
            width: 100%;
            height: 20px;
            margin-top: 5px;
            cursor: pointer;
            z-index: 1;
        }
    }
}

.shop-checkout h3.title {
    margin: 24px 0 12px;
    i {
        margin-right: 10px;
        vertical-align: text-bottom;
    }
}

.shop-summary-wrap {
    padding-left: 20px;
    position: sticky;
    top: 100px;
}
@media (max-width: 991px) {
    .shop-summary-wrap {
        padding-left: 0;
    }
}
.shop-summary {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 4px;
}

.shop-summary h4 {
    margin: 20px 0 8px;
    font-size: 1em;
}

.shop-summary__lines {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.shop-summary__lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
}

.shop-summary__amount {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    margin: 20px 0 8px;
    padding: 10px 0;
}

.shop-summary__amount dd {
    margin: 0;
    text-align: right;
}

.shop-summary__total {
    font-weight: bold;
    font-size: 1.15em;
}

.shop-summary__note {
    color: #8a5a2b;
    font-size: 0.9em;
}

.shop-option {
    display: flex;
    margin: 6px 0;
}

.shop-option__desc {
    margin: 0 0 0 30px;
    color: #999999;
    font-size: 0.9em;
}

.shop-inline {
    align-items: center;
    .btnset {
        width: calc(100% - 15px);
        margin: 0 0 0 15px;
        padding: 10px;
    }
}
@media (max-width: 991px) {
    .shop-inline {
        .btnset {
            width: 100%;
            margin: 15px 0 0 0;
        }
    }
}
.shop-inline .form__control {
    flex: 1;
    min-width: 0;
}

.shop-summary .btnbox button {
    width: 100%;
    padding: 10px;
    border: 0;
    cursor: pointer;
}

.invalid-feedback.d-block {
    display: block;
    color: #c0392b;
    font-size: 0.875em;
}

/* 訂單明細 */
.shop-success__intro {
    margin-bottom: 10px;
}
.shop-order__meta {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 16px;
    margin: 0 0 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.shop-order__meta dt {
    padding: 5px;
    color: #888;
    background: #f7f7f7;
}

.shop-order__meta dd {
    margin: 0;
    padding: 5px;
}

.shop-order__amount {
    max-width: 360px;
    margin-left: auto;
}

.shop-order__people {
    margin-top: 24px;
    .coldefault6 {
        padding: 0 5px;
        h3 {
            span {
                width: 80%;
                padding: 0 0 8px;
                margin-bottom: 8px;
                border-bottom: 1px solid #ccc;
                display: block;
            }

        }
    }
    .shop-order-text {
        padding: 10px;
    }
}
@media (max-width: 768px) {
    .shop-order__people {
        .coldefault6 {
            padding: 0;
            h3 {
                span {
                    width: 100%;
                }
            }
        }
    }
}
.shop-invoice {
    padding: 10px;
}
.shop-replies {
    padding: 0;
    list-style: none;
}

.shop-replies li {
    padding: 12px;
    margin-bottom: 8px;
    background: #f7f7f7;
    border-radius: 4px;
}

.shop-replies time {
    display: block;
    color: #888;
    font-size: 0.85em;
    margin-bottom: 4px;
}

.shop-alert .btnset {
    margin-left: 12px;
}

@media (max-width: 768px) {
    .shop-table thead {
        display: none;
    }

    .shop-table tr {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .shop-table td {
        display: flex;
        justify-content: space-between;
        border: 0;
        padding: 4px 0;
    }

    .shop-table td[data-label]::before {
        content: attr(data-label);
        color: #888;
    }

    .shop-table__qty {
        width: auto;
    }

    .shop-summary {
        position: static;
    }

    .shop-order__meta {
        grid-template-columns: 100px 1fr;
    }
}