/* ============================================
   Widget Position Adjustments
   Prevents overlapping of floating widgets
   Created: 2026-02-17
   ============================================ */

/* Spin-to-Win Widget - Move to BOTTOM LEFT */
.stw-trigger {
    left: 24px !important;      /* Left side instead of right */
    right: auto !important;      /* Remove right positioning */
    bottom: 24px !important;
    z-index: 9998 !important;
}

@media (max-width: 480px) {
    .stw-trigger {
        left: 16px !important;
        bottom: 80px !important;  /* Higher on mobile to avoid Google Merchant widget */
    }
}

/* Spin-to-Win Floating Code Bar - Keep centered but raise z-index */
.stw-floating-code {
    z-index: 9999 !important;  /* Above other widgets */
}

/* OnWebChat Widget - Position on RIGHT SIDE, HIGHER UP */
#onwebchatbox,
#onWebChat,
div[id*="onweb"] {
    bottom: 120px !important;   /* Raised higher to avoid overlap */
    right: 24px !important;
    z-index: 9997 !important;   /* Below spin-to-win */
}

/* OnWebChat iframe container */
iframe[src*="onwebchat"] {
    z-index: 9997 !important;
}

@media (max-width: 768px) {
    #onwebchatbox,
    #onWebChat,
    div[id*="onweb"] {
        bottom: 140px !important;  /* Even higher on mobile */
        right: 16px !important;
    }
}

/* Google Merchant Widget - Keep at BOTTOM CENTER but adjust z-index */
#google-merchantwidget-iframe-wrapper,
google-merchantwidget-iframe-wrapper,
div[id*="merchant"] {
    z-index: 9996 !important;   /* Lowest z-index */
}

/* Ensure Google Merchant stays centered and doesn't overlap */
@media (max-width: 768px) {
    #google-merchantwidget-iframe-wrapper,
    google-merchantwidget-iframe-wrapper {
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Final Widget Positioning Summary:
   - LEFT: Spin-to-Win (bottom-left, z-index: 9998)
   - CENTER: Google Merchant (bottom-center, z-index: 9996)
   - RIGHT: OnWebChat (right side, higher up, z-index: 9997)
*/
