/**
 * Weglot Afterpay Translation Bridge Styles
 * 
 * Ensures translation proxy elements are completely hidden
 * and don't interfere with page layout or performance
 */

/* Hide all Weglot translation proxy containers */
.weglot-afterpay-proxy,
.weglot-afterpay-express-proxy,
.weglot-shadow-proxy {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
    overflow: hidden !important;
}

/* Hide proxy text elements */
.afterpay-proxy-text,
.afterpay-express-proxy-text,
.weglot-proxy-text {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Ensure Afterpay containers maintain their original styling */
.afterpay-container[data-afterpay-widget="true"],
.afterpay-container-express-checkout[data-afterpay-widget="true"] {
    /* Reset any potential interference from our translation bridge */
    position: relative;
}

/* Debug mode - uncomment these styles to see proxy elements during development */
/*
.weglot-debug .weglot-afterpay-proxy,
.weglot-debug .weglot-afterpay-express-proxy,
.weglot-debug .weglot-shadow-proxy {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: auto !important;
    overflow: visible !important;
    background: #ff0 !important;
    border: 2px solid #f00 !important;
    padding: 5px !important;
    margin: 5px !important;
}

.weglot-debug .afterpay-proxy-text,
.weglot-debug .afterpay-express-proxy-text,
.weglot-debug .weglot-proxy-text {
    display: inline !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: auto !important;
    overflow: visible !important;
    margin: 2px !important;
    padding: 2px !important;
    border: 1px solid #00f !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    background: #0ff !important;
}
*/
