/* Simple Credit Card Icons - Clean and Minimal */

/* Base card icon styles */
.card-icon, .visa-icon, .mastercard-icon, .amex-icon, .discover-icon, .elo-icon {
    display: inline-block;
    width: 32px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 3px;
}

/* Simple brand icons with clean SVG */
.visa-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 32"><rect width="48" height="32" rx="4" fill="%23003087"/><text x="24" y="20" font-family="Arial" font-size="8" font-weight="bold" fill="white" text-anchor="middle">VISA</text></svg>');
}

.mastercard-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 32"><rect width="48" height="32" rx="4" fill="white" stroke="%23ccc"/><circle cx="18" cy="16" r="8" fill="%23eb001b"/><circle cx="30" cy="16" r="8" fill="%23ff5f00"/></svg>');
}

.amex-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 32"><rect width="48" height="32" rx="4" fill="%23006fcf"/><text x="24" y="20" font-family="Arial" font-size="7" font-weight="bold" fill="white" text-anchor="middle">AMEX</text></svg>');
}

.discover-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 32"><rect width="48" height="32" rx="4" fill="%23ff6000"/><text x="24" y="20" font-family="Arial" font-size="6" font-weight="bold" fill="white" text-anchor="middle">DISCOVER</text></svg>');
}

.elo-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 32"><rect width="48" height="32" rx="4" fill="%23ffcc02"/><text x="24" y="20" font-family="Arial" font-size="8" font-weight="bold" fill="%23000" text-anchor="middle">ELO</text></svg>');
}

/* Payment badges container */
.payment-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-width: 80px;
    height: 40px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.badge-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Brand-specific badge styles */
.visa-badge {
    border-color: #1a1f71;
    color: #1a1f71;
}

.visa-badge:hover {
    background: #f8f9ff;
    border-color: #1a1f71;
}

.mastercard-badge {
    border-color: #eb001b;
    color: #eb001b;
}

.mastercard-badge:hover {
    background: #fff8f8;
    border-color: #eb001b;
}

.amex-badge {
    border-color: #006fcf;
    color: #006fcf;
}

.amex-badge:hover {
    background: #f0f7ff;
    border-color: #006fcf;
}

.elo-badge {
    border-color: #ffcc02;
    color: #cc9900;
}

.elo-badge:hover {
    background: #fffdf0;
    border-color: #ffcc02;
}

.pix-badge {
    border-color: #32bcad;
    color: #32bcad;
}

.pix-badge:hover {
    background: #f0fffe;
    border-color: #32bcad;
}

.ssl-badge {
    border-color: #28a745;
    color: #28a745;
}

.ssl-badge:hover {
    background: #f8fff9;
    border-color: #28a745;
}

/* Icon styles */
.badge-item i {
    font-size: 18px;
}

.badge-item span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-badges {
        gap: 8px;
        padding: 12px 0;
    }
    
    .badge-item {
        min-width: 70px;
        height: 36px;
        padding: 6px 8px;
        gap: 4px;
    }
    
    .badge-item i {
        font-size: 16px;
    }
    
    .badge-item span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .badge-item {
        min-width: 60px;
        height: 32px;
        padding: 4px 6px;
    }
    
    .badge-item i {
        font-size: 14px;
    }
    
    .badge-item span {
        font-size: 10px;
    }
}

/* Card brand detection for form */
.card-input-wrapper {
    position: relative;
}

.card-brand-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    width: 32px;
    height: 20px;
}

.card-brand-indicator .visa-icon,
.card-brand-indicator .mastercard-icon,
.card-brand-indicator .amex-icon,
.card-brand-indicator .discover-icon,
.card-brand-indicator .elo-icon {
    width: 32px;
    height: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-icon, .visa-icon, .mastercard-icon, .amex-icon, .discover-icon, .elo-icon {
        width: 28px;
        height: 18px;
    }
    
    .payment-badges {
        gap: 8px;
    }
    
    .badge-item {
        min-width: 45px;
        height: 32px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .card-icon, .visa-icon, .mastercard-icon, .amex-icon, .discover-icon, .elo-icon {
        width: 24px;
        height: 16px;
    }
    
    .badge-item {
        min-width: 40px;
        height: 28px;
        padding: 4px 8px;
    }
}

/* SSL and PIX badges */
.ssl-badge {
    background: #28a745;
    color: white;
    font-size: 11px;
    gap: 4px;
}

.pix-badge {
    background: #32bcad;
    color: white;
    font-weight: 600;
    font-size: 12px;
}