/**
 * AyPay - Front CSS
 *
 * @author    AYTRONIC
 * @copyright 2025-2026 AYTRONIC
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

/* Payment Option Styling */
.aypay-payment-option {
    display: flex;
    align-items: center;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.aypay-payment-option img {
    margin-left: 10px;
    height: 32px;
}

/* Payment Info Box */
.aypay-payment-info {
    direction: rtl;
    text-align: right;
}

/* Payment Return Page */
.aypay-payment-return {
    direction: rtl;
    text-align: right;
}

/* Error Messages */
.aypay-error {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #721c24;
}

.aypay-error i {
    margin-left: 8px;
}

/* Loading State */
.aypay-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.aypay-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: aypay-spin 1s linear infinite;
    margin-left: 15px;
}

@keyframes aypay-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aypay-loading-text {
    font-size: 16px;
    color: #6c757d;
}

/* Gateway Logos */
.aypay-gateway-logo {
    max-height: 40px;
    max-width: 120px;
}

/* Responsive */
@media (max-width: 576px) {
    .aypay-payment-return {
        margin: 10px;
        padding: 20px;
    }
    
    .payment-details {
        padding: 15px;
    }
    
    .detail-row {
        flex-direction: column;
        text-align: right;
    }
    
    .detail-label {
        margin-bottom: 5px;
    }
}
