/* .wc_payment_method[class*="payment_method_bridge_"] {
    display: none;
} */

.wc_payment_method.payment_method_bridge_paypal img {
    /* background: #ffc439; */
    padding: 2px 0px;
    max-height: 25px;
}
.wc_payment_method[class*="payment_method_bridge_"] img {
    border-radius: 3px;
}
/* Dynamic Button Base Styles */
#place_order.rdc-custom-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-height: 50px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    width: 100%;
    border: none;
    cursor: pointer;
}

#place_order.rdc-custom-btn img {
    height: 22px;
    width: auto;
    display: inline-block;
}

/* PayPal Button (Yellow) */
#place_order.btn-paypal-redirect {
    background-color: #ffc439 !important;
    color: #111 !important;
}
#place_order.btn-paypal-redirect:hover { background-color: #f2ba36 !important; }

/* Direct Card Button (Green) */
#place_order.btn-direct-card {
    background-color: #2ecc71 !important;
    color: #2C2E2F !important;
    font-weight: 500 !important;
    text-transform: uppercase;
}
#place_order.btn-direct-card:hover { background-color: #27ae60 !important; }

/* General SiteA / Credit Card Redirect */
#place_order.btn-credit-redirect {
    background-color: #2C2E2F !important;
    color: #fff !important;
    /* border: 1px solid #ddd !important; */
}

/* Prevent the jumpy layout and flicker */
#place_order.rdc-custom-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    font-weight: 700;
    transition: background 0.2s ease;
}

#place_order.rdc-custom-btn:hover {
    border: none !important;
    box-shadow: unset !important;
}

/* Masking class applied during updates */
#place_order.is-updating {
    /* background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 38 38" stroke="%23fff"><g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".5" cx="18" cy="18" r="18"/><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"/></path></g></g></svg>') !important; */
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-color: transparent !important;
    color: transparent !important;
    box-shadow: unset !important;
}

/* #place_order.btn-paypal-redirect { background-color: #ffc439 !important; color: #111 !important; }
#place_order.btn-direct-card { background-color: #2ecc71 !important; color: #fff !important; }
#place_order.btn-credit-redirect { background-color: #f8f8f8 !important; color: #333 !important; border: 1px solid #ddd !important; } */
/* The Spinner Animation */
@keyframes sitea-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.sitea-loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #253b80; /* PayPal Blue */
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: sitea-spin 0.8s linear infinite;
}
/* Optional: Dim button when disabled */
#sitea-quick-paypal-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Force the button to stay yellow and sharp when disabled */
#sitea-quick-paypal-btn:disabled {
    background-color: #ffc439 !important; /* Forces the PayPal yellow */
    opacity: 1 !important;               /* Removes the "blurred"/faded look */
    cursor: not-allowed;
    color: transparent !important;       /* Hides any leftover text if necessary */
}
/* Adjust the loader color so it's visible on the yellow background */
.sitea-loader {
    border: 3px solid rgba(0, 0, 0, 0.1); /* Light grey circle */
    border-top: 3px solid #253b80;        /* Dark PayPal blue spinning part */
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: sitea-spin 0.8s linear infinite;
    display: inline-block;
}
/* Hide default button until JS enhances it */
body.woocommerce-checkout #place_order {
    visibility: hidden;
}
@keyframes sitea-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}