/* Single Product Page Styles */

/* 模仿 Astra 主題的 .summary.entry-summary 樣式 */
.entry-summary {
    font-size: 1rem; /* 或根據主題基礎字體大小調整 */
    line-height: 1.6;
}
.entry-summary .product_title {
    font-size: 1.8rem; /* 調整主標題大小 */
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333; /* 根據需要調整顏色 */
}
.entry-summary .price {
    font-size: 1.5rem; /* 調整價格大小 */
    font-weight: bold;
    color: #e2322e; /* 紅色價格 */
    margin-bottom: 0 !important;
}
.entry-summary .min-price {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}
/* 專門針對商品循環列表中的價格樣式 */
.entry-summary .price,
.product-card .product-price {
    font-weight: normal; /* 或者 bold，根據喜好 */
    /* 註意：不要在這裏設置整體顏色，因為我們要區分原價和現價 */
    margin-bottom: 0.5rem; /* 調整與其他元素的間距 */
}
/* 定位原價：被 <del> 標簽包裹的部分 */
.entry-summary .price del .woocommerce-Price-amount,
.product-card .product-price del .woocommerce-Price-amount {
    color: #999; /* 設置原價顏色為灰色 */
    text-decoration: line-through; /* 確保有刪除線 */
}
/* 定位現價：被 <ins> 標簽包裹的部分 */
.entry-summary .price ins .woocommerce-Price-amount,
.product-card .product-price ins .woocommerce-Price-amount {
    color: #e2322e; /* 設置現價顏色為紅色 */
    text-decoration: none; /* 去掉下劃線，如果不喜歡的話 */
    font-weight: bold; /* 讓現價更突出 */
}
.entry-summary .woocommerce-product-details__short-description p {
    margin-bottom: 1rem; /* 調整段落間距 */
}
/* 模仿 WooCommerce 默認表單樣式 */
.entry-summary form.cart {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
/* 自定義數量輸入框樣式 */
.entry-summary form.cart div.quantity {
    display: inline-flex; /* 使用 Flexbox 布局 */
    align-items: stretch; /* 使子元素高度拉伸一致 */
    vertical-align: middle;
    margin-right: 0.5rem; /* 與按鈕間距 */
    border: 1px solid #ccc; /* 為整個數量區域添加邊框 */
    border-radius: 4px; /* 為整個數量區域添加圓角 */
    overflow: hidden; /* 隱藏超出邊界的內容 */
    /* 隱藏默認的 number input 外觀 */
    position: relative;
}
.entry-summary form.cart div.quantity .qty {
    width: 60px; /* 輸入框寬度 */
    padding: 0.5rem; /* 輸入框內邊距 */
    border: none; /* 移除輸入框邊框 */
    box-shadow: none; /* 移除輸入框陰影 */
    text-align: center; /* 文字居中 */
    font-size: 1rem; /* 字體大小 */
    background-color: transparent; /* 輸入框背景透明 */
    flex: 1; /* 輸入框占據剩余空間 */
    margin: 0; /* 移除默認margin */
    appearance: textfield; /* 嘗試移除瀏覽器默認樣式 */
}
.entry-summary form.cart div.quantity .qty::-webkit-outer-spin-button,
.entry-summary form.cart div.quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none; /* 隱藏 Chrome/Safari/Webkit 內核瀏覽器的數字調節按鈕 */
    margin: 0;
}
.entry-summary form.cart div.quantity .qty:focus {
    outline: none; /* 移除焦點輪廓 */
}
.entry-summary form.cart div.quantity .minus,
.entry-summary form.cart div.quantity .plus {
    background-color: #f8f9fa; /* 按鈕背景色 */
    border: none; /* 移除按鈕自身邊框 */
    padding: 0.5rem 0.75rem; /* 按鈕內邊距 */
    font-size: 1rem; /* 按鈕文字大小 */
    cursor: pointer; /* 光標 */
    transition: background-color 0.2s ease; /* 懸停過渡 */
    display: flex; /* 使用 Flexbox 居中圖標 */
    align-items: center;
    justify-content: center;
    min-width: 40px; /* 設置最小寬度 */
    text-decoration: none; /* 移除鏈接默認下劃線 */
    color: inherit; /* 繼承文字顏色 */
}
.entry-summary form.cart div.quantity .minus:hover,
.entry-summary form.cart div.quantity .plus:hover {
    background-color: #e9ecef; /* 懸停背景色 */
}
.entry-summary form.cart .single_add_to_cart_button {
    padding: 0.45rem 1.5rem; /* 調整按鈕內邊距 */
    font-size: 1rem; /* 調整按鈕字體大小 */
    border-radius: 4px; /* 調整按鈕圓角 */
    cursor: pointer; /* 光標 */
    transition: background-color 0.3s ease; /* 懸停過渡 */
}
.entry-summary form.cart table.variations {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}
.entry-summary form.cart table.variations th,
.entry-summary form.cart table.variations td {
    padding: 0.5rem;
    vertical-align: middle;
}
.entry-summary form.cart table.variations th {
    text-align: left;
    font-weight: bold;
    width: 30%; /* 調整標簽列寬度 */
}
.entry-summary form.cart table.variations tr{
    display:flex;
    flex-direction: column;
}
.entry-summary form.cart table.variations td{
    border-bottom: 1px solid gray;
}
.entry-summary form.cart select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.product_meta {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}
.entry-summary .price-quantity .delivery_date{
    width: 115px;
    height: 110px;
    border: 1px #ccc dashed;
    border-radius: 5px;
    float: right;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.entry-summary .price-quantity .delivery_date>div:first-child {
    font-size: 1rem;
    font-weight: bold;
}
.entry-summary .price-quantity .delivery_date .date {
    color: var(--cus-one-primary);
    font-size: 2.5rem;
    font-weight: bold;
}

.entry-summary .price-quantity .delivery_date>div:last-child {
    color: #7b7675;
    font-size: .8rem;
}
/* Advanced Product Fields Pro 樣式 */
.wapf-checkboxes, .wapf-radios{
    display: flex;
    flex-direction: row;
    grid-template-columns: auto;
    grid-gap: 5px 1rem;
    flex-wrap: wrap;
}
label.wapf-input-label {
    margin-bottom: 0;
    padding: .3rem .5rem;
    background-color: #ddd;
    border-radius: .5rem;
}
.wapf-product-totals,.stock.in-stock{
    display: none;
}
.entry-summary form.cart div.quantity ,.entry-summary form.cart .single_add_to_cart_button{
    display: none !important;
}

/* 報價按鈕樣式 */
#quote-btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}
#quote-btn:hover {
    background-color: #e55a00 !important;
    border-color: #e55a00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

/* Advanced Product Fields Pro 樣式美化 */
.wapf-fields-wrapper {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* 字段组容器样式 */
.wapf-wrapper {
    margin-bottom: 1rem;
}

/* 字段组标题样式 */
.wapf-field-group {
    margin-bottom: 1.5rem;
}

/* 字段标签样式 - 参考 configurator.php 的 form-label */
.wapf-field-group .wapf-field-label,
.wapf-field-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

/* 字段容器样式 */
.wapf-field {
    margin-bottom: 1rem;
}

/* 按钮样式 - 参考 configurator.php 的按钮样式 */
.wapf-field .wapf-btn,
.wapf-field button.btn,
.wapf-field .btn-outline-secondary {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    cursor: pointer;
}

.wapf-field .wapf-btn:hover,
.wapf-field button.btn:hover,
.wapf-field .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #999;
}

.wapf-field .wapf-btn.active,
.wapf-field button.btn.active,
.wapf-field .btn-outline-secondary.active {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #fff;
}

/* 单选按钮组样式 - 参考 configurator.php 的 flex-wrap gap-2 */
.wapf-field .wapf-fieldset,
.wapf-field .wapf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* 输入框样式 - 参考 configurator.php 的 form-control */
.wapf-field input[type="text"],
.wapf-field input[type="number"],
.wapf-field input[type="email"],
.wapf-field input[type="tel"],
.wapf-field textarea,
.wapf-field select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.wapf-field input[type="text"]:focus,
.wapf-field input[type="number"]:focus,
.wapf-field input[type="email"]:focus,
.wapf-field input[type="tel"]:focus,
.wapf-field textarea:focus,
.wapf-field select:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* 复选框和单选框样式 */
.wapf-field input[type="checkbox"],
.wapf-field input[type="radio"] {
    margin-right: 0.5rem;
    width: auto;
}

/* 字段描述样式 */
.wapf-field-description {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* 必填字段标记 */
.wapf-field-required {
    color: #e2322e;
}

/* 价格提示样式 */
.wapf-pricing-hint {
    font-size: 0.85rem;
    color: #666;
    margin-left: 0.5rem;
}

/* 产品总计区域样式 */
.wapf-product-totals {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.wapf-product-totals .wapf-total-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.wapf-product-totals .wapf-total-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ff6600;
}

/* 确保字段组之间有适当的间距 */
.wapf-field-group + .wapf-field-group {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Custom Configurator Quantity Button Styles */
.configurator-quantity-container {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
    padding-left: 0;
    padding-right: 0;
    margin-left: calc(var(--bs-gutter-x) * .5);
}

.configurator-quantity-container input#quantity {
    border: none;
    outline: none;
    text-align: center;
    padding: 0.5rem 0.75rem;
    margin: 0;
    flex: 1;
    height: 40px;
    font-size: 1rem;
    line-height: 1;
    background-color: transparent;
    box-sizing: border-box;
    min-width: 60px;
}

.configurator-quantity-container button.btn-qty {
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    line-height: 1;
    background-color: #f8f9fa;
    box-sizing: border-box;
    border-left: 1px solid #ddd;
}

.configurator-quantity-container button.btn-qty:first-child {
    border-left: none;
}

.configurator-quantity-container button.btn-qty:hover {
    background-color: #e9ecef;
}

.quantity-label-wrapper {
    display: flex;
    align-items: center;
}

/* --- 輪播圖小圖預覽樣式 --- */
.product-thumbnails {
    margin-top: 1rem;
    gap: 10px; /* 小圖之間間隔10px，在5px-15px範圍內 */
}
.product-thumbnail {
    width: 45px;
    height: 45px;
    max-width: 45px;
    max-height: 45px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}
.product-thumbnail:hover {
    opacity: 1;
    border-color: #e2322e;
    transform: scale(1.05);
}
.product-thumbnail.active {
    opacity: 1;
    border-color: #e2322e;
    box-shadow: 0 0 0 2px rgba(226, 50, 46, 0.2);
}
.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/*------------------------------------------------*/

/* --- Tabs Styling (模仿 ThaiHeiaMulet) --- */
.woocommerce-tabs ul.wc-tabs {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border-bottom: 1px solid #ddd;
    display: flex; /* 使其水平排列 */
    flex-wrap: wrap; /* 允許換行，以防屏幕太小 */
}
.woocommerce-tabs ul.wc-tabs li {
    margin-right: 0; /* 移除右邊距，用 padding 控製 */
    border-bottom: 3px solid transparent; /* 默認無下劃線 */
    margin-bottom: -1px; /* 讓邊框覆蓋底部邊框 */
}
.woocommerce-tabs ul.wc-tabs li.active {
    border-bottom: 3px solid #e2322e; /* 活躍標簽有紅色下劃線 */
}
.woocommerce-tabs ul.wc-tabs li a {
    text-decoration: none;
    padding: 0.75rem 1.5rem; /* 增加一些內邊距 */
    display: block;
    color: #333;
    font-weight: 500; /* 加粗 */
}
.woocommerce-tabs ul.wc-tabs li a:hover {
    color: #e2322e; /* 懸停顏色 */
}
.panel.entry-content {
    padding: 1.5rem 0;
    color:#334155
}
.entry-content .wp-audio-shortcode, .entry-content .wp-embedded-audio, .entry-content .wp-embedded-video, .entry-content .wp-video, .entry-content p {
    margin-bottom: 1.6em;
}
/* --- Additional Information Table Styling (模仿 ThaiHeiaMulet) --- */
.shop_attributes {
    width: 100%;
    border-collapse: collapse;
}
.shop_attributes th,
.shop_attributes td {
    border-bottom: 1px solid #666;
    padding: 0.5rem 0;
    vertical-align: top;
}
.shop_attributes th {
    width: 30%; /* 屬性名寬度 */
    font-weight: normal; /* 去掉加粗 */
    color: #666; /* 淺灰色文字 */
}
.shop_attributes tr {
}
.shop_attributes td {
    width: 70%; /* 屬性值寬度 */
}

/* --- Reviews Tab Styling (美化評價組件) --- */
#reviews {
    max-width: 100%;
}
#reviews h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}
#review_form_wrapper {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
#review_form_wrapper h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
}
.comment-form-rating {
    margin-bottom: 1.5rem;
}
.comment-form-rating label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}
/* 星星評分樣式 - 使用WooCommerce字體圖標 */
.star-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
}
.star-rating {
    display: flex;
    gap: 5px;
    direction: ltr;
}
.star-rating .star {
    position: relative;
    width: 1.2em;
    height: 1.2em;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    user-select: none;
    display: inline-block;
}
.star-rating .star::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: WooCommerce;
    content: '\e021'; /* 鏤空星星 */
    text-indent: 0;
    color: #ddd;
    transition: all 0.2s ease;
}
.star-rating .star:hover::before,
.star-rating .star.active::before {
    color: #ffc107;
}
.star-rating .star.selected::before {
    content: '\e020'; /* 實心星星 */
    color: #ffc107;
}
.star-rating .star:hover {
    transform: scale(1.1);
}
.star-rating-value {
    font-size: 0.9rem;
    color: #666;
    margin-left: 0.5rem;
}
/* 隱藏原始的鏈接和radio按鈕 */
.comment-form-rating p.stars {
    display: none !important;
}
.comment-form-rating .stars input[type="radio"] {
    display: none !important;
}
.comment-form-rating select[name="rating"] {
    display: none !important;
}
/* 評價表單樣式 */
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus {
    outline: none;
    border-color: #e2322e;
    box-shadow: 0 0 0 3px rgba(226, 50, 46, 0.1);
}
.comment-form-comment textarea {
    min-height: 120px;
    resize: vertical;
}
.form-submit {
    margin-top: 1.5rem;
}
.form-submit input[type="submit"] {
    background-color: #e2322e;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.form-submit input[type="submit"]:hover {
    background-color: #c02621;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(226, 50, 46, 0.3);
}
/* 已有評價列表樣式 */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.commentlist .comment {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.commentlist .comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}
.commentlist .comment-author {
    font-weight: 600;
    color: #333;
}
.commentlist .comment-date {
    color: #666;
    font-size: 0.9rem;
}
.commentlist .star-rating {
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1.2em;
    line-height: 1;
    font-family: "WooCommerce", sans-serif;
}
/* 隱藏原始評分文本 */
.commentlist .star-rating span {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}
/* 添加"評分："文字前綴 */
.commentlist .star-rating::before {
    content: '評分：';
    margin-right: 0.3em;
    color: #333;
    font-weight: 500;
    font-family: inherit;
    font-size: 0.9em;
}
/* 顯示星星圖標 - 使用after偽元素 */
.commentlist .star-rating::after {
    content: '';
    display: inline-block;
    font-family: "WooCommerce";
    font-size: 1.2em;
    line-height: 1;
    letter-spacing: 0.1em;
}
/* 根據評分顯示星星 */
.commentlist .star-rating[data-rating="5"]::after {
    content: '\e020\e020\e020\e020\e020'; /* 5個實心星星 */
    color: #ffc107;
}
.commentlist .star-rating[data-rating="4"]::after {
    content: '\e020\e020\e020\e020\e021'; /* 4個實心+1個鏤空 */
    color: #ffc107;
}
.commentlist .star-rating[data-rating="3"]::after {
    content: '\e020\e020\e020\e021\e021'; /* 3個實心+2個鏤空 */
    color: #ffc107;
}
.commentlist .star-rating[data-rating="2"]::after {
    content: '\e020\e020\e021\e021\e021'; /* 2個實心+3個鏤空 */
    color: #ffc107;
}
.commentlist .star-rating[data-rating="1"]::after {
    content: '\e020\e021\e021\e021\e021'; /* 1個實心+4個鏤空 */
    color: #ffc107;
}
.commentlist .comment {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.commentlist .comment:hover {
    border-color: #e2322e;
    box-shadow: 0 4px 8px rgba(226, 50, 46, 0.1);
}
.commentlist .comment-text {
    color: #555;
    line-height: 1.6;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #e2322e;
    margin-top: 0.5rem;
}
/* --- Related Products Styling --- */
.related-products-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}
.related-products-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}
.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.product-card:hover .product-image-link img {
    transform: scale(1.05);
}
.product-card  .product-image-link  {
    object-fit: cover; /* 保持圖片比例填充 */
}
.product-card .card-img-top,.product-card .woocommerce-placeholder {
    height: 200px; /* 設置固定高度 */
    object-position: center; /* 圖片內容居中 */
    object-fit: contain; /
}
.product-card .product-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
.product-card .product-title a:hover {
    color: #e2322e;
}
.product-card .product-price {
    color: #e2322e;
    font-weight: bold;
    margin-bottom: 0; /* 底部無邊距 */
}
.product-card .card-body {
    padding: 1rem;
}
.woocommerce-variation-price{
    border-bottom: 1px solid gray;
}
.woocommerce-variation-add-to-cart {
    margin-top: 2rem;
}
.reset_variations{
    opacity: .6;
    font-size: .75rem;
}


/* PayPal付款按鈕樣式 --- */
.paypal-payment-button-wrapper {
    margin-top: 1rem;
    min-height: 50px; /* 確保有足夠空間顯示按鈕 */
}
/* PayPal插件按鈕容器樣式 */
.ppcp-button-container {
    margin-top: 1rem;
}
/* WooCommerce PayPal Payments插件按鈕樣式 */
#ppc-button-product,
#ppcp_product {
    margin-top: 1rem;
}
/* PayPal按鈕行樣式（根據線上網站的結構） */
.paypal-button-row {
    margin-top: 1rem;
    width: 100%;
}
.paypal-button {
    width: 100% !important;
    max-width: 100% !important;
}
/* 確保PayPal按鈕有合適的樣式 */
.paypal-payment-button-wrapper iframe,
.paypal-payment-button-wrapper [id*="paypal"],
.paypal-payment-button-wrapper [id*="ppcp"],
.paypal-payment-button-wrapper [id*="ppc-button"],
.paypal-payment-button-wrapper .paypal-button-row,
.paypal-payment-button-wrapper .paypal-button {
    width: 100% !important;
    max-width: 100% !important;
}
/* 確保PayPal按鈕容器可見 */
.paypal-payment-button-wrapper > * {
    display: block;
}
/* --- 面包屑樣式 --- */
.woocommerce-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}
.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
    color: #e2322e;
    text-decoration: underline;
}
.woocommerce-breadcrumb .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}
/* --- 评论用户状态样式 --- */
.review-user-status {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}
.review-user-status a {
    color: #e2322e;
    text-decoration: none;
    font-weight: 500;
}
.review-user-status a:hover {
    text-decoration: underline;
}
/* --- Custom Configurator Quantity Button Styles --- */
.configurator-quantity-container {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* overflow: hidden; */ /* 注释掉或移除，防止按钮被裁剪 */
    width: 100%;
    max-width: 200px;
    padding-left: 0;
    padding-right: 0;
    margin-left: calc(var(--bs-gutter-x) * .5);
}

.configurator-quantity-container input#quantity {
    border: none;
    outline: none;
    text-align: center;
    padding: 0.5rem 0.75rem;
    margin: 0;
    flex: 1;
    height: 40px;
    font-size: 1rem;
    line-height: 1;
    background-color: transparent;
    box-sizing: border-box;
    /* 确保输入框不会溢出 */
    min-width: 60px;
}

.configurator-quantity-container button.btn-qty {
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    line-height: 1;
    background-color: #f8f9fa;
    box-sizing: border-box;
    /* 添加边框以区分 */
    border-left: 1px solid #ddd;
}

.configurator-quantity-container button.btn-qty:first-child {
    border-left: none;
}

.configurator-quantity-container button.btn-qty:hover {
    background-color: #e9ecef;
}

/* 为配置器的数量区域添加一个容器，使标签和输入框在同一行 */
.quantity-label-wrapper {
    display: flex;
    align-items: center;
}

/* 如果你想让整个数量区域看起来像一个表单组，可以取消下面的注释 */
/*
.quantity-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


 */
.car-box{
    top: 180px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky !important;
}
