/* Step 3 - Payment Styles */

.hsb-payment-timer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border-radius: 12px;
    border: 1px solid #ff0000;
    margin-bottom: 25px;
}

.hsb-timer-icon svg {
    color: #ff0000;
    width: 32px;
    height: 32px;
}

.hsb-timer-content {
    flex: 1;
}

.hsb-timer-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.hsb-timer-countdown {
    font-size: 24px;
    font-weight: 700;
    color: #ff9800;
    font-family: 'Courier New', monospace;
    line-height: 1;
    margin-bottom: 5px;
}

.hsb-timer-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* QR Section */
.hsb-qr-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    /* margin-bottom: 25px; */
}

.hsb-qr-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsb-qr-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.hsb-qr-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hsb-qr-instruction {
    margin: 0;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    text-align: center;
}

.hsb-qr-instruction strong {
    color: #1976d2;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.hsb-payment-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.hsb-payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.hsb-payment-row:last-child {
    border-bottom: none;
}

.hsb-payment-row strong {
    color: #333;
    font-weight: 600;
}

.hsb-payment-row:first-child strong {
    color: var(--fs-color-primary);
    font-size: 14px;
}

.hsb-payment-content {
    background: #ffe0e0;
    border: 1px dashed #ff9800;
    margin: 5px -5px;
    padding: 12px 10px;
    border-radius: 6px;
}

.hsb-payment-content span {
    color: #e65100;
}

.hsb-payment-content strong {
    color: var(--fs-color-primary) !important;
    font-size: 15px !important;
    letter-spacing: 1px;
}

/* Payment Status */
.hsb-payment-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 12px;
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
}

.hsb-status-icon svg {
    color: #28a745;
    width: 28px;
    height: 28px;
}

.hsb-status-text strong {
    display: block;
    color: #28a745;
    font-size: 16px;
    margin-bottom: 5px;
}

.hsb-status-text p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.hsb-order-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--fs-color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.hsb-order-link:hover {
    background: #b54361;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: #fff;
}

/* Responsive for Step 3 */
@media (max-width: 768px) {
    .hsb-qr-section {
        grid-template-columns: 1fr;
    }
    
    .hsb-payment-timer {
        flex-direction: column;
        text-align: center;
    }
    
    .hsb-timer-countdown {
        font-size: 28px;
    }
    
    .hsb-payment-status {
        flex-direction: column;
        text-align: center;
    }
}

/* Payment Success Toast */
.hsb-payment-success-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 400px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hsb-payment-success-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hsb-success-icon {
    flex-shrink: 0;
    animation: successPulse 0.6s ease-in-out;
}

.hsb-success-text {
    flex: 1;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    .hsb-payment-success-toast {
        min-width: 320px;
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
}

/* Polling Indicator */
.hsb-polling-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: slideInUp 0.4s ease;
}

.hsb-polling-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #17a2b8;
    transition: all 0.3s;
}

.hsb-polling-dot.pulse {
    transform: scale(1.3);
    background: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.hsb-polling-indicator span {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hsb-polling-indicator {
        bottom: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }
}

/* Payment Success Animation */
.payment-success-animation {
    animation: successBounce 0.6s ease-in-out;
}

@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.02); }
}
