/* ============================================================
   Bits WhatsApp & QR de Producto — style.css
   ============================================================ */

/* ── Boton WhatsApp ── */
.bits-wqr-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             10px;
    padding:         12px 20px;
    border-radius:   50px;
    font-size:       15px;
    font-weight:     600;
    line-height:     1;
    text-decoration: none;
    border:          none;
    cursor:          pointer;
    transition:      opacity .18s ease, transform .18s ease;
    letter-spacing:  .01em;
}

.bits-wqr-btn:hover,
.bits-wqr-btn:focus {
    opacity:   .88;
    transform: translateY(-1px);
    text-decoration: none;
}

.bits-wqr-btn:active {
    transform: translateY(0);
    opacity:   1;
}

.bits-wqr-icon {
    width:      22px;
    height:     22px;
    flex-shrink: 0;
    fill:        currentColor;
}

/* ── QR wrapper ── */
.bits-wqr-qr-wrap {
    display:        inline-flex;
    flex-direction: column;
    align-items:    flex-start;
    gap:            12px;
}

.bits-wqr-qr-img {
    display:       block;
    border:        1px solid #e0e0e0;
    border-radius: 8px;
    background:    #fff;
    padding:       6px;
}

/* ── Boton de descarga ── */
.bits-wqr-download-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             7px;
    padding:         8px 16px;
    background:      #1a1a1a;
    color:           #fff;
    border-radius:   6px;
    font-size:       13px;
    font-weight:     500;
    text-decoration: none;
    transition:      background .18s ease;
}

.bits-wqr-download-btn:hover {
    background:      #333;
    text-decoration: none;
    color:           #fff;
}

/* ── Mensajes de error ── */
.bits-wqr-error {
    color:       #c00;
    font-style:  italic;
    font-size:   13px;
}

/* ============================================================
   Admin panel
   ============================================================ */
.bits-wqr-admin h1 {
    display:     flex;
    align-items: center;
    margin-bottom: 24px;
}

.bits-wqr-admin-grid {
    display:               grid;
    grid-template-columns: 1fr 380px;
    gap:                   24px;
    max-width:             1100px;
}

@media (max-width: 900px) {
    .bits-wqr-admin-grid {
        grid-template-columns: 1fr;
    }
}

.bits-wqr-card {
    background:    #fff;
    border:        1px solid #c3c4c7;
    border-radius: 4px;
    padding:       24px 28px;
}

.bits-wqr-card h2 {
    margin-top:    0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-size:     16px;
}

.bits-wqr-card h3 {
    font-size: 14px;
    margin:    20px 0 10px;
    color:     #444;
}

.bits-wqr-card hr {
    border:     none;
    border-top: 1px solid #eee;
    margin:     20px 0;
}

/* Shortcode info blocks */
.bits-wqr-shortcode-block {
    background:    #f6f7f7;
    border-left:   3px solid #25D366;
    border-radius: 0 4px 4px 0;
    padding:       10px 14px;
    margin-bottom: 14px;
}

.bits-wqr-shortcode-block code {
    display:     block;
    font-size:   14px;
    font-weight: 700;
    color:       #135e1e;
    margin-bottom: 4px;
}

.bits-wqr-shortcode-block p {
    margin:    0;
    color:     #555;
    font-size: 13px;
}

/* Vista previa */
#bits-wqr-preview-wrap {
    background:    #f0f0f1;
    border-radius: 6px;
    padding:       16px;
    text-align:    center;
}
