/* 添加容器宽度限制，与网站其他部分保持一致 */
.woocommerce-checkout {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .woocommerce-checkout {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .woocommerce-checkout {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .woocommerce-checkout {
        max-width: 720px;
    }
}

@media (max-width: 576px) {
    .woocommerce-checkout {
        max-width: 540px;
    }
}

.custom-checkout-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.checkout-left-column {
    flex: 1;
    min-width: 300px;
}

.checkout-right-column {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-self: flex-start;
    position: sticky;
    top: 30px;
}

.payment-info-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

#order_review_heading {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-checkout-layout {
        flex-direction: column;
    }

    .checkout-left-column,
    .checkout-right-column {
        flex: 1 1 100%; /* Full width on smaller screens */
    }
}

/* Additional styling based on the image */
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: none;
    padding-bottom: 0;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: transparent;
    box-shadow: none;
    margin-top: 1em;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none; /* Remove the arrow tip if not desired */
}

.woocommerce form .form-row label {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 16px;
}

.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.woocommerce #customer_details .col-1, .woocommerce #customer_details .col-2 {
    width: 100%;
    float: none;
    margin-bottom: 20px;
}

.woocommerce #customer_details .col2-set .col-1, .woocommerce #customer_details .col2-set .col-2 {
    float: none;
    width: 100%;
}

.woocommerce-checkout-review-order table.shop_table {
    width: 100%;
    border: none;
}

.woocommerce-checkout-review-order table.shop_table th, .woocommerce-checkout-review-order table.shop_table td {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order table.shop_table tfoot tr:first-child th, .woocommerce-checkout-review-order table.shop_table tfoot tr:first-child td {
    border-top: 1px solid #eee;
    font-weight: bold;
}

.woocommerce .order-total .amount {
    font-size: 1.5em;
    font-weight: bold;
}

/* Style for the 'Create an Account' and 'Select Payment Method' sections */
.checkout-left-column > h3, /* Payment Info title */
#customer_details h3, /* Create an Account title if it's an h3 */
.woocommerce-checkout #payment h3 /* Select Payment Method title */
{
    font-size: 1.5em; /* Adjust as needed */
    margin-top: 30px;
    margin-bottom: 15px;
}

.woocommerce-account-fields, .woocommerce-billing-fields, .woocommerce-shipping-fields {
    margin-bottom: 30px;
}

/* Specific styling for payment method selection to match the image */
.wc_payment_methods li {
    list-style: none outside;
    margin-bottom: 1em;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wc_payment_methods li input[type="radio"] {
    margin-right: 10px;
}

.wc_payment_methods li img {
    max-height: 24px; /* Adjust as needed */
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.wc_payment_methods li label {
    font-weight: normal;
}

.wc_payment_methods .payment_box {
    padding: 10px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

/* Button styling */
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
    float: none;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#place_order:hover {
    background-color: #45a049;
}

/* Adjustments for the right column 'Your order' section */
.checkout-right-column .shop_table .product-name, .checkout-right-column .shop_table .product-total {
    font-size: 1em;
}

.checkout-right-column .shop_table .cart-discount .coupon-code {
    font-weight: bold;
}

.checkout-right-column .shop_table .order-total .woocommerce-Price-amount {
    font-size: 1.2em;
    color: #000;
}

.checkout-right-column .have-a-coupon-link {
    display: block;
    margin-top: 10px;
    text-align: right;
}

/* Additional elements from the image if they are standard WooCommerce or can be targeted */
.checkout-right-column .aioseo-details, .checkout-right-column .dan-milward-testimonial, .checkout-right-column .plugin-features, .checkout-right-column .security-badges {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.checkout-right-column .aioseo-details p, .checkout-right-column .dan-milward-testimonial p, .checkout-right-column .plugin-features ul li {
    font-size: 0.9em;
    color: #555;
}

.checkout-right-column .plugin-features ul {
    list-style: none;
    padding-left: 0;
}

.checkout-right-column .plugin-features ul li::before {
    content: "\2713"; /* Checkmark */
    color: green;
    margin-right: 10px;
}

.checkout-right-column .security-badges img {
    margin-right: 10px;
    max-height: 30px; /* Adjust as needed */
}

/* 右侧产品描述、客户评价和产品特点区域的样式 */
.checkout-product-description {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    line-height: 1.6;
}

.checkout-testimonial {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.testimonial-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-rating {
    margin-bottom: 10px;
}

.testimonial-rating .star {
    color: #ffc107;
    font-size: 20px;
}

.testimonial-rating .star.empty {
    color: #e0e0e0;
}

.testimonial-content {
    font-style: italic;
    line-height: 1.5;
}

.checkout-product-features {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.4;
}

.feature-checkmark {
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
}

.checkout-security-badges {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.security-badge {
    max-height: 40px;
    margin-right: 15px;
}

.money-back-guarantee {
    font-weight: bold;
    font-size: 16px;
}

/* 自定义价格字段样式 */
#custom-price-field {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

#custom-price-field label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

#custom-price-field input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
}

.custom-price-description {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* 产品标题和价格样式 */
.checkout-right-column .order-total .amount {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.checkout-right-column .cart-discount {
    color: #e53935;
}

/* 优惠券链接样式 */
.checkout-right-column .woocommerce-form-coupon-toggle {
    margin-top: 15px;
    text-align: center;
}

.checkout-right-column .woocommerce-form-coupon-toggle .showcoupon {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .custom-checkout-layout {
        flex-direction: column;
    }
    
    .checkout-right-column {
        margin-top: 30px;
    }
}

/* 隐藏不需要的字段和区域 */
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-billing-fields__field-wrapper p.form-row:not(#billing_first_name_field):not(#billing_last_name_field):not(#billing_email_field):not(#billing_phone_field) {
    display: none !important;
}

/* 添加额外的样式 */
.woocommerce-billing-fields h3 {
    display: none; /* 隐藏默认的账单标题 */
}

/* 优化表单字段样式 */
.woocommerce form .form-row input.input-text {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* 优化付款按钮 */
#place_order {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#place_order:hover {
    background-color: #45a049;
}

/* 优化产品描述和评价区域 */
.checkout-product-description {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    line-height: 1.6;
}

.testimonial-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-rating {
    margin-bottom: 10px;
}

.testimonial-rating .star {
    color: #ffc107;
    font-size: 20px;
}

.testimonial-content {
    font-style: italic;
    line-height: 1.5;
}

.feature-checkmark {
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
}

/* 优化订单摘要表格 */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px;
    font-weight: bold;
}

.woocommerce-checkout-review-order-table .cart-discount {
    color: #e53935;
}

/* 优化优惠券区域 */
.e-coupon-box {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 安全标志和保证 */
.checkout-security-badges {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.security-badge {
    max-height: 40px;
    margin-right: 15px;
}

.money-back-guarantee {
    font-weight: bold;
    font-size: 16px;
}