/* Payment Gateway Hub - Frontend Styles */

.pgh-payment-checkout {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pgh-order-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.pgh-order-summary h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.pgh-order-details p {
    margin: 8px 0;
    color: #666;
}

.pgh-order-details ul {
    margin: 8px 0;
    padding-left: 20px;
}

.pgh-order-details li {
    margin: 4px 0;
    color: #666;
}

.pgh-payment-form {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.pgh-payment-form h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.pgh-payment-form p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.pgh-payment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.pgh-pay-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pgh-pay-button:hover {
    background: #005a87;
}

.pgh-cancel-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pgh-cancel-button:hover {
    background: #545b62;
}

/* Payment Result Styles */
.pgh-payment-result {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pgh-result-header {
    text-align: center;
    margin-bottom: 30px;
}

.pgh-success-icon,
.pgh-error-icon,
.pgh-warning-icon,
.pgh-info-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.pgh-success-icon {
    background: #d4edda;
    color: #155724;
}

.pgh-error-icon {
    background: #f8d7da;
    color: #721c24;
}

.pgh-warning-icon {
    background: #fff3cd;
    color: #856404;
}

.pgh-info-icon {
    background: #d1ecf1;
    color: #0c5460;
}

.pgh-result-header h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

.pgh-result-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.pgh-result-details h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.pgh-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pgh-order-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.pgh-order-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
}

.pgh-order-table td:last-child {
    color: #666;
}

.pgh-status-completed {
    color: #155724 !important;
    font-weight: 600;
}

.pgh-status-failed {
    color: #721c24 !important;
    font-weight: 600;
}

.pgh-status-cancelled {
    color: #856404 !important;
    font-weight: 600;
}

.pgh-status-pending {
    color: #0c5460 !important;
    font-weight: 600;
}

.pgh-distributor-info {
    margin-top: 25px;
}

.pgh-distributor-info p {
    margin: 8px 0;
    color: #666;
}

.pgh-distributor-info a {
    color: #007cba;
    text-decoration: none;
}

.pgh-distributor-info a:hover {
    text-decoration: underline;
}

.pgh-result-actions {
    text-align: center;
}

.pgh-success-message,
.pgh-error-message,
.pgh-warning-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 16px;
}

.pgh-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pgh-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pgh-warning-message {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.pgh-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.pgh-return-button,
.pgh-retry-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pgh-return-button:hover,
.pgh-retry-button:hover {
    background: #005a87;
}

.pgh-retry-button {
    background: #28a745;
}

.pgh-retry-button:hover {
    background: #1e7e34;
}

/* Error and Info Messages */
.pgh-error,
.pgh-info {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 16px;
}

.pgh-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pgh-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pgh-payment-checkout,
    .pgh-payment-result {
        padding: 15px;
    }
    
    .pgh-payment-actions,
    .pgh-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pgh-pay-button,
    .pgh-cancel-button,
    .pgh-return-button,
    .pgh-retry-button {
        width: 100%;
        max-width: 300px;
    }
    
    .pgh-order-table td:first-child {
        width: 35%;
    }
    
    .pgh-result-header h2 {
        font-size: 24px;
    }
}
