/* Vanguard Pay - 前端样式 */

/* 自定义购买按钮 */
.pps-custom-buy-button {
    margin: 20px 0;
}

.pps-buy-now-btn {
    background-color: #0073aa !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pps-buy-now-btn:hover {
    background-color: #005a87 !important;
    color: #fff !important;
}

.pps-buy-now-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* 产品页面简化版样式 */
.pps-product-payment-simple {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 500px; /* 限制最大宽度，缩小网页端显示 */
    width: 100%;
    box-sizing: border-box;
}

/* 移动端全宽显示 */
@media (max-width: 768px) {
    .pps-product-payment-simple {
        max-width: 100%;
        width: 100%;
        margin: 15px 0;
        padding: 18px;
    }
}

/* 网页端进一步缩小 */
@media (min-width: 769px) {
    .pps-product-payment-simple {
        max-width: 450px;
        padding: 18px;
        margin: 15px 0;
    }
    
    .pps-product-payment-header h3 {
        font-size: 20px;
    }
    
    .pps-product-price {
        font-size: 14px;
    }
    
    .pps-price-value {
        font-size: 20px;
    }
}

.pps-product-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.pps-product-payment-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.pps-product-price {
    font-size: 14px;
}

.pps-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
}

.pps-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pps-product-payment-content {
    margin-top: 20px;
}

.pps-paypal-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

.pps-paypal-section h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

#pps-product-paypal-container {
    min-height: 50px;
    margin-bottom: 15px;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    box-sizing: border-box;
    position: relative;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* 确保PayPal按钮在移动端显示 */
#pps-product-paypal-button-container {
    width: 100% !important;
    min-height: 50px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#pps-product-paypal-button-container > div {
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* PayPal按钮内部元素 */
#pps-product-paypal-button-container iframe,
#pps-product-paypal-button-container > div > div {
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    min-height: 50px !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* 移除PayPal SDK可能添加的边框和背景 */
#pps-product-paypal-container > *,
#pps-product-paypal-button-container > *,
#pps-product-paypal-button-container > div > *,
#pps-product-paypal-button-container iframe {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 确保PayPal按钮容器及其所有子元素都可以点击 */
#pps-product-paypal-container,
#pps-product-paypal-button-container,
#pps-product-paypal-button-container * {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 移除可能遮挡PayPal按钮的覆盖层 */
#pps-product-paypal-container::before,
#pps-product-paypal-container::after,
#pps-product-paypal-button-container::before,
#pps-product-paypal-button-container::after {
    display: none !important;
    pointer-events: none !important;
}

#pps-fallback-buy-button {
    margin-top: 15px;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    opacity: 1 !important;
    box-sizing: border-box;
    clear: both;
}

#pps-buy-now-link {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    text-align: center;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10 !important;
    position: relative !important;
    box-sizing: border-box;
    margin: 0;
}

/* 产品卡片 */
.pps-product-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.pps-product-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pps-product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pps-product-card-content {
    padding: 15px;
}

.pps-product-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pps-product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #635BFF;
    margin-bottom: 15px;
}

.pps-product-card-actions {
    display: flex;
    gap: 10px;
}

.pps-product-card-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pps-product-card-btn-primary {
    background: #635BFF;
    color: #fff;
}

.pps-product-card-btn-primary:hover {
    background: #4a43d4;
    color: #fff;
}

.pps-product-card-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.pps-product-card-btn-secondary:hover {
    background: #e0e0e0;
}

/* ============================================
   结账页面样式 - 参考WooCommerce/Shopify设计
   ============================================ */

.pps-checkout-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 40px 20px;
}

.pps-checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pps-checkout-header {
    margin-bottom: 30px;
}

.pps-checkout-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.pps-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.pps-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.pps-checkout-main {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pps-checkout-sidebar {
    position: sticky;
    top: 20px;
}

.pps-checkout-section {
    padding: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.pps-checkout-section:last-child {
    border-bottom: none;
}

.pps-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.pps-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pps-form-field {
    display: flex;
    flex-direction: column;
}

.pps-form-field-full {
    grid-column: 1 / -1;
}

.pps-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.pps-form-field .required {
    color: #e74c3c;
}

.pps-form-field input,
.pps-form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s;
    background: #fff;
}

.pps-form-field input:focus,
.pps-form-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.pps-shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pps-shipping-method {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.pps-shipping-method:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.pps-shipping-method input[type="radio"] {
    margin-right: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.pps-shipping-method-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pps-shipping-method-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pps-shipping-method-name strong {
    font-size: 15px;
    color: #1a1a1a;
}

.pps-shipping-time {
    font-size: 13px;
    color: #666;
}

.pps-shipping-price {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.pps-shipping-method:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background: #f0f7ff;
}

.pps-shipping-method:has(input[type="radio"]:checked) .pps-shipping-method-name strong {
    color: #0073aa;
}

/* 支付方式 */
.pps-payment-option {
    margin-bottom: 24px;
}

.pps-payment-header {
    margin-bottom: 16px;
}

.pps-payment-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.pps-payment-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.pps-paypal-buttons {
    min-height: 50px;
}

.pps-payment-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    text-align: center;
}

.pps-payment-divider::before,
.pps-payment-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.pps-payment-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: #666;
    background: #fff;
}

.pps-card-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pps-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pps-stripe-element {
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    min-height: 48px;
    transition: all 0.2s;
}

.pps-stripe-element:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.pps-stripe-errors {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

/* 订单摘要 */
.pps-order-summary-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.pps-order-summary-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.pps-order-items {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.pps-order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pps-order-item:last-child {
    margin-bottom: 0;
}

.pps-order-item-name {
    font-size: 14px;
    color: #333;
    flex: 1;
    padding-right: 12px;
}

.pps-order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.pps-order-totals {
    margin-bottom: 24px;
}

.pps-order-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.pps-order-total-final {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid #e5e5e5;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.pps-place-order-btn {
    width: 100%;
    padding: 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.pps-place-order-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.pps-place-order-btn:active {
    transform: translateY(0);
}

.pps-place-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pps-security-badges {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.pps-security-text {
    font-size: 12px;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pps-security-text .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    /* 强制移动端单列布局 */
    .pps-checkout-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        max-width: 90% !important;
        width: 90% !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        gap: 20px !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
    }
    
    .pps-checkout-page {
        font-size: 16px !important;
    }
    
    .pps-checkout-header h1 {
        font-size: 28px !important;
    }
    
    .pps-checkout-section h2 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
    
    .pps-form-group label {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .pps-form-group input,
    .pps-form-group select {
        font-size: 18px !important;
        padding: 16px 18px !important;
        min-height: 52px !important;
    }
    
    .pps-submit-btn {
        font-size: 20px !important;
        padding: 18px 30px !important;
        min-height: 58px !important;
    }
    
    .pps-checkout-sidebar-mobile .pps-order-summary h3 {
        font-size: 24px !important;
    }
    
    .pps-checkout-sidebar-mobile .pps-order-line {
        font-size: 16px !important;
    }
    
    .pps-checkout-sidebar-mobile .pps-order-total {
        font-size: 20px !important;
    }
    
    .pps-paypal-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    #pps-checkout-paypal-button-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .pps-checkout-main {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
    }
    
    .pps-checkout-sidebar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        position: static !important;
    }
    
    .pps-checkout-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .pps-checkout-page {
        padding: 20px 15px;
    }
    
    .pps-checkout-header h1 {
        font-size: 24px;
    }
    
    .pps-checkout-section {
        padding: 20px;
    }
    
    .pps-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pps-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pps-order-summary-card {
        padding: 20px;
    }
}

/* Stripe Elements 样式优化 */
.pps-stripe-element {
    padding: 12px 16px !important;
    min-height: 48px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: all 0.2s !important;
}

.pps-stripe-element:focus-within {
    border-color: #0073aa !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1) !important;
}

/* 产品页面内嵌支付样式 */
.pps-embedded-payment-container {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pps-embedded-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.pps-embedded-payment-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.pps-embedded-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pps-price-label {
    font-size: 14px;
    color: #666;
}

.pps-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.pps-embedded-payment-content {
    margin-top: 20px;
}

.pps-quick-payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.pps-quick-pay-btn {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.pps-quick-pay-btn:hover {
    border-color: #667eea;
    background: #f9f9ff;
}

.pps-quick-pay-btn-paypal {
    border-color: #003087;
    color: #003087;
}

.pps-quick-pay-btn-paypal:hover {
    background: #003087;
    color: #fff;
}

.pps-quick-pay-btn-stripe {
    border-color: #635BFF;
    color: #635BFF;
}

.pps-quick-pay-btn-stripe:hover {
    background: #635BFF;
    color: #fff;
}

.pps-payment-methods-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.pps-payment-method-btn {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.pps-payment-method-btn.active {
    border-color: #667eea;
    background: #f9f9ff;
    color: #667eea;
}

.pps-payment-container {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pps-payment-container-inner {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}

.pps-stripe-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pps-stripe-element-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pps-stripe-element-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pps-stripe-submit {
    margin-top: 10px;
}

.pps-submit-btn {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pps-submit-btn:hover {
    background: #005a87;
}

.pps-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pps-payment-processing {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #0073aa;
}

/* 变体选择 */
.pps-variation-select-wrapper {
    margin-bottom: 20px;
}

.pps-variation-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.pps-variation-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 响应式设计 - Mobile, Tablet, Desktop */
@media (max-width: 1200px) {
    /* 强制移动端单列布局 */
    .pps-checkout-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        max-width: 90% !important;
        width: 90% !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        gap: 20px !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
    }
    
    .pps-checkout-page {
        font-size: 16px !important;
    }
    
    .pps-checkout-header h1 {
        font-size: 28px !important;
    }
    
    .pps-checkout-section h2 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
    
    .pps-form-group label {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .pps-form-group input,
    .pps-form-group select {
        font-size: 18px !important;
        padding: 16px 18px !important;
        min-height: 52px !important;
    }
    
    .pps-submit-btn {
        font-size: 20px !important;
        padding: 18px 30px !important;
        min-height: 58px !important;
    }
    
    .pps-checkout-sidebar-mobile .pps-order-summary h3 {
        font-size: 24px !important;
    }
    
    .pps-checkout-sidebar-mobile .pps-order-line {
        font-size: 16px !important;
    }
    
    .pps-checkout-sidebar-mobile .pps-order-total {
        font-size: 20px !important;
    }
    
    .pps-paypal-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    #pps-checkout-paypal-button-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .pps-checkout-main {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
    }
    
    .pps-checkout-sidebar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        position: static !important;
    }
    
    .pps-checkout-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .pps-checkout-page {
        padding: 20px 15px;
    }
    
    .pps-checkout-header h1 {
        font-size: 24px;
    }
    
    .pps-checkout-section {
        padding: 20px;
    }
    
    .pps-section-title {
        font-size: 16px;
    }
    
    .pps-form-grid {
        grid-template-columns: 1fr;
    }
    
    .pps-form-row {
        grid-template-columns: 1fr;
    }
    
    .pps-embedded-payment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pps-product-payment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pps-quick-payment-buttons {
        grid-template-columns: 1fr;
    }
    
    .pps-payment-methods-inline {
        grid-template-columns: 1fr;
    }
    
    /* 确保PayPal按钮在移动端显示 */
    #pps-product-paypal-container,
    #pps-product-paypal-button-container {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        min-height: 50px !important;
    }
    
    #pps-product-paypal-button-container > div {
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* 确保Buy Now按钮在移动端可用 */
    #pps-fallback-buy-button {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
        margin: 15px 0 0 0 !important;
        padding: 0 !important;
        clear: both !important;
        float: none !important;
    }
    
    #pps-buy-now-link {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 15px 30px !important;
        clear: both !important;
        float: none !important;
    }
    
    /* 确保PayPal按钮容器在移动端正确布局 */
    #pps-product-paypal-container {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: both !important;
    }
    
    #pps-product-paypal-button-container {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: both !important;
    }
    
    .pps-paypal-section {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 25px 0 0 0 !important;
        padding: 25px 0 0 0 !important;
        clear: both !important;
        float: none !important;
    }
}

@media (max-width: 480px) {
    .pps-checkout-page {
        padding: 15px 10px;
    }
    
    .pps-checkout-section {
        padding: 15px;
    }
    
    .pps-place-order-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .pps-stripe-element {
        padding: 14px 16px !important;
        min-height: 48px !important;
        font-size: 16px !important;
    }
}
