/* ============================================================
   Diamlab Quote Request — style.css v2.0.0
   ============================================================ */

/* ── Bouton produit (fiche produit) ── */
.dlqr-add-btn {
    display: block;
    width: 100%;
    clear: both;
    margin-top: 8px !important;
    background: #1a1a2e !important;
    color: #fff !important;
    border: 2px solid #1a1a2e !important;
    border-radius: 4px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-align: center;
    line-height: normal;
    transition: background 0.2s;
    box-sizing: border-box;
    float: none !important;
}
.dlqr-add-btn:hover {
    background: #16213e !important;
    color: #fff !important;
}
.dlqr-add-btn.dlqr-added {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
}
.dlqr-add-btn.dlqr-added:hover {
    background: #219a52 !important;
}

/* Bouton dans la grille catalogue */
.dlqr-loop-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 6px !important;
}

/* ── Compteur flottant ── */
#dlqr-floating-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}
#dlqr-floating-counter .dlqr-badge {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
#dlqr-floating-counter[data-count="0"] { display: none !important; }

/* ============================================================
   Page de devis — styles généraux
   (complétés par les inline styles du shortcode)
   ============================================================ */
.dlqr-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a1a2e;
}

.dlqr-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.dlqr-product-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.dlqr-product-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.dlqr-product-name {
    font-weight: 700;
    font-size: 13px;
    color: #1a1a2e;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dlqr-product-name:hover { text-decoration: underline; }

.dlqr-product-sku { font-size: 11px; color: #999; display: block; margin-top: 2px; }

.dlqr-qty-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.dlqr-qty-input {
    width: 54px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.dlqr-form-col {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
}

.dlqr-field-group { margin-bottom: 14px; width: 100%; }

.dlqr-label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }

.dlqr-input {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px; /* prevents iOS zoom */
    background: #fafafa;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.dlqr-input:focus { outline: none; border-color: #1a1a2e; background: #fff; }
.dlqr-textarea { resize: vertical; min-height: 80px; }

.dlqr-radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.dlqr-radio-label { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }

.dlqr-checkbox-label { font-size: 12px; color: #666; display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.dlqr-checkbox-label a { color: #1a1a2e; }

.dlqr-btn-primary {
    display: block;
    width: 100%;
    background: #1a1a2e;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}
.dlqr-btn-primary:hover { background: #16213e; color: #fff !important; }

#dlqr-messages .dlqr-error {
    background: #fdf0ed;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
}

.dlqr-success-box { text-align: center; padding: 30px 16px; }
.dlqr-success-box h3 { color: #27ae60; font-size: 20px; margin: 10px 0 8px; }
.dlqr-success-box p { color: #555; font-size: 14px; }

/* ── Mobile ── */
@media (max-width: 480px) {
    #dlqr-floating-counter {
        bottom: 12px;
        right: 12px;
        font-size: 13px;
        padding: 10px 14px;
    }
    .dlqr-product-thumb { width: 52px; height: 52px; }
}
