/**
 * استایل درگاه پرداخت کارت به کارت اتوماتیک
 */

/* باکس اصلی */
.abadikala-card-payment-instructions {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    margin: 20px 0;
}

.abadikala-card-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.abadikala-card-box h3 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 18px;
}

/* اطلاعات پرداخت */
.abadikala-card-info {
    margin-bottom: 20px;
}

.abadikala-card-info .amount {
    font-weight: bold;
    color: #e74c3c;
    font-size: 16px;
}

.payment-notice {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.card-details {
    background-color: #fff;
    border: 1px dashed #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.card-details p {
    margin: 8px 0;
}

.card-details .card-number {
    letter-spacing: 2px;
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 15px;
}

.copy-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: #2980b9;
}

/* تایمر */
.abadikala-card-timer {
    margin-bottom: 20px;
    text-align: center;
}

.timer-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#abadikala-countdown {
    display: flex;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 24px;
    font-weight: bold;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-label {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.countdown-divider {
    margin: 0 5px;
}

/* بخش تأیید پرداخت */
.abadikala-card-verification {
    margin-bottom: 20px;
    text-align: center;
}

.verification-status {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#verification-message {
    margin-right: 10px;
}

.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: none;
}

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

#check-payment-button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#check-payment-button:hover {
    background-color: #27ae60;
}

/* راهنمای پرداخت */
.abadikala-card-help {
    background-color: #fffaf0;
    border: 1px solid #ffe4b5;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.abadikala-card-help h4 {
    color: #f39c12;
    margin-top: 0;
    font-size: 16px;
}

.abadikala-card-help ol {
    margin-right: 20px;
    padding-right: 0;
}

.abadikala-card-help li {
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .abadikala-card-box {
        padding: 15px;
    }
    
    #abadikala-countdown {
        font-size: 20px;
        padding: 8px 15px;
    }
    
    .countdown-segment {
        min-width: 40px;
    }
} 
/*
 * استایل‌های صفحه تاییدیه پرداخت موفق
 */
.abadikala-payment-success-container {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    direction: rtl;
}

.abadikala-payment-success {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    border-top: 5px solid #2ecc71;
}

.payment-success-header {
    background-color: #f7f7f7;
    padding: 30px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop-in 0.5s ease-out;
}

.success-icon::after {
    content: '✔';
    color: #fff;
    font-size: 40px;
    line-height: 1;
}

@keyframes pop-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-success-header h3 {
    color: #333;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.payment-success-details {
    padding: 30px;
}

.payment-success-details > p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.transaction-details {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: right;
}

.transaction-details p {
    margin: 12px 0;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
}

.transaction-details p strong {
    color: #333;
}

.payment-success-actions {
    padding: 0 30px 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-success-actions .button {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-order-button {
    background-color: #3498db;
    color: #fff;
}

.view-order-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.continue-shopping-button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.continue-shopping-button:hover {
    background-color: #e7e7e7;
    transform: translateY(-2px);
}