/* Direct GPay & UPI Gateway Bulletproof Styling v1.2.0 */
.wc-upi-payment-container {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin: 15px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
}

.wc-upi-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px dashed #cbd5e1 !important;
}

.wc-upi-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

.wc-upi-amount-display {
    font-size: 15px !important;
    color: #334155 !important;
}

.wc-upi-amount-display strong {
    color: #059669 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.wc-upi-flex-layout {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: center !important;
    margin-bottom: 16px !important;
}

.wc-upi-qr-card {
    flex: 0 0 170px !important;
    text-align: center !important;
    background: #ffffff !important;
    padding: 12px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
}

.wc-upi-qr-wrapper {
    position: relative !important;
    width: 146px !important;
    height: 146px !important;
    margin: 0 auto !important;
}

#wc-upi-qrcode img, #wc-upi-qrcode canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    display: block !important;
}

.wc-upi-qr-caption {
    font-size: 11px !important;
    color: #475569 !important;
    margin: 8px 0 0 0 !important;
    font-weight: 600 !important;
}

.wc-upi-apps-card {
    flex: 1 1 240px !important;
}

.wc-upi-app-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 12px 0 !important;
}

.wc-upi-apps-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

/* Bulletproof High-Contrast Buttons for all Themes */
.wc-upi-app-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border: 1.5px solid transparent !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.wc-upi-app-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}

/* High Contrast Brand Backgrounds & Text Colors */
.wc-upi-gpay {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}

.wc-upi-phonepe {
    background-color: #5f259f !important;
    color: #ffffff !important;
}

.wc-upi-paytm {
    background-color: #002e6e !important;
    color: #ffffff !important;
}

.wc-upi-bhim {
    background-color: #ff6a00 !important;
    color: #ffffff !important;
}

.wc-upi-btn-main {
    grid-column: 1 / -1 !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    padding: 14px !important;
    font-size: 15px !important;
}

.wc-upi-svg-icon {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.wc-upi-status-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

.wc-upi-pulse {
    width: 10px !important;
    height: 10px !important;
    background-color: #10b981 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    animation: upiPulse 1.5s infinite ease-in-out !important;
}

@keyframes upiPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.wc-upi-utr-box {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e2e8f0 !important;
}

.wc-upi-utr-box label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
}

.wc-upi-utr-box input {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}

.wc-upi-utr-box input:focus {
    outline: none !important;
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}
