/**
 * StreamX Payment Hub - Cart & Checkout Styles
 * Matches the dark StreamX theme aesthetic
 * 
 * @package StreamX Payment Hub
 * @version 1.0.0
 */

/* ============================================
   PAYMENT HUB CONTAINER
   ============================================ */

.sxph-payment-hub {
    margin-top: 20px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   DIVIDER
   ============================================ */

.sxph-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.sxph-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.sxph-divider-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    text-transform: uppercase;
}

/* ============================================
   PAYMENT BUTTONS
   ============================================ */

.sxph-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    margin-bottom: 10px;
}

.sxph-btn:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.sxph-btn:active {
    transform: translateY(0);
}

/* ── CashApp Button ── */
.sxph-btn-cashapp {
    background: linear-gradient(135deg, #00d632 0%, #00b82d 100%);
    color: #000000 !important;
    border-color: rgba(0, 214, 50, 0.3);
    box-shadow: 0 4px 15px rgba(0, 214, 50, 0.2), 0 0 0 0 rgba(0, 214, 50, 0);
}

.sxph-btn-cashapp:hover {
    background: linear-gradient(135deg, #00e838 0%, #00cc33 100%);
    color: #000000 !important;
    box-shadow: 0 8px 25px rgba(0, 214, 50, 0.35), 0 0 0 0 rgba(0, 214, 50, 0);
}

.sxph-btn-cashapp:active {
    box-shadow: 0 2px 10px rgba(0, 214, 50, 0.2);
}

.sxph-btn-cashapp .sxph-btn-icon {
    color: #000000;
}

.sxph-btn-cashapp .sxph-btn-label {
    color: #000000;
}

.sxph-btn-cashapp .sxph-btn-sublabel {
    color: rgba(0, 0, 0, 0.6);
}

.sxph-btn-cashapp .sxph-btn-arrow {
    color: rgba(0, 0, 0, 0.4);
}

/* ── Bitcoin Button ── */
.sxph-btn-bitcoin {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.15) 0%, rgba(247, 147, 26, 0.08) 100%);
    color: #ffffff !important;
    border-color: rgba(247, 147, 26, 0.25);
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.08), 0 0 0 0 rgba(247, 147, 26, 0);
}

.sxph-btn-bitcoin:hover {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.22) 0%, rgba(247, 147, 26, 0.12) 100%);
    color: #ffffff !important;
    border-color: rgba(247, 147, 26, 0.4);
    box-shadow: 0 8px 25px rgba(247, 147, 26, 0.15), 0 0 0 0 rgba(247, 147, 26, 0);
}

.sxph-btn-bitcoin:active {
    box-shadow: 0 2px 10px rgba(247, 147, 26, 0.1);
}

.sxph-btn-bitcoin .sxph-btn-icon {
    color: #f7931a;
}

.sxph-btn-bitcoin .sxph-btn-label {
    color: #ffffff;
}

.sxph-btn-bitcoin .sxph-btn-sublabel {
    color: rgba(255, 255, 255, 0.5);
}

.sxph-btn-bitcoin .sxph-btn-arrow {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   BUTTON INNER ELEMENTS
   ============================================ */

.sxph-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}

.sxph-btn-cashapp .sxph-btn-icon {
    background: rgba(0, 0, 0, 0.1);
}

.sxph-btn-bitcoin .sxph-btn-icon {
    background: rgba(247, 147, 26, 0.15);
}

.sxph-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sxph-btn-label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.sxph-btn-sublabel {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.sxph-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.sxph-btn:hover .sxph-btn-arrow {
    transform: translateX(3px);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.sxph-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 12px;
    color: #f7931a;
    font-size: 13px;
    font-weight: 600;
    z-index: 999999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.sxph-toast.sxph-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sxph-toast svg {
    flex-shrink: 0;
    color: #f7931a;
}

/* ============================================
   SECURE BADGE
   ============================================ */

.sxph-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

.sxph-secure-badge svg {
    opacity: 0.5;
}

/* ============================================
   SHINE / PULSE ANIMATIONS
   ============================================ */

.sxph-btn-cashapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.sxph-btn-cashapp:hover::before {
    left: 120%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .sxph-payment-hub {
        margin-top: 16px;
    }

    .sxph-btn {
        padding: 14px 16px;
        gap: 12px;
    }

    .sxph-btn-icon {
        width: 38px;
        height: 38px;
    }

    .sxph-btn-icon svg {
        width: 18px;
        height: 18px;
    }

    .sxph-btn-label {
        font-size: 14px;
    }

    .sxph-btn-sublabel {
        font-size: 11px;
    }

    .sxph-toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(20px);
        text-align: center;
        justify-content: center;
    }

    .sxph-toast.sxph-toast-visible {
        transform: translateX(0) translateY(0);
    }

    .sxph-divider-text {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

/* ============================================
   WOOCOMMERCE CART PAGE PLACEMENT FIX
   Ensure buttons sit nicely inside the cart totals area
   ============================================ */

.cart_totals .sxph-payment-hub,
.sx-order-summary .sxph-payment-hub,
.woocommerce-checkout-payment .sxph-payment-hub,
.woocommerce-checkout .sxph-payment-hub {
    margin-top: 20px;
}

/* Ensure the container inherits width properly inside WooCommerce widgets */
.widget .sxph-payment-hub,
.woocommerce .sxph-payment-hub {
    width: 100%;
}