/* === Estilos de la Parrilla de Lotería === */
.clp-wrapper {
    max-width: 960px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.clp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 12px;
}

.clp-ticket {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8800, #ffbb00);
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s;
    user-select: none;
}

.clp-ticket:not(.is-sold):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.clp-ticket.is-selected {
    background: linear-gradient(135deg, #00c853, #b2ff59);
    box-shadow: 0 0 14px rgba(0,200,83,.55);
    transform: scale(1.05) translateY(-2px);
}

.clp-ticket.is-sold {
    background: #333;
    color: #888;
    text-decoration: line-through;
    box-shadow: none;
    cursor: not-allowed; 
}

/* === Estilos del Botón de Compra === */
.clp-cart-action {
    text-align: center;
    margin-top: 30px;
}

#clp-selected-count {
    font-weight: bold;
}

.clp-button {
    background: linear-gradient(90deg, #ff1744, #f50057);
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    border-radius: 24px;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 23, 68, 0.3);
}

.clp-button:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(255, 23, 68, 0.45);
}

.clp-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* === Estilos para los Números en Carrito/Checkout === */
.wc-item-meta {
    padding-top: 8px !important;
}

.wc-item-meta p {
    margin: 0 !important;
    font-size: 0.9em;
}

.wc-item-meta dt, .wc-item-meta dd {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.wc-item-meta dt {
    font-weight: bold;
    color: #333;
}
.wc-item-meta dd {
    padding-bottom: 5px;
    color: #555;
    word-break: break-all;
}