.sdd-wrapper {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

/* Boutons de choix */
.sdd-choice-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.sdd-choice-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #222;
    background: #fff;
    color: #222;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sdd-choice-btn:hover {
    background: #f2f2f2;
}
.sdd-choice-btn.active {
    background: #222;
    color: #fff;
}

.sdd-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    background: #fafafa;
}
.sdd-note {
    color: #555;
    font-size: 14px;
    margin-bottom: 16px;
}

.sdd-form p {
    margin-bottom: 14px;
}
.sdd-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}
.sdd-form input,
.sdd-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
}

.sdd-submit-btn {
    padding: 12px 24px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.sdd-submit-btn:hover { background: #444; }
.sdd-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.sdd-result { margin-top: 18px; }
.sdd-success { color: #1a7a3c; font-weight: 600; }
.sdd-error { color: #b3261e; font-weight: 600; }

.sdd-price-box {
    margin-top: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #222;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}
.sdd-price-box strong { font-size: 24px; }

/* Dashboard */
.sdd-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.sdd-section { margin-bottom: 36px; }
.sdd-section h4 {
    border-bottom: 2px solid #222;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.sdd-tracking-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
    background: #fafafa;
}
.sdd-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.sdd-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #999;
}
.sdd-badge-en_attente { background: #b58900; }
.sdd-badge-en_route { background: #2563eb; }
.sdd-badge-livree { background: #1a7a3c; }

.sdd-progress { display: flex; gap: 4px; }
.sdd-progress-step {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    background: #e5e5e5;
    color: #888;
    border-radius: 4px;
}
.sdd-progress-step.sdd-progress-done {
    background: #222;
    color: #fff;
}

.sdd-saved-address-picker {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
}
.sdd-saved-address-picker select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 4px;
}

.sdd-history-table {
    width: 100%;
    border-collapse: collapse;
}
.sdd-history-table th,
.sdd-history-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}
.sdd-history-table th { background: #f2f2f2; }
.sdd-repeat-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #222;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.sdd-repeat-btn:hover { background: #444; color: #fff; }

.sdd-month-block { margin-bottom: 24px; }
.sdd-receipt-table {
    width: 100%;
    border-collapse: collapse;
}
.sdd-receipt-table th,
.sdd-receipt-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}
.sdd-receipt-table th { background: #f2f2f2; }

.sdd-logout { font-size: 14px; }
