.wcpa_cart_meta img{
    display: none;
}
.wcpa_cart_meta{
    max-height: 150px;
    overflow: auto;
    border: 1px dotted #CB4E7C;
    padding-left: 10px;
}
#my-checkout .e-con-inner > .elementor-element{
    max-width: 1440px;
    /*margin: 0 auto;*/
}
#customer_details .col-lg-7{
    width: 50%;
}
#delivery_time_field .woocommerce-input-wrapper label{
    display: inline-block;
    margin-right: 10px;
}


.delivery-time-option {
    margin-right: 8px;
}

.delivery-time-label {
    cursor: pointer;
    margin-right: 5px;
    display: inline-block;
}
.woocommerce-input-wrapper.delivery-time-select {
    padding-left: 20px;
    display: block;
}

/* 确保radio按钮和标签正确对齐 */
.delivery-time-select .delivery-time-option {
    margin-right: 8px;
    vertical-align: middle;
    margin-bottom: 3px !important;
}

.delivery-time-select .delivery-time-label {
    margin-right: 15px;
    vertical-align: middle;
}
#delivery-time-label-main{
    font-size: 18px !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}
.delivery-time-label-main .required{
    color: #c30021;
    margin-left: 5px;
}
#delivery-time-label-main + p{
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #000000 !important;
}
#sender-name-label-main{
    font-size: 18px !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}
#product-name-label-main{
    font-size: 18px !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}
#office-name-label-main{
    font-size: 18px !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}
.form-label-main + p .woocommerce-input-wrapper{
    display: block;
    width: 100%;
    padding-left: 20px;
}
.form-label-main + p .woocommerce-input-wrapper input{
    width: 100%;
}
.woocommerce-input-wrapper input{
    color: #000000 !important;
    font-size: 16px !important;
}
.woocommerce-input-wrapper input::placeholder{
    color: #dbd7d7 !important;
}
#sender-name-label-main + p,
#product-name-label-main + p,
#office-name-label-main + p{
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #000000 !important;
}
.select2-selection__rendered{
    color: #000000 !important;
}
.woocommerce-billing-fields__field-wrapper label{
    font-size: 18px !important;
}
.shop_table{
    font-size: 18px !important;
}
.shop_table h4{
    font-size: 18px !important;
}
.payment_methods label{
    font-size: 18px !important;
}
.form-row label{
    color: #000000;
}




/* 响应式设计 */
@media only screen and (max-width: 767px) {
    #customer_details .col-lg-7{
        width: 90%;
        margin: 0 auto;
    }
    
    .delivery-time-label {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}

.wc-bacs-bank-details .bank_name{
    font-size: 1.75rem;
    color: black;
}
.woocommerce-bacs-bank-details{
    display: flex;
    flex-direction: column;
}
.wc-bacs-bank-details-account-name{
    order: 2;
}

/* Checkout: 将小于 16px 的常见文本/控件统一到 16px（仅结账页作用域） */
.woocommerce-checkout {
    font-size: 16px;
}

/* 常见“容易偏小”的文字区域：提示/说明/checkbox 文案等 */
.woocommerce-checkout p,
.woocommerce-checkout span,
.woocommerce-checkout label,
.woocommerce-checkout small,
.woocommerce-checkout .font-size-sm,
.woocommerce-checkout .font-size-md,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
    font-size: 16px;
}
.woocommerce-form__label{
    color: #000000 !important;
}
.porto-control-label{
    color: #000000 !important;
}
#order_comments_field label{
    font-weight: 600 !important;
    font-size: 18px !important;
    margin-top: 20px;
}
#order_comments::placeholder{
    font-size: 16px !important;
    color: #dcd9d8 !important;
}
/* 表单控件：强制 16px，避免部分浏览器/主题把输入框字号压小 */
.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-checkout button,
.woocommerce-checkout .select2-container .select2-selection__rendered,
.woocommerce-checkout .select2-results__option {
    font-size: 16px !important;
}

/* Checkout: PayPal Payments 会用 .ppc-button-wrapper 渲染 Smart Button。
   我们的 common.css 全局把它 display:none 了，导致选中 PayPal 时 #place_order 被隐藏后“无按钮可点”。
   这里仅在结账页把它显示回来。 */
.woocommerce-checkout .ppc-button-wrapper {
    display: block !important;
}
.woocommerce-checkout .fee{
    color: #000000 !important;
}
.woocommerce-checkout .wc_payment_methods p{
    color: #000000 !important;
}
.woocommerce-form-coupon-toggle{
    color: #000000 !important;
}

/* Checkout: 删除商品/更新订单时 Porto 会对 #order_review / payment 区域 blockUI（遮罩层）。
   给遮罩层加一个居中 Loading，避免“只有遮罩没反馈”。 */
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-payment {
    position: relative; /* 确保 overlay 的伪元素定位稳定 */
}

.woocommerce-checkout #order_review .blockUI.blockOverlay.app-checkout-loading::before,
.woocommerce-checkout .woocommerce-checkout-payment .blockUI.blockOverlay.app-checkout-loading::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    margin-top: -17px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.25);
    border-top-color: #000;
    animation: appCheckoutSpin 0.9s linear infinite;
}

.woocommerce-checkout #order_review .blockUI.blockOverlay.app-checkout-loading::after,
.woocommerce-checkout .woocommerce-checkout-payment .blockUI.blockOverlay.app-checkout-loading::after {
    content: "読み込み中…";
    position: absolute;
    left: 50%;
    top: calc(50% + 30px);
    transform: translateX(-50%);
    font-size: 14px;
    color: #000;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@keyframes appCheckoutSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Checkout: 修复 porto-checkbox 被插入 <br> 导致强制换行 + 方框过大问题（仅结账页生效） */
.woocommerce-checkout #ship-to-different-address br,
.woocommerce-checkout label[data-automation-id="woo-commerce-subscription-opt-in"] br {
    display: none !important;
}

/* Checkout: 统一两个 checkbox 的尺寸/颜色/水平对齐（避免 Porto 自绘方框 vs 原生 checkbox 不一致） */
.woocommerce-checkout label[data-automation-id="woo-commerce-subscription-opt-in"],
.woocommerce-checkout #ship-to-different-address {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.woocommerce-checkout label[data-automation-id="woo-commerce-subscription-opt-in"] > input[type="checkbox"],
.woocommerce-checkout #ship-to-different-address input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--porto-primary-color, #000);
}

/* Porto 的 .porto-checkbox 会隐藏 input 并用 label::before/::after 画 20px 方框，这里在结账页禁用掉 */
.woocommerce-checkout #ship-to-different-address.porto-checkbox {
    padding-left: 0 !important;
}
.woocommerce-checkout #ship-to-different-address.porto-checkbox .porto-control-input {
    position: static !important;
    opacity: 1 !important;
    z-index: auto !important;
}
.woocommerce-checkout #ship-to-different-address.porto-checkbox .porto-control-label::before,
.woocommerce-checkout #ship-to-different-address.porto-checkbox .porto-control-label::after {
    content: none !important;
}
.woocommerce-checkout #ship-to-different-address .porto-control-label {
    padding-left: 0 !important; /* Porto 的 ps-1 之类避免挤出错位 */
}