/**
 * Payment Help Bubble Styles - Vertical Design
 */

.payment-help-bubble {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    pointer-events: none;
}

.payment-help-bubble-trigger {
    width: 50px;
    height: 150px;
    border-radius: 25px 0 0 25px;
    background: #2b6bcd;
    background: linear-gradient(180deg, #2b6bcd 0%, #1e4a8c 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    pointer-events: auto;
}

.payment-help-bubble-trigger:hover {
    transform: translateX(-5px);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.25);
    background: #1e4a8c;
}

.payment-help-bubble-trigger:focus {
    outline: 2px solid #2b6bcd;
    outline-offset: 2px;
}

.payment-help-bubble-trigger:active {
    transform: translateX(-2px);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
}

.payment-help-bubble-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: capitalize;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    white-space: nowrap;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-help-bubble-icon {
    font-size: 16px;
    display: inline-block;
}

/* Animation for bubble appearance */
.payment-help-bubble {
    animation: bubbleSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bubbleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Pulse animation for attention */
.payment-help-bubble-trigger.pulse {
    animation: bubblePulse 2s infinite;
}

@keyframes bubblePulse {
    0% {
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(43, 107, 205, 0.7);
    }
    70% {
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15), -10px 0 0 10px rgba(43, 107, 205, 0);
    }
    100% {
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(43, 107, 205, 0);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .payment-help-bubble-trigger {
        width: 40px;
        height: 120px;
        border-radius: 20px 0 0 20px;
    }
    
    .payment-help-bubble-text {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .payment-help-bubble-trigger {
        background: #000 !important;
        border: 2px solid #fff;
    }
    
    .payment-help-bubble-trigger:hover {
        background: #333 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .payment-help-bubble-trigger,
    .payment-help-bubble-tooltip,
    .payment-help-bubble {
        transition: none;
        animation: none;
    }
    
    .payment-help-bubble-trigger.pulse {
        animation: none;
    }
}

/* Fix scrolling and browser-sync interference */
html, body {
    overflow-x: auto !important;
    overflow-y: auto !important;
    scroll-behavior: smooth !important;
    position: relative !important;
}

/* Ensure bubble doesn't interfere with page scroll */
.payment-help-bubble {
    pointer-events: none;
    position: fixed !important;
    z-index: 999999 !important;
}

.payment-help-bubble * {
    pointer-events: auto;
}

/* Prevent any element from blocking scroll */
* {
    scroll-behavior: smooth !important;
}

/* Hide browser-sync elements that cause issues */
#__bs_notify__, 
#__bs_script__, 
[id*="browser-sync"],
[class*="browser-sync"],
script[src*="browser-sync"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* RTL support */
[dir="rtl"] .payment-help-bubble {
    right: auto;
    left: 0;
}

[dir="rtl"] .payment-help-bubble-trigger {
    border-radius: 0 25px 25px 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .payment-help-bubble-trigger:hover {
    transform: translateY(-50%) translateX(5px);
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    [dir="rtl"] .payment-help-bubble-trigger {
        border-radius: 0 20px 20px 0;
    }
}