/**
 * UPI Order Automation - Frontend/Checkout Styles
 */

/* Checkout notice */
.upi-automation-checkout-notice {
    margin-top: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid #e9ecef;
}

.upi-automation-checkout-notice p {
    margin: 0;
    line-height: 1.6;
}

.upi-automation-checkout-notice strong {
    color: #333;
}

/* Payment method icon */
.payment_method_upi_automation img {
    max-height: 28px;
    vertical-align: middle;
}

/* Checkout description */
.payment_method_upi_automation .payment_box {
    background: #f8f9fa !important;
}

/* Order received page - payment pending notice */
.woocommerce-order-received .upi-automation-pending {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

/* Loading spinner for status check */
.upi-automation-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: upi-spin 0.8s linear infinite;
}

@keyframes upi-spin {
    to { transform: rotate(360deg); }
}

/* UPI App selector on the thank-you page (Razorpay-style) */
.upi-apps-section {
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.upi-apps-section h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #1a1a1a;
    font-weight: 700;
}

.upi-apps-hint {
    margin: 0 0 20px;
    font-size: 13px;
    color: #777;
}

.upi-app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.upi-app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 92px;
    padding: 14px 8px 10px;
    border-radius: 14px;
    background: #fff;
    color: #2b2b2b;
    text-decoration: none;
    border: 1px solid #eaeaea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.upi-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #2b2b2b;
    border-color: #d6d6d6;
}

.upi-app-btn:active {
    transform: translateY(0);
    border-color: #6c5ce7;
}

.upi-app-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f9;
}

.upi-app-logo img {
    display: block;
    width: 48px;
    height: 48px;
}

.upi-app-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

/* QR note */
.upi-qr-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #888;
}

/* QR "scan card" */
.upi-qr-placeholder #upi-qr-code {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    line-height: 0;
}

.upi-qr-placeholder #upi-qr-code img,
.upi-qr-placeholder #upi-qr-code canvas {
    display: block;
    border-radius: 6px;
}
