/* LetsPe Payment Gateway Styles - Exact copy from original styles.css with WordPress prefixes */

/* Logo styling for checkout */
.payment_method_letspe img {
    max-height: 32px;
    width: auto;
    vertical-align: middle;
    margin-left: 8px;
}

.payment_method_letspe label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Amount restriction notice */
.letspe-amount-notice {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
}

.letspe-payment-container, .letspe-qr-container, .letspe-error-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
}

.letspe-success {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 24px;
}

.letspe-error {
    color: #dc3545;
    margin-bottom: 20px;
    font-size: 24px;
}

.letspe-payment-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.letspe-detail-row {
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.letspe-detail-row:last-child {
    border-bottom: none;
}

.letspe-qr-code {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 3px solid #28a745;
    display: block;
    max-width: 300px;
    height: auto;
}

.letspe-qr-container {
    text-align: center;
    margin: 20px 0;
}

.letspe-qr-container img {
    max-width: 250px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.letspe-qr-fallback {
    background: #fff3cd;
    border: 1px dashed #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.letspe-fallback-note {
    font-size: 12px;
    color: #856404;
    margin-top: 10px;
    font-style: italic;
}

.letspe-no-qr {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #721c24;
}

.letspe-upi-url-section {
    background: #f8f9fa;
    border: 2px solid #007cba;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.letspe-upi-url-section h4 {
    margin: 0 0 15px 0;
    color: #007cba;
    font-size: 16px;
}

.letspe-upi-url-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.letspe-upi-url {
    padding: 15px;
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}

/* Removed .letspe-upi-actions and .letspe-alt-qr styles - buttons removed per user request */

.letspe-upi-buttons {
    text-align: center;
    margin: 20px 0;
}

.letspe-upi-buttons .button {
    font-size: 16px;
    padding: 12px 24px;
    height: auto;
    line-height: 1.2;
}

.letspe-upi-buttons .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.letspe-upi-help {
    margin: 20px 0;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    overflow: hidden;
}

.letspe-upi-help summary {
    padding: 12px 15px;
    background: #cce7ff;
    cursor: pointer;
    font-weight: bold;
    color: #004085;
    user-select: none;
}

.letspe-upi-help summary:hover {
    background: #b3d9ff;
}

.letspe-help-content {
    padding: 15px;
}

.letspe-help-content p {
    margin: 0 0 10px 0;
}

.letspe-help-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.letspe-help-content li {
    margin: 5px 0;
    line-height: 1.4;
}

.letspe-upi-url {
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    margin: 15px 0;
    border-left: 4px solid #28a745;
}

.letspe-timer-container {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.letspe-timer {
    font-size: 24px;
    font-weight: bold;
    color: #856404;
}

.letspe-timer-container.letspe-expired {
    background: #f8d7da;
    border-color: #dc3545;
}

.letspe-timer-container.letspe-expired .letspe-timer {
    color: #721c24;
}

.letspe-status-checking {
    background: #d1ecf1;
    border: 2px solid #17a2b8;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    color: #0c5460;
}

.letspe-loading-dots {
    display: inline-block;
}

.letspe-loading-dots::after {
    content: "";
    animation: letspe-dots 1.5s steps(5, end) infinite;
}

@keyframes letspe-dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}

.letspe-status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.letspe-status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.letspe-status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.letspe-status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.letspe-error-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
}

.letspe-error-message {
    margin: 20px 0;
    padding: 15px;
    background: #f8d7da;
    border-radius: 8px;
    color: #721c24;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .letspe-payment-container, .letspe-qr-container, .letspe-error-container {
        padding: 20px;
        margin: 10px;
    }
    
    .letspe-qr-code img {
        max-width: 200px;
    }
    
    .letspe-timer {
        font-size: 20px;
    }
}
