.credicard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0079ff, #0051cc);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.credicard-button img {
    margin-right: 8px;
    transition: transform 0.3s ease-in-out;
}

.credicard-button:hover {
    background: linear-gradient(135deg, #0051cc, #003a99);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.credicard-button:hover img {
    transform: scale(1.2);
}

.credicard-button:focus {
    outline: 2px solid #0051cc;
    outline-offset: 3px;
}

.credicard-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-45deg);
    transition: left 0.4s ease-in-out;
}

.credicard-button:hover::before {
    left: 150%;
}

.credicard-button:disabled {
    cursor: not-allowed;
    background: gray;
    color: lightgray;
    opacity: 0.6;
}

.credicard-button:disabled:hover {
    background: gray;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.credicard-button:disabled img {
    opacity: 0.5;
}

/* Contenedor del botón */
div[id^="credicard-container-"] {
    margin: 10px 0;
    text-align: center;
}

/* Estilos para el estado de carga */
.credicard-loading {
    background: linear-gradient(135deg, #ccc, #999) !important;
    cursor: wait !important;
    position: relative;
}

.credicard-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: credicard-spin 1s linear infinite;
}

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