.collection-image.img-style {
    position: relative;
    overflow: hidden;
    padding-bottom: 100%;
    border: 1px solid #eee;
}

.collection-image.img-style img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-inner-order {
    width: 125px;
}

.tf-cart-item_product {
    display: flex;
    align-items: center;
}

.tf-cart-item_product .img-box {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-cart-item_product .img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tf-cart-item_product .cart-info .cart-title {
    font-size: 16px;
    color: #381e0f;
    font-weight: 600;
    text-decoration: none;
}

.tf-cart-item_product .cart-info .cart-meta-variant {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-weight: bold;
}

.tf-cart-item_price,
.tf-cart-item_quantity,
.tf-cart-item_total {
    font-size: 16px;
    color: #381e0f;
    vertical-align: middle;
    text-align: center;
}

.tf-table-page-cart tr:last-child {
    border-bottom-style: none;
}

.flat-spacing-5 {
    padding: 1px 0px;
}

.cart-steps {
    display: flex;
    justify-content: center;
    margin: 30px 0px;
    align-items: center;
    flex-wrap: wrap;
}

.cart-steps .step {
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    border: 1px solid #381e0f;
    transition: all 0.3s ease;
    margin: 5px;
    border-radius: 5px;
}

.cart-steps .step.active {
    color: white;
    background-color: #381e0f;
    text-align: center;
}

.cart-steps .step:not(.active) {
    color: #381e0f;
    background-color: white;
    text-align: center;
}

.info-block-bottom {
    padding: 0px 20px;
}

.tf-page-cart-item {
    display: flex;
    justify-content: center;
}

.info-section-width {
    width: 85%;
}

.info-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0px 8px rgb(134, 134, 134);
    border-radius: 10px;
    margin-bottom: 32px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.form-col {
    flex: 1;
    min-width: 300px;
}

.section-title {
    font-size: 20px;
    color: #381e0f;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 24px;
    padding-left: 7px;
}

.form-group {
    margin: 0px 0px 20px 30px;
    display: flex;
    align-items: center;
}

.form-group label {
    flex-shrink: 0;
    width: 125px;
    font-weight: 600;
    margin-bottom: 0;
    padding-right: 3px;
    text-align: center;
    margin-right: 10px;
    font-size: 16px;
    color: #777777;
    align-content: center;
    align-items: center;
    font-weight: bold;
}

.form-group-detail {
    margin: 0px 0px 20px 30px;
    display: flex;
    align-items: center;
}

.form-group-detail label {
    flex-shrink: 0;
    width: 125px;
    font-weight: 600;
    margin-bottom: 0;
    padding-right: 3px;
    text-align: center;
    margin-right: 10px;
    font-size: 16px;
    color: #777777;
    align-content: center;
    align-items: center;
    font-weight: bold;
}

.form-group-address {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.form-group-address label {
    flex-shrink: 0;
    width: 80px;
    font-weight: 600;
    margin-bottom: 0;
    color: #555;
    padding-right: 3px;
    text-align: center;
    margin-right: 10px;
}

.form-text-display {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    padding: 0;
    border: none;
    background-color: transparent;
    min-height: unset;
    box-sizing: border-box;
    font-weight: bold;
    width: 100%;
    display: block;
}

.form-text-display-birthday {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    padding: 0;
    border: none;
    background-color: transparent;
    min-height: unset;
    box-sizing: border-box;
    font-weight: bold;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.form-text-display-tel-ext {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    padding: 0;
    border: none;
    background-color: transparent;
    min-height: unset;
    box-sizing: border-box;
    font-weight: bold;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.form-text-display-address {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    padding: 0;
    border: none;
    background-color: transparent;
    min-height: unset;
    box-sizing: border-box;
    font-weight: bold;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.member-input {
    padding: 6.5px 19px !important;
}

.member-input::placeholder {
    color: #c4bbb8;
    opacity: 0.3;
}

.member-input.invalid-field {
    border: 2px solid red !important;
}

.member-select {
    padding: 6.5px 19px !important;
}

.member-select::placeholder {
    color: #c4bbb8;
    opacity: 0.3;
}

.member-select.invalid-field {
    border: 2px solid red !important;
}

.member-select-width-100 {
    width: 100%;
    height: 38.6px !important;
    font-size: 14px;
}

.member-select-width-add-100 {
    width: 100%;
    height: 38.6px !important;
    font-size: 14px;
    margin-bottom: 15px;
}

.member-select-width-30 {
    width: 32.5%;
    height: 38.6px !important;
    font-size: 14px;
}

.member-input-width-70 {
    width: 70% !important;
}

.member-input-width-30 {
    width: 25% !important;
    font-size: 14px !important;
}

.member-input-width-order {
    width: 25% !important;
    font-size: 14px !important;
}

.invalid-field {
    border: 2px solid red !important;
}

/* 道路或街名 - 邊輸入邊搜尋的下拉建議清單 */
.road-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #42210B;
    border-top: none;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.road-select-option {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
}

.road-select-option:hover {
    background-color: #EBDDD4;
}

[data-grid="grid-3"].summary-section-Fee-grid {
    display: grid;
    gap: 0px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "item-fee-1 item-fee-2 item-fee-2 item-fee-2";
    margin-bottom: 10px;
}

.summary-section-Fee-grid .item-fee-1 {
    grid-area: item-fee-1;
}

.summary-section-Fee-grid .item-fee-2 {
    grid-area: item-fee-2;
}

.summary-section-Fee-grid .grid-item-title {
    font-size: 16px;
    color: #777777;
    align-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center;
}

.summary-section-Fee-grid .grid-item-content {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #381e0f;
    align-items: center;
    font-weight: bold;
}

.grid-item-fee {
    display: flex;
    justify-content: space-between;
    padding: 4px 94px 4px 0px;
}

.tf-cart-totals-discounts {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: none;
}

.tf-cart-totals-discounts h3 {
    font-size: 24px;
    color: #381e0f;
    margin-right: 20px;
}

.tf-cart-totals-discounts .total-value {
    font-size: 24px;
    font-weight: 700;
    color: #d9534f;
    margin-right: 10px;
}

.tf-cart-totals-discounts:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .collection-inner-order {
        width: 100%;
    }

    .cart-steps {
        display: flex;
        justify-content: center;
        margin: 0px 0px 15px 0px;
        align-items: center;
        flex-wrap: wrap;
    }

    .cart-steps .step.active {
        color: white;
        background-color: #381e0f;
        text-align: center;
    }

    .cart-steps .step {
        font-size: 14px;
        font-weight: bold;
        padding: 10px;
        border: 1px solid #381e0f;
        transition: all 0.3s ease;
        margin: 5px;
        border-radius: 5px;
    }

    .info-block-bottom {
        background: none;
        padding: 0px;
        box-shadow: none;
        margin-top: 15px;
        margin-bottom: 0px;
    }

    .info-section-width {
        width: 100%;
    }

    .info-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-col {
        width: 100%;
        min-width: unset;
    }

    .section-title {
        padding-left: 0px;
        margin-bottom: 12px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
        margin: 0px 0px 15px 0px;
    }

    .form-group label {
        width: auto;
        padding-right: 0;
        text-align: left;
    }

    .form-group-detail {
        flex-direction: column;
        align-items: flex-start;
        margin: 0px 0px 15px 10px;
    }

    .form-group-detail label {
        width: auto;
        padding-right: 0;
        text-align: left;
    }

    .form-text-display-birthday {
        flex-direction: column;
    }

    .form-text-display-tel-ext {
        flex-direction: column;
    }

    .form-text-display-address {
        flex-direction: column;
    }

    .member-select-width-100 {
        width: 100%;
        margin-bottom: 10px;
    }

    .member-select-width-add-100 {
        width: 100%;
        margin-bottom: 10px;
    }

    .member-select-width-30 {
        width: 100%;
        margin-bottom: 10px;
    }

    .member-input-width-70 {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .member-input-width-30 {
        width: 100% !important;
    }

    .member-input-width-order {
        width: 30% !important;
        vertical-align: middle;
        line-height: 29px;
    }

    [data-grid="grid-3"].summary-section-Fee-grid {
        grid-template-areas:
            "item-fee-1 item-fee-1 item-fee-1 item-fee-1"
            "item-fee-2 item-fee-2 item-fee-2 item-fee-2";
    }

    .summary-section-Fee-grid .grid-item-title {
        text-align: left;
    }

    .summary-section-Fee-grid .grid-item-content {
        display: block;
    }

    .grid-item-fee {
        display: block;
        padding: 4px 0px;
    }

    .input-text-right {
        text-align: right;
        color: #d9534f !important;
    }

    .tf-cart-totals-discounts h3 {
        font-size: 20px;
        color: #381e0f;
        margin: 0px 10px;
    }

    .tf-cart-totals-discounts .total-value {
        font-size: 20px;
        font-weight: 700;
        color: #d9534f;
    }

    .tf-cart-totals-discounts {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .cart-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 10px;
        justify-items: stretch;
        align-items: stretch;
        margin: 20px 0;
        padding: 0 10px;
    }

    .cart-steps .step {
        min-width: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

.member-table {
    width: 100%;
}

.member-table th,
.member-table td {
    border: 1px solid rgba(0, 0, 0, 0.125);
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    font-size: 14px;
}

.member-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

.member-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.member-table tbody tr:hover {
    background-color: rgb(242, 242, 242);
    cursor: pointer;
}

.member-table a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease-in-out;
}

.member-table a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.member-table-order {
    width: 100%;
}

.member-table-order th,
.member-table-order td {
    border: 1px solid rgba(0, 0, 0, 0.125);
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    font-size: 14px;
}

.member-table-order th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

.member-table-order tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.member-table-order tbody tr:hover {
    background-color: rgb(242, 242, 242);
    cursor: pointer;
}

.member-table-order tbody tr.disabled-row,
.member-table-order tbody tr.disabled-row:hover {
    background-color: #B9BBBE !important;
}

.member-table-order a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease-in-out;
}

.member-table-order a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.member-table-recipient {
    width: 100%;
}

.member-table-recipient th,
.member-table-recipient td {
    border: 1px solid rgba(0, 0, 0, 0.125);
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    font-size: 14px;
}

.member-table-recipient th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

.member-table-recipient tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.member-table-recipient tbody tr:hover {
    background-color: rgb(242, 242, 242);
    cursor: pointer;
}

.member-table-recipient a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease-in-out;
}

.member-table-recipient a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.member-table-invoice {
    width: 100%;
}

.member-table-invoice th,
.member-table-invoice td {
    border: 1px solid rgba(0, 0, 0, 0.125);
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    font-size: 14px;
}

.member-table-invoice th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

.member-table-invoice tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.member-table-invoice tbody tr:hover {
    background-color: rgb(242, 242, 242);
    cursor: pointer;
}

.member-table-invoice a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease-in-out;
}

.member-table-invoice a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.no-message {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #666;
    border: 1px dashed #ccc;
    border-radius: 8px;
    margin-top: 20px;
    background-color: #fdfdfd;
}

@media (min-width: 769px) {
    .desktop-cart-table {
        display: table;
    }

    .mobile-cart-list {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-cart-table {
        display: none;
    }

    .mobile-cart-list {
        display: block;
    }

    .member-table th,
    .member-table td {
        padding: 8px 4px;
        font-size: 13px;
    }

    .member-table-order th,
    .member-table-order td {
        padding: 8px 4px;
        font-size: 13px;
    }

    .member-table-recipient th,
    .member-table-recipient td {
        padding: 8px 4px;
        font-size: 13px;
    }

    .member-table-invoice th,
    .member-table-invoice td {
        padding: 8px 4px;
        font-size: 13px;
    }

    .table-button {
        padding: 4px 8px;
        font-size: 12px;
    }

    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {

    .member-table th,
    .member-table td {
        font-size: 12px;
    }

    .member-table-order th:nth-child(3),
    .member-table-order td:nth-child(3),
    .member-table-order th:nth-child(4),
    .member-table-order td:nth-child(4),
    .member-table-order th:nth-child(5),
    .member-table-order td:nth-child(5) {
        display: none;
    }

    .member-table-recipient th:nth-child(2),
    .member-table-recipient td:nth-child(2),
    .member-table-recipient th:nth-child(3),
    .member-table-recipient td:nth-child(3),
    .member-table-recipient th:nth-child(4),
    .member-table-recipient td:nth-child(4) {
        display: none;
    }

    .member-table-invoice th:nth-child(2),
    .member-table-invoice td:nth-child(2),
    .member-table-invoice th:nth-child(3),
    .member-table-invoice td:nth-child(3),
    .member-table-invoice th:nth-child(4),
    .member-table-invoice td:nth-child(4),
    .member-table-invoice th:nth-child(5),
    .member-table-invoice td:nth-child(5) {
        display: none;
    }

    .table-button {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}

.custom-radio-label {
    width: 70px !important;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.custom-radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #381e0f;
    background-color: #fff;
    border-radius: 50%;
    /* 圓形 */
    transition: all 0.2s ease;
}

.custom-radio:checked+.custom-radio-label::before {
    background-color: #381e0f;
    border-color: #381e0f;
}

.custom-radio:checked+.custom-radio-label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.custom-radio {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    z-index: 2;
    cursor: pointer;
}

.custom-radio-label.invalid-field::before {
    border: 2px solid red !important;
}

.order-product-details-container {
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #b1b7bd;
}

.order-product-summary {
    padding: 7px 10px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
    border-bottom: 1px solid #b1b7bd;
}

.order-product-summary:hover {
    background-color: #e9ecef;
}

.order-product-summary .order-title {
    font-weight: bold;
}

.order-product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-status {
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
}

.order-detail-item .order-label {
    font-weight: bold;
    color: #495057;
    margin-right: 5px;
}

.order-collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.order-details-list {
    padding: 7px 10px;
    background-color: #fff;
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px 0px;
}

.curr-order-details-list {
    padding: 7px 10px;
    background-color: #fff;
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 5px 0px;
}

/* 狀態配色 */
.order-status-unset {
    background-color: #6c757d;
    /* 未設定 - 灰色 */
}

.order-status-processing {
    background-color: #007bff;
    /* 處理中 - 藍色 */
}

.order-status-pending-delivery {
    background-color: #6f42c1;
    /* 待配送 - 紫色 */
}

.order-status-in-transit {
    background-color: #fd7e14;
    /* 配送中 - 橘色 */
}

.order-status-delivered {
    background-color: #28a745;
    /* 完成配送 - 綠色 */
}

.order-product-summary .order-toggle-icon {
    transition: transform 0.3s ease;
}

.order-product-summary.order-expanded .order-toggle-icon {
    transform: rotate(180deg);
}

@media (min-width: 1150px) {
    .flat-seller .grid-layout {
        row-gap: 20px;
    }
}
