/* T-Bank Payment Gateway Styles for EDD */

.edd-gateway-option input[value="tbank"] + label:before {
    content: '';
    display: inline-block;
    width: 120px;
    height: 30px;
    background: url('../images/tbank.png') no-repeat center;
    background-size: contain;
    margin-right: 10px;
    vertical-align: middle;
}

.edd-gateway-option input[value="tbank"]:checked + label {
    font-weight: bold;
    color: #ffdd2d;
}

.edd-gateway-option[data-gateway="tbank"] {
    border: 2px solid #ffdd2d;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.edd-gateway-option[data-gateway="tbank"]:hover {
    box-shadow: 0 4px 8px rgba(255, 221, 45, 0.3);
}

.edd-gateway-option[data-gateway="tbank"] label {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}

/* T-Bank description styling */
.edd-gateway-option[data-gateway="tbank"] .edd-gateway-option-desc {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* T-Bank logo styling */
.tbank-logo {
    display: inline-block;
    width: 120px;
    height: 30px;
    background: #ffdd2d;
    color: #000;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

/* Loading spinner for T-Bank payment processing */
.tbank-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ffdd2d;
    border-radius: 50%;
    animation: tbank-spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Error messages styling */
.edd-alert.edd-alert-error.tbank-error {
    border-left: 4px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
}

/* Success messages styling */
.edd-alert.edd-alert-success.tbank-success {
    border-left: 4px solid #28a745;
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .edd-gateway-option[data-gateway="tbank"] label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tbank-logo {
        margin-bottom: 10px;
        margin-right: 0;
    }
}