/**
 * Admin CSS - SendiAPI
 * 
 * @package LivraisonAPI
 */

/* ===== CORRECTION ICÔNE DU MENU ===== */
#toplevel_page_sendi-api .wp-menu-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

#toplevel_page_sendi-api .wp-menu-image img {
    max-width: 20px !important;
    max-height: 20px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

#toplevel_page_sendi-api .wp-menu-image.dashicons-before::before {
    display: none !important;
}

#toplevel_page_sendi-api .wp-menu-image.dashicons-before {
    background: transparent !important;
}

#toplevel_page_sendi-api .wp-menu-image.dashicons-before img {
    display: block !important;
}

/* ===== BOUTONS D'ACTION ===== */
.livraison-actions-wrap {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ===== NOTIFICATIONS AJAX ===== */
#livraison-notification-container .notice {
    margin: 10px 0;
}

/* ===== SUMMARY CARD ===== */
.livraison-summary-store,
.livraison-summary-phone,
.livraison-summary-email,
.livraison-summary-address,
.livraison-summary-commune {
    font-weight: 500;
}

/* ===== 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;
}

/* ===== TAPI API KEY ===== */
#toggle-api-key {
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

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

/* ===== 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;
}