/**
 * Admin Settings CSS
 * 
 * @package LivraisonAPI
 */

 .sendi-api-settings-wrap {
    margin: 20px 20px 0 0;
}

.sendi-api-settings-wrap .form-table th {
    width: 200px;
}

/* Toggle API key visibility */
#toggle-api-key {
    font-size: 20px;
    line-height: 1;
    color: #666;
}

#toggle-api-key:hover {
    color: #23282d;
}

/* Test result */
#livraison-test-result,
#livraison-save-result {
    margin: 20px 0;
}

/* Summary card */
.livraison-summary-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.livraison-summary-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.livraison-summary-card .row {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.livraison-summary-card .row:last-child {
    border-bottom: none;
}

.livraison-summary-card .label {
    font-weight: 600;
    width: 120px;
    color: #4b5563;
}

.livraison-summary-card .value {
    color: #1e293b;
}

/* Shortcode examples */
.shortcode-example {
    display: inline-block;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.shortcode-example:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* Responsive */
@media (max-width: 782px) {
    .sendi-api-settings-wrap .form-table th {
        width: 100%;
        display: block;
        padding-bottom: 4px;
    }
    
    .sendi-api-settings-wrap .form-table td {
        display: block;
        padding-top: 0;
    }
}




/* assets/css/admin-settings.css */

/* ✅ Delivery Options Cards */
.livraison-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
}

.livraison-option-card {
    display: block;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.livraison-option-card:hover {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.livraison-option-card.selected {
    border-color: #007cba;
    background: #f0f7ff;
    box-shadow: 0 0 0 1px #007cba;
}

.livraison-option-card input[type="radio"] {
    display: none;
}

.livraison-option-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.livraison-option-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.livraison-option-card strong {
    display: block;
    margin-bottom: 2px;
    color: #1e293b;
}

.livraison-option-card .description {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.livraison-option-card.selected .description {
    color: #1e293b;
}

/* ✅ Threshold preview */
#livraison_threshold_preview {
    background: #f0f7ff;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

#livraison_threshold_preview .dashicons {
    margin-right: 8px;
}


/* ============================================
   DELIVERY MODE BADGE DANS LE SUMMARY
   ============================================ */

   .livraison-delivery-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.livraison-delivery-badge.client {
    background: #dbeafe;
    color: #1e40af;
}

.livraison-delivery-badge.merchant {
    background: #d1fae5;
    color: #065f46;
}

.livraison-delivery-badge.threshold {
    background: #fef3c7;
    color: #92400e;
}