/* assets/style.css */
.e2c-number-selector {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.e2c-number-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.number-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    user-select: none;
}

.number-cell.available {
    background: #e8f5e8;
    border-color: #4CAF50;
    color: #2e7d32;
}

.number-cell.available:hover {
    background: #c8e6c9;
    transform: scale(1.05);
}

.number-cell.sold {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
    cursor: not-allowed;
    opacity: 0.7;
}

.number-cell.selected {
    background: #1976d2;
    border-color: #0d47a1;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.e2c-selection-info {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
}

#selected-numbers {
    font-weight: bold;
    color: #1976d2;
    margin: 0 10px;
}

#proceed-to-buy {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

#proceed-to-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

#proceed-to-buy:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.e2c-sales-percentage {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    border-radius: 6px;
    margin: 20px 0;
}

.e2c-number-checker {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.e2c-number-checker h3 {
    color: #1976d2;
    margin-bottom: 20px;
    text-align: center;
}

.e2c-number-checker input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.e2c-number-checker input[type="email"]:focus {
    border-color: #2196F3;
    outline: none;
}

.e2c-number-checker button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s ease;
}

.e2c-number-checker button:hover {
    background: #1976d2;
}

.numbers-list {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 15px;
    border-left: 4px solid #4CAF50;
}

.numbers-list h4 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.numbers-list ul {
    list-style: none;
    padding: 0;
}

.numbers-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.numbers-list li:last-child {
    border-bottom: none;
}

.e2c-thank-you-info {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.e2c-thank-you-info h3 {
    margin-top: 0;
    font-size: 24px;
}

.seller-referral-field {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #2196F3;
    margin: 20px 0;
}

.seller-referral-field h3 {
    color: #1976d2;
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .e2c-number-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
    }
    
    .number-cell {
        font-size: 14px;
    }
    
    .e2c-number-selector,
    .e2c-number-checker {
        margin: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .e2c-number-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }
    
    .number-cell {
        font-size: 12px;
    }
    
    #proceed-to-buy {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.number-cell.selected {
    animation: pulse 0.5s ease-in-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Forzar estilos responsive en móviles */
@media screen and (max-width: 480px) {
    .e2c-number-selector .e2c-number-grid {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important; /* Ahora 7 columnas */
        gap: 4px !important; /* Espacios más pequeños */
        width: 100% !important;
    }

    .e2c-number-selector .number-cell {
        font-size: 10px !important;  /* Texto más pequeño */
        padding: 5px 0 !important;   /* Cuadros más compactos */
        text-align: center;
    }
}



