#cs-pp-loader {
    display: none;
}

#cs-pp-loader-credit {
    display: none;
}

#cs-pp-loader-credit-custom {
    display: none;
}

.mecom-display-none {
    display: none;
}

#paypal-button-express-text {
    position: absolute;
    padding-right: 20px;
    padding-left: 20px;
    right: 50%;
    background: white;
    translate: 50%;
    top: -15px;
}

.important-hide {
    display: none !important;
}

.cs-pp-spinner {
    position: fixed;
    top: 43%;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    margin: 0;
    text-align: center;
}

.cs-pp-spinner:after {
    content: '';
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    -moz-opacity: .9;
    -khtml-opacity: .9;
    -webkit-opacity: .9;
    opacity: .9;
    -ms-filter: alpha(opacity=90);
    filter: alpha(opacity=90)
}

.cs-pp-spinner:before {
    content: "";
    display: block;
    margin: 0 auto 10px;
    text-align: center;
    width: 34px;
    height: 34px;
    border-left: 8px solid #000;
    border-left: 8px solid rgba(0, 0, 0, .2);
    border-right: 8px solid #000;
    border-right: 8px solid rgba(0, 0, 0, .2);
    border-bottom: 8px solid #000;
    border-bottom: 8px solid rgba(0, 0, 0, .2);
    border-top: 8px solid #2180c0;
    border-radius: 50px;
    -webkit-animation: rotation .7s infinite linear;
    -moz-animation: rotation .7s infinite linear;
    -o-animation: rotation .7s infinite linear;
    animation: rotation .7s infinite linear
}

.cs-pp-spinnerWithLockIcon {
    position: fixed;
    top: 40%;
    right: 0;
    bottom: 0;
    left: 13px;
    z-index: 9998;
    margin: 0;
    margin-top: -50px;
    text-align: center
}

.cs-pp-spinnerWithLockIcon:after {
    content: '';
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    -moz-opacity: .9;
    -khtml-opacity: .9;
    -webkit-opacity: .9;
    opacity: .9;
    -ms-filter: alpha(opacity=90);
    filter: alpha(opacity=90)
}

.cs-pp-spinnerWithLockIcon:before {
    content: "";
    display: block;
    margin: 0 auto 10px;
    text-align: center;
    width: 100px;
    height: 100px;
    border-left: 5px solid #000;
    border-left: 5px solid rgba(0, 0, 0, .2);
    border-right: 5px solid #000;
    border-right: 5px solid rgba(0, 0, 0, .2);
    border-bottom: 5px solid #000;
    border-bottom: 5px solid rgba(0, 0, 0, .2);
    border-top: 5px solid #2180c0;
    border-radius: 100%;
    -webkit-animation: cs-pp-rotation .7s infinite linear;
    -moz-animation: cs-pp-rotation .7s infinite linear;
    -o-animation: cs-pp-rotation .7s infinite linear;
    animation: cs-pp-rotation .7s infinite linear
}


@-webkit-keyframes cs-pp-rotation {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }

    to {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg)
    }
}

@-moz-keyframes cs-pp-rotation {
    from {
        -moz-transform: rotate(0deg);
        transform: rotate(0deg)
    }

    to {
        -moz-transform: rotate(359deg);
        transform: rotate(359deg)
    }
}

@-o-keyframes cs-pp-rotation {
    from {
        -o-transform: rotate(0deg);
        transform: rotate(0deg)
    }

    to {
        -o-transform: rotate(359deg);
        transform: rotate(359deg)
    }
}

@keyframes cs-pp-rotation {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(359deg)
    }
}

.full_screen_iframe_paypal_checkout {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    background: white !important;
}



#mecom-paypal-credit-form-container-custom {
    position: relative;
    margin-top: 20px;
}

#payment-paypal-area-custom {
    margin-bottom: 0 !important;
    display: block;
}

#paypal-button-express-or-text {
    margin: 5px 0 !important;
    padding: 0 !important;
}

.cs_pp_element {
    padding: 0 !important;
    margin: 0 !important;
}

.paypal-button-container {
    margin-bottom: 10px !important;
}

#paypal-button-overlay {
    cursor: not-allowed;
}

#shipping-calculator-message {
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-us-section {
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.contact-method {
    text-decoration: none !important;
    display: block !important;
    padding: 0 !important;
}

.email-button,
.whatsapp-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px !important;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px !important;
    transition: background-color 0.2s;
    margin: 0 !important;
}

.email-button {
    background-color: #EA4335;
    color: white;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
}

.email-button:hover {
    background-color: #d33426;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.contact-method svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    vertical-align: middle !important;
    margin: 0 !important;
}

.contact-method span {
    color: white;
    white-space: nowrap;
    vertical-align: middle !important;
}

.paypal-overlay-message {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e41e31;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

#shipping-calculator-message {
    position: absolute !important;
    margin: 0 !important;
}

#paypal-button-overlay {
    cursor: not-allowed;
    background: rgba(255,255,255,0.7) !important;
}

#mecom-paypal-credit-form-container {
    position: relative;
    min-height: 35px;
    margin: 10px 0;
}

#payment-paypal-area {
    transition: height 0.3s ease;
    border: none;
    width: 100%;
    min-height: 130px;
}

.processing #mecom-paypal-credit-form-container {
    opacity: 0.5;
    pointer-events: none;
}

.contact-method.email,
.contact-method.whatsapp,
.whatsapp-icon {
    /* 清除特定样式 */
}

/* 运费计算器标题样式 */
.shipping-calculator-title,
.shipping-methods-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    display: inline-block !important;
    color: #333 !important;
}

/* 确保运费计算器容器样式不受主题影响 */
.paypal-shipping-calculator {
    margin-bottom: 20px !important;
    padding: 0 !important;
    font-size: 14px !important;
}

.shipping-calculator-form {
    margin: 0 !important;
    padding: 0 !important;
}

.shipping-methods {
    margin: 10px 0 !important;
    padding: 0 !important;
}

#shipping_method {
    margin: 5px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#shipping_method li {
    margin-bottom: 5px !important;
    padding: 0 !important;
}

.shipping-cost-display {
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
}

.shipping-cost-display p {
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* PayPal反检测样式 */

/* 让iframe看起来更自然 */
iframe[id*="paypal"] {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

iframe[id*="paypal"]:hover {
    /* 移除hover时的阴影效果 */
    transform: none;
}

/* 添加加载动画 */
.paypal-loading {
    position: relative;
    overflow: hidden;
}

.paypal-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 模拟正常的电商网站样式 */

.contact-us-section h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-method {
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.email-button, .whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.email-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.email-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.whatsapp-button {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #1db954 0%, #0f7b6c 100%);
}

.whatsapp-icon, .email-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 运费计算器样式 */
.paypal-shipping-calculator {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.shipping-calculator-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.shipping-calculator-form .form-row {
    margin-bottom: 15px;
}

.shipping-calculator-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.shipping-calculator-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.shipping-methods {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.shipping-methods-title {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.shipping-methods ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shipping-methods li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.shipping-methods li:last-child {
    border-bottom: none;
}

.shipping-cost-display {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.shipping-cost-display p {
    margin: 5px 0;
    font-weight: 500;
    color: #2d5a2d;
}

.shipping-amount, .tax-amount {
    font-weight: 700;
    color: #1e7e34;
}

/* PayPal按钮容器样式 */
#mecom-paypal-credit-form-container-custom {
    position: relative;
    margin-top: 20px;
}

#paypal-button-express-or-text {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 15px;
    position: relative;
}

#paypal-button-express-or-text::before,
#paypal-button-express-or-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #dee2e6;
}

#paypal-button-express-or-text::before {
    left: 0;
}

#paypal-button-express-or-text::after {
    right: 0;
}

/* 遮罩层样式 */
#paypal-button-overlay {
    background: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-methods {
        flex-direction: column;
    }
    
    .contact-method {
        flex: none;
        width: 100%;
    }
    
    .paypal-shipping-calculator {
        padding: 15px;
    }
}

/* 反检测：隐藏一些可能暴露iframe的元素 */
iframe[id*="paypal"] {
    /* 移除可能暴露iframe特征的属性 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 添加一些假的第三方服务样式来模拟正常网站 */
.fake-analytics-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* 模拟正常的WooCommerce样式 */
.woocommerce-info, .woocommerce-message {
    background: #f7f7f7;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

/* 添加一些混淆样式 */
.obfuscation-layer {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* 让页面看起来更像正常的电商网站 */
body.woocommerce-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


