/* Frontend Styles */

.sim-payment-form {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 15px 0;
}

.sim-payment-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.sim-payment-notice {
    padding: 12px 15px;
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    color: #004085;
    font-size: 14px;
    margin-bottom: 15px;
}

.sim-payment-notice .dashicons {
    margin-right: 5px;
    vertical-align: middle;
}

.sim-invoice-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.sim-invoice-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.sim-invoice-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
}

.sim-invoice-details .label {
    font-weight: bold;
    color: #666;
}

.sim-invoice-details .value {
    color: #333;
}

/* Order Received Page */
.sim-order-received {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.sim-order-received h3 {
    color: #333;
    margin-bottom: 15px;
}

.sim-order-received p {
    color: #666;
    margin-bottom: 20px;
}

.sim-invoice-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.sim-invoice-actions .button {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.sim-invoice-actions .button.primary {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
}

.sim-invoice-actions .button.primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.sim-invoice-actions .button.secondary {
    background: #fff;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.sim-invoice-actions .button.secondary:hover {
    background: #f0f6fc;
}

/* Status Indicators */
.sim-status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

/* Loading States */
.sim-loading {
    opacity: 0.6;
    pointer-events: none;
}

.sim-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: sim-spin 1s linear infinite;
}

@keyframes sim-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.sim-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 15px 0;
}

.sim-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 15px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .sim-invoice-details {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .sim-invoice-actions {
        flex-direction: column;
    }
    
    .sim-invoice-actions .button {
        width: 100%;
        text-align: center;
    }
    
    .sim-payment-form {
        margin: 10px 0;
        padding: 15px;
    }
}
